mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Added note regarding asynchronous subscriptions.
There is a misconception that asynchronous subscriptions mean that message callbacks are invoked concurrently, which is not the case. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -11,7 +11,7 @@ Subscriptions come in several forms:
|
||||
|
||||
For more details on the various types, check the [concepts](../nats-streaming-concepts/channels/subscriptions/) section.
|
||||
|
||||
_**Note: message callbacks are invoked serially, one message at a time. If your application does not care about processing ordering and would prefer the messages to be dispatched concurrently, it is the application's responsibility to move them to some internal queue to be picked up by threads/go routines.**_
|
||||
_**Note: For a given subscription, messages are dispatched serially, one message at a time. If your application does not care about processing ordering and would prefer the messages to be dispatched concurrently, it is the application's responsibility to move them to some internal queue to be picked up by threads/go routines.**_
|
||||
|
||||
Subscriptions set their starting position on creation using position or time. For example, in Go you can start at:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user