I want to apply queuing theory for our service which consists of multiple microservices which communicate via message queues.
Basically, all events from the inbound queue are processed by one or several instances of the microservice and are being put into the next queue. It goes on for like 10 steps.
Are there any models or approaches for applying queueing theory for my case? What I want is to optimize this flow by configuring order of processing, number of instances, e.t.c. to reach the required bandwidth and stability of the system.