Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully Shutdown Server on Exit #2

Open
srilman opened this issue Jun 18, 2024 · 0 comments
Open

Gracefully Shutdown Server on Exit #2

srilman opened this issue Jun 18, 2024 · 0 comments
Milestone

Comments

@srilman
Copy link
Contributor

srilman commented Jun 18, 2024

Right now, shutting down the server (via ^C) will forcefully close any goroutines that are running, including any that are processing requests. Ideally, the server should receive the signal, wait to finish processing requests while denying new requests, and then shutdown.

A tutorial on how to implement this in Golang: https://www.rudderstack.com/blog/implementing-graceful-shutdown-in-go/

@srilman srilman added this to the v0.1 milestone Jun 19, 2024
@srilman srilman mentioned this issue Jun 19, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant