Write fast, reliable, and secure clients!
summary
Claims a new amqp-client for Ruby is about half the code size and four times faster than bunny, and a TypeScript client adds WebSocket support for browser + Node.js. Describes building a Crystal client and an in-house Lavin mq that sustains ~1.2M publishes/sec for benchmarking. Recommends concrete practices: use Wireshark, preallocate frame buffers, coalesce the three publish frames to cut syscalls, prefer TCP keepalive over default heartbeats, implement strict reconnect state handling and always clear unconfirmed publishes and prefetched messages.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:45AMQP protocol basics
- 17:26Client library architectures
- 23:33Sockets and heartbeats
- 27:09Memory management and backpressure
- 31:04Error handling and timeouts
- 33:58Performance optimization
- 37:17Community improvements
related talks
29mThe thin CLIent approach
30mThe Design of Everyday APIs
40mPlaying nice with others ...
01h 40mLightning Talks
19mPerformant and accessible client-side media processing with Mediabunny
37mBuilding and Maintaining a Client Library - Stories From the Trenches
42mThe world runs on bad software
55mCode the future, now
