{"id":3994,"date":"2022-02-28T12:00:41","date_gmt":"2022-02-28T20:00:41","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=3994"},"modified":"2022-02-28T08:19:09","modified_gmt":"2022-02-28T16:19:09","slug":"azure-cosmos-db-api-for-mongodb-v4-2-is-here-three-reasons-to-upgrade-now","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/azure-cosmos-db-api-for-mongodb-v4-2-is-here-three-reasons-to-upgrade-now\/","title":{"rendered":"Azure Cosmos DB API for MongoDB v4.2 Is Here \u2013 Three Reasons to Upgrade Now"},"content":{"rendered":"<h3>Azure Cosmos DB API for MongoDB Supports 4.2<\/h3>\n<p>We are excited to announce the general availability of Azure Cosmos DB API for MongoDB version 4.2! New aggregation functionality and improved security features, all built on the most scalable database platform make this the best release yet. A full list of supported features can be found in our technical <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cosmos-db\/mongodb\/feature-support-42\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\n<p>The Azure Cosmos DB API for MongoDB version 4.2 can be <a href=\"https:\/\/aka.ms\/upgrade-mongo-4\" target=\"_blank\" rel=\"noopener\">enabled<\/a> on any new or existing database account in seconds, with zero downtime and no breaking changes to existing features.<\/p>\n<p>API versions 4.0, 3.6, and 3.2 will continue to be supported and we don&#8217;t plan to EOL any of our supported versions. Read our <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/mongodb-3-6-lives-on-in-azure-cosmos-db\/\" target=\"_blank\" rel=\"noopener\">blog post<\/a> to learn more about how it\u2019s possible for us to support many versions with easy upgrades\/downgrades.<\/p>\n<p><figure id=\"attachment_3991\" aria-labelledby=\"figcaption_attachment_3991\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb.png\"><img decoding=\"async\" class=\"size-large wp-image-3991\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb-1024x288.png\" alt=\"Diagram showing programming languages including Java and Ruby connecting to the Azure Cosmos DB API for MongoDB through the MongoDB wire protocol\" width=\"640\" height=\"180\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb-1024x288.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb-300x84.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb-768x216.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb-1536x433.png 1536w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2022\/03\/cosmosdb-mongodb.png 2045w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"figcaption_attachment_3991\" class=\"wp-caption-text\">Azure Cosmos DB API for MongoDB<\/figcaption><\/figure><\/p>\n<h3><\/h3>\n<h3>What\u2019s New in Version 4.2<\/h3>\n<h5>New Aggregation Functionality<\/h5>\n<p>Azure Cosmos DB API for MongoDB 4.2 supports tons of new aggregation pipeline stages, operations, and expressions such as $merge, $regexFind, trigonometry expressions, and more! As a developer, this will make your life easier by removing the need to develop this logic in your application code.<\/p>\n<h5>Client-side Field Level Encryption<\/h5>\n<p>Security is crucial to any business. Client-side Field Level encryption support in 4.2 further secures your database by enabling individual fields to be selectively encrypted and maintaining the privacy of the encrypted data from database users and hosting providers. This feature also makes it easy to fulfill compliance requirements such as user-based data deletion. You\u2019ll be getting the ability to explicitly encrypt and automatically decrypt data without needing to run any additional processes alongside your database drivers.<\/p>\n<h5>Newest release on the most scalable database platform<\/h5>\n<p>With version 4.2, you\u2019re getting the latest features on the most scalable database platform plus the <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/mongodb\/mongodb-introduction#why-choose-the-api-for-mongodb\" target=\"_blank\" rel=\"noopener\">unique benefits of the Azure Cosmos DB API for MongoDB<\/a>. The API\u00a0enables your database to scale <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/mongodb\/mongodb-introduction#why-choose-the-api-for-mongodb\" target=\"_blank\" rel=\"noopener\">instantly<\/a>, <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/mongodb\/mongodb-introduction#why-choose-the-api-for-mongodb\" target=\"_blank\" rel=\"noopener\">manages database sharding for you<\/a>, and offers a <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/mongodb\/mongodb-introduction#why-choose-the-api-for-mongodb\" target=\"_blank\" rel=\"noopener\">99.999% availability SLA<\/a>. Additionally, you can run advanced analytics over your data with no ETL by using <a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/synapse-link\" target=\"_blank\" rel=\"noopener\">Azure Synapse Link<\/a> with your API for MongoDB account, enable free tier on your account, or deploy your database in serverless mode to take advantage of per-operation billing.<\/p>\n<h3>Upgrade Now<\/h3>\n<p><a href=\"https:\/\/aka.ms\/upgrade-mongo-4\">Upgrading to API version 4.2<\/a> can be done in the <a href=\"https:\/\/portal.azure.com\/\" target=\"_blank\" rel=\"noopener\">Azure Portal<\/a> or through the Azure CLI directly from version 4.0, 3.6, or 3.2. Before upgrading, make sure your clients are running a MongoDB 4.2 compatible version. As always, it is important to start database upgrades with development\/test workloads first before upgrading production workloads. The step-by-step upgrade instructions can be found in our <a href=\"https:\/\/aka.ms\/upgrade-mongo-4\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are excited to announce the general availability of Azure Cosmos DB API for MongoDB version 4.2! New aggregation functionality and improved security features, all built on the most scalable database platform make this the best release yet. For a full list of supported features, please read the documentation.<\/p>\n","protected":false},"author":53146,"featured_media":61,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-3994","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mongodb-api"],"acf":[],"blog_post_summary":"<p>We are excited to announce the general availability of Azure Cosmos DB API for MongoDB version 4.2! New aggregation functionality and improved security features, all built on the most scalable database platform make this the best release yet. For a full list of supported features, please read the documentation.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/3994","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\/53146"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=3994"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/3994\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=3994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=3994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=3994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}