resgateio / resgate

A Realtime API Gateway used with NATS to build REST, real time, and RPC APIs, where all your clients are synchronized seamlessly.
https://resgate.io
MIT License
685 stars 67 forks source link

Slow consumer error not handled #220

Closed jirenius closed 2 years ago

jirenius commented 2 years ago

Issue

Under heavy bursts of incoming messages from NATS, Resgate may silently drop events. The slow consumer error from nats client is not handled.

Solution

Make the message buffer channel size configurable, and increase default from 256 to 8192. On slow consumer error, Resgate should shut down with a clear error, allowing for restart.

jirenius commented 2 years ago

Resolved in PR #221