Archived

This forum has been archived. Please start a new discussion on GitHub.

IceStorm subscribers and threads

Assume I have an IceStorm application that has a GUI and and is responsible for subscribing to N number of subscriptions and displaying data from those subscriptions as the messages arrive.

Is the only real choice, in terms of application design, to create worker threads, one for each topic adapter to run in?

adapter->activate();

and if i need many adapters for many topics, I need a linear number of worker threads, one per topic?

Comments

  • mes
    mes California
    Hi Phil,

    An Ice server rarely needs to create more than one object adapter; see this faq for more information.

    Furthermore, invoking adapter->activate() does not cause the adapter to process requests in the calling thread; activating an adapter simply notifies the adapter that it should begin processing requests using whatever concurrency model it was configured for (thread-per-connection or thread pool).

    Matthew wrote a series of newsletter articles about using Ice in a GUI, beginning with issue 12. I would encourage you to read those articles if you haven't already.

    Take care,
    - Mark