Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Threading Models and Tuning

Event preprocessing is multithreaded, and for each destination you need to choose a threading option: Shared Queue, Destination Queue, or the Caller’s Thread.

Figure 9: Threading Models Quick Reference

A detailed example for the threading model.

Figure 10: Agent threading example — shared threads, concurrent RTC, cache aside

- Shared Queue and Destination Queue threads are released at the end of the RTC (post-RTC phase uses different threads).
- For the RTC phase, you can choose single or concurrent RTC options.
- For the post-RTC phase, you have the cache-aside thread management strategy. It is shown in the diagram above.
- You can use parallel operations or (for special cases) serial operations. Use of parallel operations generally requires locking.
- Events that are to be sent out, for example using `Event.sendEvent()`, are actually sent in the event preprocessor or in the post-RTC phase, depending where the function is called.
- Acknowledgements are sent out after the post RTC phase.
  - The exception is events consumed in a preprocessor. In this case acknowledgements are sent immediately.

## Scaling Considerations

When you begin to scale up messaging the following are the potential bottlenecks:

- Messages are coming in too fast into the inference engine, or
- Inference engines are not handing off objects fast enough to the backing store , or
- Cache agents are not accepting the objects fast enough, or
- Backing store is not accepting the objects fast enough.

These points are related. You can add more inference agents and more cache agents to address these issues, depending on where the bottlenecks are occurring.

Subtopics

Did you find this helpful?

YesNo
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 BusinessEvents® Enterprise Edition

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