~/talk

DIY Async Message Pump: Lessons from the trenches

Talkat .NET Summit 2020 Online Conference · 2020-08-07..08-08· [microservices]
slides:none on file

Built a message pump that started as a single-loop async receiver, then exploded into unbounded concurrency (tens of thousands of concurrent tasks on an i7) and overwhelmed resources; fix is a SemaphoreSlim concurrency gate tuned to the weakest link (DB connection pool default ~100). Covers transports: MSMQ+SQL with DTC, RabbitMQ and receive-only transactions (partial side effects), Azure Service Bus atomic sends, SQS/storage queues using 30s visibility timeouts, and cloud limits (256 KB batches, 13M free ops/month) — batching and precise transaction placement are essential.

AI-written summary · about

  1. 0:00Introduction to async pumps
  2. 1:06Patient record system challenges
  3. 4:56Build vs buy messaging library
  4. 7:23Basic message pump code
  5. 11:13Handling rush hour traffic
  6. 13:20Adding concurrency to pump
  7. 15:25Unbounded concurrency pitfalls
  8. 18:53Limiting concurrency with semaphores
  9. 22:59Extending the message pump
  10. 27:09Transaction handling in pumps
  11. 33:07Moving to cloud transports
  12. 37:41Cloud latency and cost savings
  13. 40:28Batching messages efficiently
  14. 43:14Advanced pump requirements
  15. 45:39Monitoring distributed systems
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.