ScalaadvancedbackendAI generated

Distributed Word Count with Akka Actors

Implement a word-count system where a master actor splits a large text corpus across worker actors that count words in parallel and report results back for aggregation. Learners practice the actor model, message passing, supervision, and parallel workload distribution.

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

Akka Actors · Akka TestKit

Project roadmap

  1. 01

    Design the actor message protocol

    ~2h

    Define the messages exchanged between master and worker actors, including work chunks and results.

  2. 02

    Implement the worker actor

    ~2h

    Write a worker actor that counts word frequencies in an assigned text chunk.

  3. 03

    Implement the master and aggregator actor

    ~3h

    Split the corpus into chunks, dispatch them to workers, and merge partial results.

  4. 04

    Add a supervision strategy

    ~2h

    Configure supervision so a failed worker is restarted without losing overall progress.

  5. 05

    Benchmark against a sequential version

    ~2h

    Compare wall-clock time of the actor-based approach against a single-threaded implementation.

  6. 06

    Write actor tests

    ~2h

    Use Akka TestKit to test message flows and failure recovery.

Resources

Ready to build this?

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

~13h · 6 steps

Tech stack

Akka ActorsAkka TestKit