I want to deploy a microservice in my AKS with two replicas and I have a problem scaling (horizontally) my service. I explain my issue:
When a client makes an HTTP request to the API, I lock it, and I send a command through the Azure Service Bus, and I dont unlock it until I have the answer through another command. The problem is that if I have two instances of my service, the instance which is not connected to the client may receive the command, so it is no able to reply the client. So I think that the system is not scalable... Do you have any suggestion?
Thank you very much!