resgate icon indicating copy to clipboard operation
resgate copied to clipboard

Resource frozen on consecutive query events

Open jirenius opened this issue 1 year ago • 0 comments

Issue

If a service sends multiple consecutive query events on the same resource, Resgate will freeze the resource from handing other requests and events, until all queued up query events has been handled in order. If the service is slow to respond to Resgate's query requests, this will cause the resource to appear completely frozen.

Notes

  • The behavior is due to the resource being locked for events while handling a query event: https://github.com/resgateio/resgate/blob/v1.7.5/server/rescache/eventSubscription.go#L275

jirenius avatar Sep 12 '23 10:09 jirenius