advanced
Microservices Scalability Analysis
Analyze a complex microservices architecture for a high-frequency trading platform.
📝 Promptens innehåll
Analyze the architectural bottlenecks in a high-frequency trading platform utilizing microservices. Specifically, consider a system handling 500,000 transactions per second with a strict latency requirement of under 10 milliseconds. Discuss the trade-offs between eventual consistency and strong consistency in this context, and propose a caching strategy using Redis that minimizes cache stampedes without significantly increasing staleness. Additionally, provide a pseudo-code implementation for a circuit breaker pattern that handles partial outages in the order matching service.