Configuring the application to run on App Service
The Distel application we have built has the silo configuration to run on the local developer's machine. It uses the in-memory storage for cluster membership storage and the silo endpoint is configured as IPAddress.Loopback
. This configuration is only used on a local developer machine. This configuration will not work in production scenarios where we have a cluster of silos as they all need to communicate with each other. The grain state should also be persisted in permanent storage rather than being stored in temporary in-memory storage since we'll lose all the state if the node goes down.
To make the Distel application run in Azure App Service, we need to update the silo endpoint configuration. We also need to configure the grain storage to use Cosmos DB. The following steps will guide you to make our application ready to deploy to Azure App Service:
- Configure the silo endpoint: Let's start by configuring...