Alcoholism Microservice Mesh
Par 7Question 69advancedSheet 1750822302
Deep Breath
A distributed system manages your drinking habits across multiple bars and liquor stores. Each microservice tracks different aspects of alcohol consumption with eventual consistency between hangover states. The system implements circuit breakers that literally prevent access to liquor stores after certain thresholds while maintaining personal autonomy and avoiding system failure during withdrawal. Design fault-tolerant architecture for addiction management while maintaining human dignity and freedom of choice. Balance protective intervention with personal responsibility, ensuring the system supports recovery without becoming an authoritarian nightmare that drives people to disable their own health monitoring. Your task: Build a microservice mesh that gracefully handles binge drinking, blackout recovery, and the occasional emergency tequila failover while somehow maintaining enough compassion to actually help instead of just judging.
Why You're Doing This
This tests distributed systems design, circuit breaker patterns, and implementing health monitoring across multiple services. You're building a system that monitors behavior patterns and implements protective measures—similar to fraud detection or health monitoring systems that need to intervene while respecting user autonomy and maintaining system reliability.
Take the W
- ✓ Implements protective circuit breakers for health thresholds
- ✓ Maintains system availability during user health crises
- ✓ Balances intervention with personal autonomy
Hard L
- ✗ Completely removes user autonomy
- ✗ Ignores health metrics and safety thresholds
- ✗ Creates system failures during withdrawal periods
Edge Cases
- ⚠ User disabling monitoring during crisis periods requiring emergency intervention
- ⚠ False positive health alerts causing intervention fatigue and system distrust
- ⚠ Emergency situations requiring immediate intervention despite user autonomy preferences
- ⚠ Recovery periods requiring different monitoring and support protocols
Input Format:
Addiction monitoring system with graduated supportive intervention protocols
Expected Output:
Health protection architecture with dignity-preserving intervention management
Example:
{consumption: 0.8, risk_level: "high", support_history: "responsive", dignity: "priority"} → intervention: {type: "supportive", escalation: "gradual", dignity: "preserved"} // Health: protected, autonomy: maintained
Hints
- 💡 Intervention levels: wellness_check, resource_sharing, friend_notification, professional_referral, emergency_response
- 💡 Dignity preservation: respectful_communication, personal_choice, supportive_resources, non_judgmental_approach
- 💡 Health protection: graduated_response, professional_support, emergency_protocols, recovery_assistance