{"id":2864,"date":"2021-05-25T08:00:00","date_gmt":"2021-05-25T15:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=2864"},"modified":"2021-07-20T17:33:23","modified_gmt":"2021-07-21T00:33:23","slug":"build-2021-apps-at-any-scale","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/build-2021-apps-at-any-scale\/","title":{"rendered":"Announced at Build: new options to build and test apps at any scale"},"content":{"rendered":"<p>Today at Microsoft Build 2021, we are announcing updates that make it easier than ever to build applications of any scale on Azure Cosmos DB.<\/p>\n<p>For developers building apps with spiky and often-idle traffic, <strong>serverless for all APIs <\/strong>(Core SQL, API for MongoDB, Cassandra, Gremlin and Table) is now generally available. Serverless has no minimum monthly cost and does not require you to estimate throughput in advance, so it is a great fit for apps with sporadic traffic patterns. To configure, just toggle the capacity mode setting to &#8220;serverless&#8221; when creating a new Azure Cosmos DB account. For more details including when to use serverless vs. provisioned throughput, <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/serverless-preview\/\" target=\"_blank\" rel=\"noopener\">check out this blog post<\/a>.<\/p>\n<p>For developers whose workloads are better suited for the traditional provisioned throughput model, we are also introducing <strong>expanded throughput and storage on the Azure Cosmos DB free tier<\/strong>. With 1,000 request units per second (up from 400) and 25 GB storage (up from 5 GB) free each month, you now have more flexibility to spin up a hobby application, learn Azure Cosmos DB for free or simply get a discount on one Azure Cosmos DB account per Azure subscription. Remember to <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/build-apps-for-free-with-azure-cosmos-db-free-tier\/\" target=\"_blank\" rel=\"noopener\">toggle \u201cApply free tier discount\u201d<\/a>\u00a0to &#8220;Apply&#8221; when creating your account; increased quantities will automatically apply to existing free tier accounts.<\/p>\n<p>Finally, we are excited to announce a new opportunity for Linux and macOS developers to build, test and learn on Azure Cosmos DB for free with or without an Azure subscription: the <strong>Linux emulator<\/strong>, now in preview for the Core (SQL) API<strong>.<\/strong>\u00a0<span style=\"text-decoration: underline;\">See below<\/span> for more details on how to get started today.<\/p>\n<p><em>Note: This is one of two posts on Azure Cosmos DB updates at Build 2021. For details on new options for enhanced control, security, cost savings and speed, <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/build-2021-secure-and-optimize\" target=\"_blank\" rel=\"noopener\">check out our blog post here<\/a>.<\/em><\/p>\n<h4><\/h4>\n<p>&nbsp;<\/p>\n<h4><span style=\"font-size: 18pt;\"><strong>Spotlight on the NEW Linux emulator:<\/strong><\/span><\/h4>\n<p>The Azure Cosmos DB local emulator makes it possible to develop on your Linux or macOS machine for free. It is also <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cosmos-db\/local-emulator?tabs=cli%2Cssl-netstd21#run-on-windows\" target=\"_blank\" rel=\"noopener\">available for Windows developers<\/a>.<\/p>\n<h5><span style=\"font-size: 14pt;\"><em>To install and configure the Azure Cosmos DB Linux emulator:<\/em><\/span><\/h5>\n<ol>\n<li><strong>Download Docker Desktop<\/strong> for <a href=\"https:\/\/docs.docker.com\/docker-for-mac\/install\/\" target=\"_blank\" rel=\"noopener\">macOS<\/a> or <a href=\"https:\/\/docs.docker.com\/engine\/install\/ubuntu\/\" target=\"_blank\" rel=\"noopener\">Linux<\/a><\/li>\n<li>Next, <strong>retrieve the IP address <\/strong>of your local machine. This step is required when Direct mode setting is configured using Azure Cosmos DB SDKs (.NET, Java).<\/li>\n<\/ol>\n<pre class=\"prettyprint\">ipaddr=\"`ifconfig | grep \"inet \" | grep -Fv 127.0.0.1 | \r\nawk '{print $2}' | head -n 1`\"<\/pre>\n<ol start=\"3\">\n<li><strong>Pull the Docker image<\/strong> from the registry.<\/li>\n<\/ol>\n<pre class=\"prettyprint\">docker pull mcr.microsoft.com\/cosmosdb\/linux\/azure-cosmos-emulator<\/pre>\n<ol start=\"4\">\n<li><strong>Run the Docker image<\/strong> with the following configurations <em>(note: remove all line breaks when running this command):<\/em><\/li>\n<\/ol>\n<pre class=\"prettyprint\">docker run -p 8081:8081 -p 10251:10251 -p 10252:10252 \r\n-p 10253:10253 -p 10254:10254 -m 3g --cpus=2.0 --name=test-linux-emulator \r\n-e AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10\r\n-e AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true\r\n-e AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=$ipaddr\r\n-it mcr.microsoft.com\/cosmosdb\/linux\/azure-cosmos-emulator<\/pre>\n<p>For details on how to manually trust the self-signed certificate of the emulator and access the emulator\u2019s UI, please follow this <a href=\"https:\/\/aka.ms\/linux-emulator\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\n<ol start=\"5\">\n<li>Once you have set up the emulator, you will be able to <strong>test and develop locally<\/strong>!<\/li>\n<\/ol>\n<p>When you are satisfied with your application in the emulator, update the Azure Cosmos DB connection endpoint to deploy to an Azure Cosmos DB account in the cloud.<\/p>\n<h5><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1.png\"><img decoding=\"async\" class=\"aligncenter wp-image-3047 size-full\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1.png\" alt=\"Interface of Azure Cosmos DB Linux emulator\" width=\"1612\" height=\"849\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1.png 1612w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1-300x158.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1-1024x539.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1-768x404.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2021\/05\/Linux-emulator-1-1536x809.png 1536w\" sizes=\"(max-width: 1612px) 100vw, 1612px\" \/><\/a><\/h5>\n<h5><\/h5>\n<h4><strong>For more information on all Azure Cosmos DB updates:<\/strong><\/h4>\n<ul>\n<li>If you haven&#8217;t already, <a href=\"https:\/\/mybuild.microsoft.com\/home\" target=\"_blank\" rel=\"noopener\">register for Microsoft Build 2021<\/a> to access live and recorded sessions<\/li>\n<li><a href=\"https:\/\/azure.microsoft.com\/blog\/harness-the-power-of-data-and-ai-in-your-applications-with-azure\/\" target=\"_blank\" rel=\"noopener\">Read up<\/a> on all of the exciting Azure Data + AI news at Build<\/li>\n<li><a href=\"https:\/\/aka.ms\/build-book-of-news\" target=\"_blank\" rel=\"noopener\">Review a full list<\/a> of Build 2021 announcements<\/li>\n<\/ul>\n<h5><\/h5>\n<h4><strong>New to Azure Cosmos DB?<\/strong><\/h4>\n<ul>\n<li>Download the free\u00a0<a href=\"https:\/\/azure.microsoft.com\/en-us\/resources\/azure-cosmos-db-onboarding-best-practices\/\" target=\"_blank\" rel=\"noopener\">best practices and optimization guide<\/a><\/li>\n<li>Visit\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/learn\/browse\/?terms=cosmos%20db\" target=\"_blank\" rel=\"noopener\">MS Learn<\/a> to build your Azure Cosmos DB skills<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Read on Azure Cosmos DB updates at Microsoft Build 2021, including the GA of serverless, expansion of the free tier and NEW Linux emulator.<\/p>\n","protected":false},"author":61526,"featured_media":3047,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16,17,15,14,18,13],"tags":[1121,1177],"class_list":["post-2864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cassandra-api","category-gremlin-api","category-mongodb-api","category-core-sql-api","category-table-api","category-news","tag-msbuild","tag-serverless"],"acf":[],"blog_post_summary":"<p>Read on Azure Cosmos DB updates at Microsoft Build 2021, including the GA of serverless, expansion of the free tier and NEW Linux emulator.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/2864","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\/61526"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=2864"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/2864\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/3047"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=2864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=2864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=2864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}