Hi all,


is there a best practice for graceful shutwdown of akka-http Web 
applications yet?


With 'graceful shutdown' I refer to having the server start returning 503 
to new requests after receiving SIGTERM but continue processing the 
existing ones in a grace period.


I was thinking about doing this with Akka-Agents: check the agent 
non-blocking on every request for service status (starting up / running  / 
shutting down) and setting the agent by the startup and shutdown sequence.


Aside from agents I cannot really see a useful way to hold the current 
service status in a single place. Using actors for this seems inappropriate.


What do others do / think?


Jan

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to