Low-Level / Object-Oriented Design / Stage 3 · Stateful components
Compose stateful components and test their contracts
"Already know" meets prerequisites. "Not relevant" removes the topic from your total but leaves what builds on it waiting.
Self-check
- Design a chat service with a bounded recent-message cache per room. Demonstrate eviction, fan-out to every member, and a test for two messages arriving at the same moment.
- Evidence to include: Keep the component boundaries and the contract each one promises, the eviction test, the fan-out test, and how the concurrent test makes the race repeatable.
Try it without the material first, then compare. Save your answer in your notes below. Report a problem with this self-check
Learning activities
2 activities- Not done5 min
- Not done5 min