Patterns for Streaming Telemetry with Akka Streams
summary
Shows a working pattern for ingesting unbounded IoT telemetry with Akka Streams: replace a fragile, stateful actor with a stream that batches with groupedWithin(1000, 1.second), limits concurrent writes with mapAsync(parallelism = 10), preserves per-device order, and applies backpressure so upstream connections stop overwhelming the DB. Demonstrates disaggregation with mapConcat, conditional routing for invalid messages, throttling and idle timeouts, and notes mapAsyncUnordered when order can be sacrificed for throughput.
AI-written summary · about
chapters (18)
- 0:00Intro
- 1:25Aakka
- 2:07PARTI A MOTIVATING EXAMPLE
- 9:50ERROR HANDLING
- 10:56REACTIVE STREAMS
- 12:44AKKA STREAMS API
- 13:59PATTERNS FOR STREAMING TELEMETRY
- 14:25GROUPING
- 15:56DISAGGREGATION
- 17:48FILTERING
- 21:38RATE LIMITING REQUESTS
- 25:28CONCURRENCY
- 28:37IDLE TIMEOUTS
- 30:17PERIODIC EVENTS
- 30:57WATCHING TERMINATION
- 32:24PROOF OF CONCEPT
- 35:41WHAT ABOUT ACTORS?
- 37:26QUESTIONS?
related talks
46mAkka Streams & Reactive Streams in action
42mLearn you Akka Streams for great Good!
01h 07mA Practical Introduction to Akka Streams
49mA Practical Introduction to Akka Streams
49mLearn you advanced Akka Streams for great Good!
46mAkka Streams in Real-World Tasks
30mLive Coding: Building Stateful and Scalable Reactive Streams...
01h 31mReactive Streams / Akka Streams
