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
- 01
Design the actor message protocol
~2hDefine the messages exchanged between master and worker actors, including work chunks and results.
- 02
Implement the worker actor
~2hWrite a worker actor that counts word frequencies in an assigned text chunk.
- 03
Implement the master and aggregator actor
~3hSplit the corpus into chunks, dispatch them to workers, and merge partial results.
- 04
Add a supervision strategy
~2hConfigure supervision so a failed worker is restarted without losing overall progress.
- 05
Benchmark against a sequential version
~2hCompare wall-clock time of the actor-based approach against a single-threaded implementation.
- 06
Write actor tests
~2hUse 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.
Tech stack