Deploying the solution to Microsoft Azure
When using a low load, the complete solution is not expensive when it’s running on Microsoft Azure. CPU power typically results in higher cost. How many containers are running with Azure Container Apps? bot-service
, the game-apis
service, live-service
, ranking-service
, and the Redis container. The game-apis
service should scale with the minimum value set to 1, which provides a fast response for the first user so that they get a fast first answer. If you scale to 1 when the service is idle, there’s an idle price that reduces the cost of the CPU considerably. bot-service
, live-service
, and ranking-service
can scale down to 0, which means there’s no cost in terms of CPU and memory. However, be aware of custom health checks (covered in Chapter 12), which can play against scaling to 0. With live-service
, if there’s no listener to query for running games, you can’t subscribe to events. Thus, cost only applies if...