mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
528 B
528 B
Asynchronous Subscriptions
Asynchronous subscriptions use callbacks of some form to notify an application when a message arrives. These subscriptions are usually easier to work with, but do represent some form of internal work and resource usage, i.e. threads, by the library. Check your library's documentation for any resource usage associated with asynchronous subscriptions.
The following example subscribes to the subject updates
and handles the incoming messages:
!INCLUDE "../../_examples/subscribe_async.html"