Is JetstreamContext thread safe? #600
Answered
by
scottf
robertmircea
asked this question in
Q&A
-
Is Jetstream context (implementation of IJetstream) safe to share among many threads? I would like to know if I can register as singleton a Jetstream context with the DI container. Currently I inject a single, DI registered, NatsConnection, but I could inject actually a single IJetstream instead. Looking at the actual |
Beta Was this translation helpful? Give feedback.
Answered by
scottf
May 9, 2022
Replies: 1 comment
-
The context is essentially a functional wrapper around the connection, which is thread-safe. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robertmircea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The context is essentially a functional wrapper around the connection, which is thread-safe.