finos / symphony-bdk-java

The Symphony BDK (Bot Developer Kit) for Java helps you to create production-grade Chat Bots and Extension Applications on top of the Symphony REST APIs.
https://symphony-bdk-java.finos.org
Apache License 2.0
23 stars 69 forks source link

Symphony bot client thread safety #76

Closed JosephP91 closed 5 years ago

JosephP91 commented 5 years ago

Hello everybody,

I was wondering if Symphony bot client class (SymBotClient) is thread safe. The question is: can I send a message from different threads using the same istance of SymBotClient?

Thanks

ystxn commented 5 years ago

Hi @JosephP91 Other than the initialisation and authentication portion, there are no data structures that are manipulated when using the SDK in general. Sending messages in particular, is quite a straightforward REST API binding so feel free to load these in an execution service of your choice. Do note that the real limitations are at the pod side, so exercise prudence in sizing your thread pool.