Learn you advanced Akka Streams for great Good!
summary
Builds a working Akka Streams SSE client that reconnects on failure using the Last-Event-ID header, showing live code. Uses Akka HTTP unmarshalling to a Source[ServerSentEvent], combinators like mapConcat, throttle, zip and merge, and the GraphDSL to create a cyclic graph for retries. Implements a custom GraphStage that materializes a Future[Option[ServerSentEvent]] (the last element). Demonstration compiles and repeatedly reconnects to the server, proving the approach works.
AI-written summary · about
chapters (29)
- 0:00Intro
- 1:18Akka Streams
- 2:30Single String
- 3:51Source Repeat
- 6:12MapConcat
- 7:45Iterator
- 9:00materialized value
- 11:29Recap
- 12:38tuples
- 13:23server sent events
- 15:38linear flow
- 18:04step by step
- 22:20parallelism
- 23:18source signal
- 24:03restart
- 24:36header
- 26:45shape
- 29:30graph stage logic
- 30:25out handler
- 31:30push
- 32:34finish
- 32:57fail
- 33:25recovery
- 35:28handler
- 37:16tuple
- 37:34source
- 38:33unzip
- 39:17implicits
- 44:39docker logs
related talks
42mLearn you Akka Streams for great Good!
46mAkka Streams & Reactive Streams in action
01h 07mA Practical Introduction to Akka Streams
44mPatterns for Streaming Telemetry with Akka Streams
01h 31mReactive Streams / Akka Streams
49mA Practical Introduction to Akka Streams
43mReactive Integration with Akka Streams and Alpakka
46mAkka Streams to the Extreme
