Hacker News new | ask | show | jobs
Ask HN: How do you handle restarts during long outbound HTTP requests?
2 points by sherfin94 4 days ago
These days we need to make long-running outbound HTTP requests for AI prompts etc. Restarting a container can interrupt one or more of these requests. What is a good solution here?
1 comments

If inbound connections are alive while the container does outbound ones, you can create another container and in the load balancer register its address and flag the old container address with `drain` mode, and gracefully shutdown the old container.