I would like to be able to gracefully shutdown a deepstream server (for e.g. upgrade, down-scaling etc..).
This means that close should not return until it can do so without affecting clients.
This would mean e.g.
- De-register instance from load-balancer e.g. (HAProxy, NGinx)
- Tell client to stop sending new commands and switch over to another server (TCP) or just reconnect of a load balancer is setup (WS).
- Wait for any RPC calls to respond
- Handle all queued messages
etc...
This would require handling both on the client and server side.
I would like to be able to gracefully shutdown a deepstream server (for e.g. upgrade, down-scaling etc..).
This means that
closeshould not return until it can do so without affecting clients.This would mean e.g.
etc...
This would require handling both on the client and server side.