Open topic with navigation

# Multiple Direct Subscribers

A program can create more than one direct subscriber on an endpoint. Each direct subscriber object receives every buffer published on the bus.

- You can use multiple direct subscribers to process the same inbound data stream with different callback semantics.
- You cannot use multiple direct subscribers to increase throughput by dividing an inbound data stream.

Tip: In multithreaded application programs, use a separate direct subscriber object and a separate dispatch loop in each thread.

For best results, if an application program uses more than one direct subscriber object, create them all before starting the any of their dispatch loops.

Tip:

Programs may use a direct subscriber in multiple threads. However, contention to dispatch a direct subscriber object can decrease performance and increase latency.

Create only a finite number of direct subscriber objects. Re-use them as needed. Close them only when cleaning up to prepare for the process to exit.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO FTL® - Enterprise Edition

Copyright © 2009-2024. Cloud Software Group, Inc. All Rights Reserved.