Are SSE / long-polling connections connected to Heroku Unicorn processes?

We have a Rails application running on Unicorn / Heroku, with Unicorn configured to handle 3 concurrent workflows.

We also have deferred work to asynchronously handle some lengthy file processing tasks that are launched using a client request.

We want to update the client when the task is completed. We could do this with a traditional poll, but are exploring the use of Heroku's new EventSource HQ Add-on to increase responsiveness and reduce the overhead of unnecessary HTTP polling requests.

EventSource HQ uses a combination of SSE and long polling to ensure cross-browser compatibility. I'm trying to find out if the connection that is opened using EventSource HQ is associated with the Unicorn workflow throughout the life of the connection? In other words, if I have 3 simultaneous processing of long tasks using EventSource HQ connections, my web dino cannot receive new requests?

+4
source share
1 answer

- EventSource, , Unicorn . , /. EventSource ( ), , (, ).

, pub/sub API, node.js , Goliath

+1

Source: https://habr.com/ru/post/1524963/


All Articles