Skip to content

Clarification : Controlling the Inbound 'Data' messages to bayeux client #1235

@inspire99

Description

@inspire99

CometD version(s) -- 3.1.3 ( even using later versions such as 7.0.9 )

Java version & vendor -- 1.8

Question:

  1. As I understand, Cometd / Bayeux internally uses Jetty HTTP client, to communicate to the BayeuxServer
  2. Let's assume the long polling communication is used for inbound 'data' messages to be sent by BayeuxServer in a 'data' channel.
  3. Let's assume that the threadpool is configured for Jetty HTTP client. And let's also assume that the thread pool has a limit of 10 threads.
  4. Let's assume that, the BayeuxServer has sent a 'data' message and the BayeuxClient downstream is still processing that message.
  5. Let's assume that, the BayeuxServer sends 9 more 'data' messages, now, we know that all the 10 threads of Jetty HTTP client is being used and are busy.
  6. At this point, can we assume that, though BayeuxServer has few 'data' messages, it cannot possibly send it inbound to BayeuxClient, because the threadpool held by Jetty HTTP Client is fully occupied ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions