In our application, we show the callback route for the remote external service. When we receive a callback, we publish an update for client subscribers using Eventsource on the client / browser side and frantically on the server side. Sometimes, however, we get bombarded with callback requests from this external service, which leads to the fact that we publish a huge number of updates for the client. Is there a way on the Rails side similar to the javascript debounce function that will wait for the set time between callbacks received to post a message?
We already use sidekiq + threads, so we open offers using these tools.
source
share