Skip to content
An example akka streams app with backpressure and kill switch
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Akka Streams To HTTP Example

This project builds on this excellent blog post:

When integrating streaming data flows, the protocol of choice is often REST/HTTP, and we'd like a fault-tolerant, back-pressuring way to stream data from akka streams through HTTP.

One common way HTTP supports back pressure is by replying with error code 429 Too Many Requests, signaling the client to slow down. Less sophisticated systems may just fail with 500 Internal Server Error, so we want the flexibility of managing the response: certain errors could be retried, but some others we may just let the stream fail.

When retrying, a common way to do it is with exponential backoff, that is, doubling time between retries.

You can’t perform that action at this time.