{"id":2001,"date":"2020-11-12T08:00:23","date_gmt":"2020-11-12T16:00:23","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=2001"},"modified":"2021-03-02T07:37:42","modified_gmt":"2021-03-02T15:37:42","slug":"azure-cosmos-db-cassandra-api-serverless-now-in-preview","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/azure-cosmos-db-cassandra-api-serverless-now-in-preview\/","title":{"rendered":"Azure Cosmos DB Cassandra API serverless now in preview!"},"content":{"rendered":"<p>We are excited to announce that serverless for Azure Cosmos DB Cassandra API is here! This new consumption-based model lets you use your Cassandra Keyspaces and tables cost-effectively, without having to provision any throughput, and is an alternative to standard and autoscale provisioned throughput.<\/p>\n<p>Azure Cosmos DB <a href=\"https:\/\/aka.ms\/cosmos-serverless\">serverless<\/a> for <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/cassandra-introduction\">Cassandra API<\/a> is a cost-effective option for keyspaces and tables with sporadic traffic patterns and modest bursts. When your resources sit idle most of the time, it doesn\u2019t make sense to provision and pay for unneeded per-second capacity. As a consumption-based option, serverless eliminates the concept of provisioned throughput and instead <strong>charges you for the RUs your keyspace operations consume.<\/strong><\/p>\n<p>Check this video for a visual comparison between provisioned throughput and serverless:<\/p>\n<p style=\"text-align: center;\"><iframe src=\"\/\/www.youtube.com\/embed\/CgYQo6uHyt0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>You can find out more details on the differences between serverless and provisioned throughput, as well as the common use cases for serverless, by reading our previous blog on the initial release of serverless <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/serverless-preview\/\">here<\/a>.<\/p>\n<h3>Getting started with Cassandra serverless!<\/h3>\n<p>You must create a new Azure Cosmos DB Cassandra API account from the Azure portal to get started with Cassandra serverless! When creating your new account, select <strong>Cassandra<\/strong>\u00a0as the <strong>API type<\/strong>, then <strong>Serverless (preview)<\/strong> under <strong>Capacity mode<\/strong>:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1.png\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-2018\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1-1024x443.png\" alt=\"Image cassandra serverless\" width=\"640\" height=\"277\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1-1024x443.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1-300x130.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1-768x332.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1-1536x665.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-1.png 1578w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Once your new serverless account is created, you manage your Azure Cosmos DB resources and data just like you would in provisioned throughput mode. The only difference is that you don\u2019t have to specify any throughput when creating a keyspace or table:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-table.png\"><img decoding=\"async\" class=\"aligncenter wp-image-2009 size-large\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-table-1024x716.png\" alt=\"Image cassandra serverless table\" width=\"640\" height=\"448\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-table-1024x716.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-table-300x210.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-table-768x537.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-table.png 1114w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>You can also create Cassandra API keyspaces and tables using the open source Apache Cassandra <a href=\"https:\/\/cassandra.apache.org\/doc\/latest\/tools\/cqlsh.html\">shell<\/a>, just as you can with any other type of account. Or, if you have enabled the built-in <a href=\"https:\/\/azure.microsoft.com\/blog\/analyze-and-visualize-your-data-with-azure-cosmos-db-notebooks\/\">notebooks<\/a> feature, you can use the <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/announcing-native-cassandra-shell-preview\/\">hosted Cassandra shell<\/a> directly in Azure Cosmos DB portal. As with creating keyspaces and tables in the portal, you don&#8217;t have to specify throughput, and no &#8220;scale and settings&#8221; is shown in the data pane after resources are created:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-2012\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1.png\" alt=\"Image cassandra serverless cqlsh\" width=\"2010\" height=\"974\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1.png 2010w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1-300x145.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1-1024x496.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1-768x372.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2020\/11\/cassandra-serverless-cqlsh-1-1536x744.png 1536w\" sizes=\"(max-width: 2010px) 100vw, 2010px\" \/><\/a><\/p>\n<p>We are looking forward to seeing how you make use of Azure Cosmos DB Cassandra API serverless! Get started today with the following resources:<\/p>\n<ul>\n<li><a href=\"https:\/\/aka.ms\/cosmos-serverless\">Serverless documentation<\/a><\/li>\n<li>Overview of <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/cassandra-introduction\" target=\"_blank\" rel=\"noopener\">Azure Cosmos DB Cassandra API\u00a0<\/a><\/li>\n<li><a href=\"https:\/\/azure.microsoft.com\/pricing\/details\/cosmos-db\/\">Azure Cosmos DB pricing page<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cosmos-db\/throughput-serverless\">How to choose between provisioned throughput and serverless<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Azure Cosmos DB serverless is now available for the Cassandra API.  Get an overview of this new option, a walk-through on getting started, and tips for choosing between serverless and provisioned throughput for your database operations.<\/p>\n","protected":false},"author":9387,"featured_media":2012,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12,16],"tags":[1076,1075,287,1177,1757],"class_list":["post-2001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements","category-cassandra-api","tag-cassandra","tag-cassandra-api","tag-cosmos-db","tag-serverless","tag-serverless-cassandra"],"acf":[],"blog_post_summary":"<p>Azure Cosmos DB serverless is now available for the Cassandra API.  Get an overview of this new option, a walk-through on getting started, and tips for choosing between serverless and provisioned throughput for your database operations.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/2001","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\/9387"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=2001"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/2001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/2012"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}