Introduction to the Integrated Cache

Get a brief introduction on improving query performance with the Cosmos DB integrated cache on a dedicated gateway.

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.

Get hands-on with 1200+ tech skills courses.