This repo collects my CPE-469 Distributed Systems projects. The projects start with crawling and MapReduce, then build toward containerized workers, distributed search, replicated storage, and Raft-style leader election.
All seven are in Go, using the standard library's net/rpc for communication between processes.
PA1 web crawler + inverted index crawl, index, write files
PA2 MapReduce over RPC coordinator + local workers
PA3 MapReduce across Docker containers worker registration, timeouts
PA5 distributed search engine sharded index, 2 live copies per shard
PA6 banking over RPC with SQLite one node, operation log
PA7 replicated banking, fixed leader 3 replicas, majority commit
PA8 Raft-style banking cluster 5 replicas, elections, log repair
Each folder has its own README with the original PA number, run commands, and the main files worth reading.
Start here if you only have a few minutes:
- Distributed Search Engine: coordinator and workers crawl, build sharded inverted indexes, replicate shards, and route queries to live replicas.
- Raft Banking Cluster: five replicas with leader election, heartbeats, majority commit, and follower log repair.
| Project | Class step | What it does | Systems pieces | Check |
|---|---|---|---|---|
| Web Crawler Indexer | PA1 | Crawls pages and writes an inverted index | crawling, indexing, file output | cd projects/web-crawler-indexer && go build ./... (no unit tests) |
| MapReduce RPC | PA2 | Runs local MapReduce workers through RPC | coordinator/worker RPC, map/reduce tasks | cd projects/mapreduce-rpc && go build ./... (no unit tests) |
| MapReduce Virtual Cluster | PA3 | Runs MapReduce across Docker containers | Docker networking, worker registration, timeouts | cd projects/mapreduce-virtual-cluster && go build ./... (no unit tests) |
| Distributed Search Engine | PA5 | Crawls, shards indexes, and serves search queries | crawling, sharding, replication, search routing | cd projects/distributed-search-engine && go build ./... (no unit tests) |
| Banking RPC SQLite | PA6 | Single-node banking RPC server | SQLite, transactions, operation logs | cd projects/banking-rpc-sqlite && go build ./... (no unit tests) |
| Replicated Banking Fixed Leader | PA7 | Three banking replicas with one fixed leader | majority commit, replicated logs | cd projects/replicated-banking-fixed-leader && go test ./... (unit tests) |
| Raft Banking Cluster | PA8 | Five banking replicas with leader election | Raft-style elections, heartbeats, log repair | cd projects/raft-banking-cluster && go test ./... (unit tests) |
- RPC between coordinators, workers, clients, and replicas.
- MapReduce task splitting, reduce partitioning, and worker coordination.
- Docker Compose clusters for multi-process distributed runs.
- Sharded inverted indexes, search routing, and crawler batching.
- SQLite-backed state with operation logs and replicated log entries.
- Majority commit, leader/follower replication, leader election, heartbeats, and log repair.