While exploring Streaming API, found the API documentation and have gone through that. To integrate this the documentation mentions that Bayeux client is needed, for which CometD API is suggested. I had a few questions related to that:
Since it provides real-time updates/events, doesn't have a dedicated thread open between the two servers, the integration server(subscriber) and Salesforce server(publisher). Especially because CometD uses long polling.
So, if the answer to the above one is true and there is indeed a dedicated thread, then is that thread shared between subscribed Push Topics or a dedicated thread for each subscribed Push Topic.
What would be the maximum number of dedicated threads blocked continuously, between publisher and subscriber.
Any way to avoid these dedicated threads and make this communication between publisher and subscriber as asynchronous.