{"id":4814,"date":"2022-08-31T08:00:05","date_gmt":"2022-08-31T15:00:05","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=4814"},"modified":"2022-08-31T08:01:55","modified_gmt":"2022-08-31T15:01:55","slug":"announcing-integrated-cache-general-availability","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/announcing-integrated-cache-general-availability\/","title":{"rendered":"Announcing General Availability of Azure Cosmos DB integrated cache"},"content":{"rendered":"<p><span class=\"TextRun SCXW226050007 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW226050007 BCX8\">Reduce costs and latency for <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">read<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">&#8211;<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW226050007 BCX8\">heavy<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\"> workloads with <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">Azure Cosmos DB integrated cache<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">, <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">an in-memory cache<\/span> <span class=\"NormalTextRun SCXW226050007 BCX8\">that\u2019s<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\"> now generally available<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">. <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">In addition to increasing speed and decreasing costs, adding an integrated cache<\/span><span class=\"NormalTextRun CommentStart CommentHighlightPipeRest CommentHighlightRest SCXW226050007 BCX8\"> simplifies your<\/span> <span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\">architecture<\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\"> and application complexity<\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\">, allow<\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\">ing<\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\"> you to <\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\">focus <\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\">on building<\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\"> your<\/span><span class=\"NormalTextRun CommentHighlightRest SCXW226050007 BCX8\"> business logic<\/span><span class=\"NormalTextRun CommentHighlightPipeRest SCXW226050007 BCX8\">. The integrated cache is <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">built<\/span> <span class=\"NormalTextRun SCXW226050007 BCX8\">into the Azure Cosmos DB <\/span><\/span><a class=\"Hyperlink SCXW226050007 BCX8\" href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/dedicated-gateway\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW226050007 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW226050007 BCX8\" data-ccp-charstyle=\"Hyperlink\">dedicated gateway<\/span><\/span><\/a><span class=\"TextRun SCXW226050007 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW226050007 BCX8\"> and can b<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">e <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">utilized<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\"> with <\/span><span class=\"NormalTextRun SCXW226050007 BCX8\">minimal changes to your application.<\/span><span class=\"NormalTextRun SCXW226050007 BCX8\"> This allows you to get all the benefits of a traditional cache without any of the application overhead.<\/span><\/span><span class=\"EOP SCXW226050007 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"TextRun SCXW136342373 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW136342373 BCX8\" data-ccp-parastyle=\"heading 1\">Save costs on database reads<\/span><\/span><span class=\"EOP SCXW136342373 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h3>\n<p><span class=\"TextRun SCXW65933650 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW65933650 BCX8\">Integrated cache can reduce database costs for many workloads<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">. For example, <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">it will cost 0 request units (RUs) to serve <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">a<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> read from the <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">integrated <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">cache<\/span> <span class=\"NormalTextRun SCXW65933650 BCX8\">if no <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">cache refresh<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> is <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">required<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">.<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> This is true<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> for point reads or queries<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">,<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> regardless of <\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">the complexity of the query<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> or the size of data returned<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\">.<\/span> <span class=\"NormalTextRun SCXW65933650 BCX8\">This<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> is useful<\/span><span class=\"NormalTextRun SCXW65933650 BCX8\"> for:<\/span><\/span><span class=\"EOP SCXW65933650 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Read-heavy workloads with relatively static data.<\/span><\/b><span data-contrast=\"auto\"> If data is read more often than it is updated, there is potential benefit from caching.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Workloads that perform the same point read or query multiple times within a short period.<\/span><\/b><span data-contrast=\"auto\"> Point reads of the same document and queries with the same text, including parameters, that are executed multiple times within the staleness window you set will cost 0 RUs!<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Workloads that need predictable, low latency<\/span><\/b><span data-contrast=\"auto\"> for repeated point reads and queries.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"4\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Workloads that have expensive reads<\/span><\/b><span data-contrast=\"auto\">, either due to large document sizes or complex queries.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"4\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Workloads that have a hot partition<\/span><\/b><span data-contrast=\"auto\"> due to repeated reads within one or more physical partitions.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span class=\"TextRun SCXW75884486 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW75884486 BCX8\" data-ccp-parastyle=\"heading 1\">New <\/span><span class=\"NormalTextRun SCXW75884486 BCX8\" data-ccp-parastyle=\"heading 1\">integrated cache <\/span><span class=\"NormalTextRun SCXW75884486 BCX8\" data-ccp-parastyle=\"heading 1\">features\u00a0<\/span><\/span><span class=\"EOP SCXW75884486 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h3>\n<p><span class=\"TextRun SCXW21784930 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW21784930 BCX8\">We added new features since the public preview including<\/span><span class=\"NormalTextRun SCXW21784930 BCX8\">:<\/span><\/span><span class=\"EOP SCXW21784930 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"5\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:770,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">Network isolation capabilities to help you keep your data secure. This includes the ability to provision a dedicated gateway on Azure Cosmos DB accounts configured to use a Virtual Network, IP filters, or Private Link. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"5\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:770,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">New supported regions.<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"5\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:770,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">Improved <\/span><a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/integrated-cache#metrics\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"auto\">m<\/span><span data-contrast=\"none\">etrics<\/span><\/a><span data-contrast=\"auto\"> to help you monitor your cache usage.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"5\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:770,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">The ability to set the MaxIntegratedCacheStaleness value with more of our SDKs! See examples for each SDK in our <\/span><a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/how-to-configure-integrated-cache#adjust-maxintegratedcachestaleness\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">documentation<\/span><\/a><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span class=\"TextRun SCXW257892000 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW257892000 BCX8\" data-ccp-parastyle=\"heading 1\">Get started<\/span><span class=\"NormalTextRun SCXW257892000 BCX8\" data-ccp-parastyle=\"heading 1\"> with integrated cache<\/span><\/span><span class=\"EOP SCXW257892000 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h3>\n<p><span class=\"TextRun SCXW40075582 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW40075582 BCX8\">F<\/span><span class=\"NormalTextRun SCXW40075582 BCX8\">irst<\/span><span class=\"NormalTextRun SCXW40075582 BCX8\"> you<\/span><span class=\"NormalTextRun SCXW40075582 BCX8\"> need to provision a dedicated gateway. <\/span><span class=\"NormalTextRun SCXW40075582 BCX8\">Once deployed, t<\/span><span class=\"NormalTextRun SCXW40075582 BCX8\">he <\/span><span class=\"NormalTextRun SCXW40075582 BCX8\">dedicated gateway functions<\/span><span class=\"NormalTextRun SCXW40075582 BCX8\"> similar to the Azure Cosmos DB standard gateway<\/span><span class=\"NormalTextRun SCXW40075582 BCX8\"> for routing requests, and also contains the integrated cache.<\/span><\/span><span class=\"EOP SCXW40075582 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch.png\"><img decoding=\"async\" class=\"aligncenter wp-image-4816 size-large\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch-1024x443.png\" alt=\"Image dedicated gateway arch\" width=\"640\" height=\"277\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch-1024x443.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch-300x130.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch-768x332.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch-1536x664.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-arch-2048x885.png 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW225136229 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW225136229 BCX8\">To use the dedicated gateway and integrated cache, ensure <\/span><span class=\"NormalTextRun SCXW225136229 BCX8\">t<\/span><span class=\"NormalTextRun SCXW225136229 BCX8\">hree<\/span><span class=\"NormalTextRun SCXW225136229 BCX8\"> things are true in your application.<\/span><\/span><span class=\"EOP SCXW225136229 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><strong><span class=\"TextRun SCXW128483373 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW128483373 BCX8\">Your application should be configured to use the <\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">dedicated gateway connection string.<\/span><\/span><\/strong><span class=\"TextRun SCXW128483373 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"> <span class=\"NormalTextRun SCXW128483373 BCX8\">The endpoint will replace \u201cdocuments.azure.com\u201d with \u201csqlx.cosmos.azure.com\u201d <\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">and <\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">the <\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">rest <\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">remain<\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">s<\/span><span class=\"NormalTextRun SCXW128483373 BCX8\"> the same. Here is an example of finding th<\/span><span class=\"NormalTextRun SCXW128483373 BCX8\">e dedicated gateway connection string<\/span><span class=\"NormalTextRun SCXW128483373 BCX8\"> in the Portal.<a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-conn-string.png\"><img decoding=\"async\" class=\"alignnone wp-image-4815 size-large\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-conn-string-1024x404.png\" alt=\"Image dedicated gateway conn string\" width=\"640\" height=\"253\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-conn-string-1024x404.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-conn-string-300x118.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-conn-string-768x303.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/08\/dedicated-gateway-conn-string.png 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/span><\/li>\n<li><b style=\"font-size: 1rem;\"><span data-contrast=\"auto\">Your application should be in gateway mode. <\/span><\/b><span style=\"font-size: 1rem;\" data-contrast=\"auto\">Direct mode is the default for the .NET and Java SDKs so be sure to set gateway mode explicitly when creating your client. The Python and Node.js SDKs always use gateway mode.<\/span><\/li>\n<li><b><span data-contrast=\"auto\">A request should have either Session or Eventual consistency to use the integrated cache. <\/span><\/b><span data-contrast=\"auto\">You can use the dedicated gateway with other consistency modes, but requests with the other modes will bypass the integrated cache. These requests cost RUs even if they would have been a cache hit. You can configure consistency at the account, client, or request level. The default account consistency setting doesn&#8217;t apply for the Python SDK, so you need to set it for each request.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3><span class=\"TextRun SCXW39770260 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW39770260 BCX8\" data-ccp-parastyle=\"heading 1\">Learn more<\/span><\/span><span class=\"EOP SCXW39770260 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h3>\n<ul style=\"font-weight: 400;\">\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/integrated-cache\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Azure Cosmos DB integrated cache | Microsoft Docs<\/span><\/a><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/dedicated-gateway\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Azure Cosmos DB dedicated gateway | Microsoft Docs<\/span><\/a><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/how-to-configure-integrated-cache\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">How to configure the Azure Cosmos DB integrated cache | Microsoft Docs<\/span><\/a><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Reduce costs and latency for read&#8211;heavy workloads with Azure Cosmos DB integrated cache, an in-memory cache that\u2019s now generally available. In addition to increasing speed and decreasing costs, adding an integrated cache simplifies your architecture and application complexity, allowing you to focus on building your business logic. The integrated cache is built into the Azure [&hellip;]<\/p>\n","protected":false},"author":94159,"featured_media":4816,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12,14],"tags":[],"class_list":["post-4814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements","category-core-sql-api"],"acf":[],"blog_post_summary":"<p>Reduce costs and latency for read&#8211;heavy workloads with Azure Cosmos DB integrated cache, an in-memory cache that\u2019s now generally available. In addition to increasing speed and decreasing costs, adding an integrated cache simplifies your architecture and application complexity, allowing you to focus on building your business logic. The integrated cache is built into the Azure [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/4814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/users\/94159"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=4814"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/4814\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/4816"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=4814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=4814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=4814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}