One or more microservice flows affected by a microservice failure are determined. An amount of revenue loss per period of time for the one or more microservice flows affected by the microservice failure is determined. A microservice restoration time for the microservice failure is retrieved. An expected total cost of a downtime for each microservice is determined based on the amount of revenue loss per period of time and the microservice restoration time.