注:この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には、固有のソリューションが含まれています。ソリューションが指定された目標を満たしているかどうかを判断します。
複数のASP.Net Webアプリケーションを開発してAzure App Serviceにデプロイします。セッション状態情報とHTML出力を保存する予定です。次の要件を持つストレージメカニズムを使用する必要があります。
*すべてのASP.NET Webアプリケーション間でセッション状態を共有する
*複数のリーダーと単一のライターの同じセッション状態データへの制御された同時アクセスをサポート
*同時リクエストの完全なHTTP応答を保存する
情報を保存する必要があります。
提案されたソリューション:Azure Cache for Redisをデプロイして構成します。 Webアプリケーションを更新します。
。
ソリューションは目標を達成していますか?
正解:A
Explanation
The session state provider for Azure Cache for Redis enables you to share session information between different instances of an ASP.NET web application.
The same connection can be used by multiple concurrent threads.
Redis supports both read and write operations.
The output cache provider for Azure Cache for Redis enables you to save the HTTP responses generated by an ASP.NET web application.
Note: Using the Azure portal, you can also configure the eviction policy of the cache, and control access to the cache by adding users to the roles provided. These roles, which define the operations that members can perform, include Owner, Contributor, and Reader. For example, members of the Owner role have complete control over the cache (including security) and its contents, members of the Contributor role can read and write information in the cache, and members of the Reader role can only retrieve data from the cache.
Reference:
https://docs.microsoft.com/en-us/azure/architecture/best-practices/caching