Open uatuko opened 7 months ago
To ensure data consistency we need to intercept terminations signals and finish serving any in-flight requests and close connections to the DB before shutting down. This is very likely to require changes to gRPCxx.
SIGTERM
SIGINT
SIGQUIT
https://github.com/uatuko/grpcxx/pull/42 should introduce a way to signal the grpc socket to shutdown using a std::stop_token.
std::stop_token
To ensure data consistency we need to intercept terminations signals and finish serving any in-flight requests and close connections to the DB before shutting down. This is very likely to require changes to gRPCxx.
Requirements
SIGTERM
,SIGINT
,SIGQUIT
) and;