ScalaadvancedaiAI generated

Real-Time Stock Price Stream Processor

Build a streaming pipeline that ingests simulated real-time stock price ticks, computes rolling moving averages and volatility per symbol, and detects anomalous price spikes. Learners practice Akka Streams, backpressure handling, and windowed stream aggregation.

Estimate
~14.5h
Steps
6
Completed by
0
Proposed by
codeseed.app

Akka Streams · Akka HTTP

Project roadmap

  1. 01

    Simulate a tick-data source

    ~2h

    Build a source that emits randomized stock price ticks for multiple symbols at a configurable rate.

  2. 02

    Build the streaming graph

    ~2.5h

    Compose Akka Streams stages to route ticks per symbol with proper backpressure.

  3. 03

    Implement rolling window aggregation

    ~3h

    Compute rolling moving averages and volatility using sliding windows per symbol.

  4. 04

    Implement anomaly detection

    ~2.5h

    Flag ticks that deviate significantly from the rolling average as anomalies.

  5. 05

    Expose live results via HTTP

    ~2.5h

    Add an Akka HTTP endpoint that streams current aggregates as server-sent events.

  6. 06

    Load test the pipeline

    ~2h

    Measure throughput and latency under high tick volume and tune buffer sizes.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~14.5h · 6 steps

Tech stack

Akka StreamsAkka HTTP