All Projects → calvinlfer → akka-streams-interleaving

calvinlfer / akka-streams-interleaving

Licence: other
Akka Streams example of how to interleave Sources with priorities

Programming Languages

scala
5932 projects

Projects that are alternatives of or similar to akka-streams-interleaving

Es Cqrs Shopping Cart
A resilient and scalable shopping cart system designed using Event Sourcing (ES) and Command Query Responsibility Segregation (CQRS)
Stars: ✭ 19 (-32.14%)
Mutual labels:  akka, akka-streams
telepooz
Functional Telegram Bot API wrapper for Scala on top of akka, circe, cats, and shapeless
Stars: ✭ 26 (-7.14%)
Mutual labels:  akka, akka-streams
Scale
Another example of a REST API with Akka HTTP
Stars: ✭ 23 (-17.86%)
Mutual labels:  akka, akka-streams
akka-http-circe-json-template
Akka HTTP REST API Project Template using Akka HTTP 10.0.4 with Circe 0.7.0 targeting Scala 2.12.x
Stars: ✭ 21 (-25%)
Mutual labels:  akka, akka-streams
Safe Chat
IRC-style chat demo featuring full-stack F#, Akka.Streams, Akkling, Fable, Elmish, Websockets and .NET Core
Stars: ✭ 157 (+460.71%)
Mutual labels:  akka, akka-streams
Akka-Streams-custom-stream-processing-examples
Demos of how to do custom stream processing using the Akka Streams GraphStages API
Stars: ✭ 13 (-53.57%)
Mutual labels:  akka, akka-streams
Travesty
Diagram- and graph-generating library for Akka Streams
Stars: ✭ 83 (+196.43%)
Mutual labels:  akka, akka-streams
slicebox
Microservice for safe sharing and easy access to medical images
Stars: ✭ 18 (-35.71%)
Mutual labels:  akka, akka-streams
Parquet4s
Read and write Parquet in Scala. Use Scala classes as schema. No need to start a cluster.
Stars: ✭ 125 (+346.43%)
Mutual labels:  akka, akka-streams
Squbs
Akka Streams & Akka HTTP for Large-Scale Production Deployments
Stars: ✭ 1,365 (+4775%)
Mutual labels:  akka, akka-streams
Akka
Examples and explanations of how Akka toolkit works
Stars: ✭ 20 (-28.57%)
Mutual labels:  akka, akka-streams
Otoroshi
Lightweight api management on top of a modern http reverse proxy
Stars: ✭ 177 (+532.14%)
Mutual labels:  akka, akka-streams
khermes
A distributed fake data generator based in Akka.
Stars: ✭ 94 (+235.71%)
Mutual labels:  akka, akka-streams
typebus
Framework for building distributed microserviceies in scala with akka-streams and kafka
Stars: ✭ 14 (-50%)
Mutual labels:  akka, akka-streams
alpakka-samples
Example projects building Reactive Integrations using Alpakka
Stars: ✭ 61 (+117.86%)
Mutual labels:  akka, akka-streams
Toketi Iothubreact
Akka Stream library for Azure IoT Hub
Stars: ✭ 36 (+28.57%)
Mutual labels:  akka, akka-streams
akka-cookbook
提供清晰、实用的Akka应用指导
Stars: ✭ 30 (+7.14%)
Mutual labels:  akka, akka-streams
Alpakka Kafka
Alpakka Kafka connector - Alpakka is a Reactive Enterprise Integration library for Java and Scala, based on Reactive Streams and Akka.
Stars: ✭ 1,295 (+4525%)
Mutual labels:  akka, akka-streams
Akka Stream Contrib
Add-ons to Akka Stream
Stars: ✭ 173 (+517.86%)
Mutual labels:  akka, akka-streams
Quark
Quark is a streaming-first Api Gateway using Akka
Stars: ✭ 13 (-53.57%)
Mutual labels:  akka, akka-streams

Akka Streams: Interleaving streams with priority

Build Status

This is a set of examples to demonstrate to make use of Akka Streams built-in stages to achieve interleaving stream behavior to give priority to one lane of data amidst many lanes of data.

There are 2 examples:

  • JsonFileStreamingExample.scala is a simple single stream of data which reads JSON data from a static file, parses the data into a Scala case class and renders it to screen. This is present to get you familiar with the project.

image

  • MergePreferredStreamInterleavingExample.scala is the main focus of this project. It demonstrates how to combine multiple Sources together and give priority to a single Source. This could be especially useful if you are trying to combine sources of data coming from batch jobs and real-time data and you would like to give priority to the real-time stream.

image

Running tests:

You can run tests with:

sbt test

You can check coverage using:

sbt coverage test coverageReport

Contributions and PRs

Please feel free to contribute by sending a Pull Request or filing an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].