Is the Client API thread-safe?

Is the Client API thread-safe?

book

Article ID: KB0075730

calendar_today

Updated On:

Products Versions
TIBCO Streaming -

Description

Is the Client API thread-safe?

Issue/Introduction

No, the StreamBase Client API is not thread-safe.

Resolution

The Client API is thread-per-connection. If you use multiple threads you must synchronize access to the client. The client object is not thread-safe.

Most use cases for the StreamBase Client API can be done from a single thread, minimizing the impact on performance.

http://docs.streambase.com/latest/index.jsp?topic=/com.streambase.sb.ide.help/data/html/admin/execorder.html provides a detailed discussion of concurrency options using StreamBase.