From the course: Microsoft Azure Cosmos DB Developer Specialty (DP-420) Cert Prep: 1 Design and Implement Data Models by Microsoft Press

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

Identify data and associated access patterns

Identify data and associated access patterns

Well, as I mentioned, the Cosmos DB, SQL SDK or Software Development Kit, has two connectivity modes. I'm just going to buzz through this here because we're going to go in much more detail later. There's Gateway Mode and Direct Mode. Gateway is supported on all SDKs for all languages. We're going to be concerned, by the way, with C# as our development language in this course, because that's the code that you'll see on your exam. There are multiple languages and multiple language SDKs available for Microsoft. But once again, Microsoft, I guess, has to standardize one. So they decided to standardize on their own C#. Now, Gateway mode is the easiest to use because it's using HTTPS and TCP 443. The problem with it is that you get a little more latency when you connect to Cosmos and Gateway mode because you're actually hitting a front-end gateway at your endpoint and then your request is forwarded to your back-end cluster. The recommendation is to use Gateway mode in your application when…

Contents