Week 22 - Core Implementation¶
Conceptual Core¶
Build the core happy path. Cut corners on operations (you'll fix in week 23), cut corners on edge cases (you'll fix in week 24), but the core algorithm must be correct and tested.
Deliverables¶
- Distributed storage: leader election + log replication + linearizable single-key reads, with a 3-node integration test.
- Service mesh: end-to-end gRPC call through registry + load-balancer + deadline propagation, with at least two backend services.
- Streaming pipeline: producer → broker → consumer with persistent log and at-least-once semantics.
Testing posture¶
- Unit tests at the algorithm level (Raft state machine transitions, mesh routing decisions, log segment append/read).
- Integration tests with Testcontainers (3-node cluster, 2-service mesh, broker + N consumers).
- One property-based test (jqwik) per core invariant.
- One
jcstresstest if your project has any custom concurrency (it probably does).
Hardening slice¶
JFR continuous recording on. Structured logs through OpenTelemetry. Prometheus metrics for every operation.