- Hands-On Microservices with C#
- Matt R. Cole
- 70字
- 2025-04-04 16:33:21
Considerations when writing the subscribe callback delegate
As messages are received from queues subscribed to via EasyNetQ, they are placed on an in-memory queue. A single thread sits in a loop taking messages from the queue and calling their action delegates. Since the delegates are processed one at a time on a single thread, you should avoid long-running synchronous IO operations. Return control from the delegate as soon as possible.