...
/Introduction to the Integrated Cache
Introduction to the Integrated Cache
Get a brief introduction on improving query performance with the Cosmos DB integrated cache on a dedicated gateway.
We'll cover the following...
Introduction
In Cosmos DB, there are two ways to connect to a container:
Through a gateway with HTTP
Directly with TCP
The gateway is responsible for routing requests to the correct physical partition, and it’s shared by multiple accounts to save costs. However, by default, .NET clients connect using the direct mode to reduce latency.
Dedicated gateway
It’s possible to deploy a gateway dedicated to us to access additional features, currently, the integrated cache. To provision one, we can go to the dedicated blade in the Azure portal and enable the toggle.
Once enabled, we need to choose the number of instances per region and the node type between: