Optimization of Microservice Infrastructure for Real-Time Systems: Balancing Performance, Resilience, and Cost | Synapse