ApsaraDB for MongoDB, Where We Are and Where We Are Going

Abstract

ApsaraDB for MongoDB is Alibaba Cloud’s fully managed MongoDB service. It was initially released at 2016. In late 2019, Alibaba Cloud had a partnership with MongoDB, Inc. (NASDAQ: MDB), becoming an authorized MongoDB-as-a-Service solution provider. In 2020, Alibaba Cloud was awarded MongoDB’s “Independent Software Vendor (ISV) Partner of the Year”. This article will talk about ApsaraDB for MongoDB’s history and the service provided. Meanwhile, several new features available recently on ApsaraDB for MongoDB including MongoDB 4.4 on Alibaba Cloud, Cloud Disk Storage Type support, Serverless instance type and DynamoDB Compatibility will be introduced.

History of ApsaraDB for MongoDB

ApsaraDB for MongoDB was initially released at 2016, providing Replica Set instance type only with MongoDB 3.2. In the following years, many features including sharded cluster support,PITR, Auditing, Transport Encryption and so on were released, with the major version supported upgrading to MongoDB 4.0. In late 2019, Alibaba Cloud had a partnership with MongoDB company, becoming an authorized MongoDB-as-a-Service provider at China. In the same year, the latest MongoDB version, MongoDB 4.2 and Encryption at Rest were available on Alibaba Cloud. In the recent year, ApsaraDB for MongoDB was on the way to support MongoDB 4.4 on Alibaba Cloud and several new features, including cloud disk storage type, Serverless and DynamoDB Compatibility.

A glance at ApsaraDB for MongoDB

Here is a glance at ApsaraDB for MongoDB.

Instance type

Currently there are three instance types for MongoDB available on Alibaba Cloud, including the typical Replica Set/Sharded Cluster and Alibaba Cloud exclusive Serverless.

MongoDB versions

MongoDB major versions provided on Alibaba Cloud are 3.4/4.0/4.2 and 4.4. Each version is able to upgrade to any higher version by a simple click on the console. Minor version upgrade is done automatically during the instance’s daily maintenance window, without impacting user’s business.

Database-as-a-Service

Aside from instance deployment and major/minor version upgrade, Alibaba Cloud also automates all instance lifecycle managements including scaling, metrics monitoring/alerting and backup/restore.

New features general available on ApsaraDB for MongoDB

There are four new features general available on ApsaraDB for MongoDB. First is to have MongoDB 4.4 available on Alibaba Cloud. Second is the new Cloud Disk Storage Type support. In the past, Local SSD is used as MongoDB’s storage type, and now Alibaba Cloud Enhanced SSD (also short for ESSD) storage type is available. Third, as mentioned before, a new Serverless instance type is added. Finally, is the DynamoDB compatibility feature, which enables MongoDB sharded cluster another popular document style API, providing 50% lower TCO for existing DynamoDB business.

MongoDB 4.4

MongoDB 4.4 is the latest major version released this year. It is a user-driven engineering release including a number of features and improvements that have been most requested by the MongoDB community. Now it is available on Alibaba Cloud.

Cloud Disk Storage Type

Alibaba Cloud Enhanced SSD enables ApsaraDB for MongoDB a cloud-native way for scaling up/out without data migration. With local SSDs, performing a scaling up may need to add a new node remotely, performing a full initial sync. This may take a long time (maybe hours or even days) if the instance contains much data. Cloud Disk’s usage decouples the storage and compute node. A simple detach and re-attach process would be enough. This will significantly improve the scaling user experience. Also, enhanced resource isolation for I/O will be provided. One Cloud Disk’s resource is accessed exclusively by only one tenant. This will avoid many “noisy neighbors” stories happening again. Furthermore, it is able to taking advantage of the much faster snapshot backup/restore than physical ways and higher performance of ESSD than local SSD.

Serverless

The key features of Serverless are on-demand charging and auto-scaling. It is very suitable for business which has unpredictable database workloads. Another situation is when user has hundreds or thousands of databases to manager with but only few of them are active in the same time. MongoDB Serverless introduces a new way to describe cluster tier, Capacity Unit. It is a performance currency abstracting the system resources such as CPU, IOPS and memory consumed by database operations. Charging on-demand by the Capacity Unit consumed by the database can be cost-saving compared to provisioning capacity.

DynamoDB Compatibility

With this feature, User can use ApsaraDB for MongoDB sharded cluster as a drop-in replacement for DynamoDB. A DynamoDB API compatible layer is implemented in front of a MongoDB sharded cluster, to translate the DynamoDB protocol to MongoDB protocol. Applications using DynamoDB SDKs only need to modify an endpoint configure, all things will still work. An open src tool called NimoShake is also provided to help migrating data from DynamoDB to DynamoDB-API-compatible MongoDB.

Summary

ApsaraDB for MongoDB is a fully managed and authorized MongoDB service. Four new features are available recently. The “User-driven engineering” release, MongoDB 4.4 is now available on Alibaba Cloud. The new Cloud Disk Storage Type brings ApsaraDB for MongoDB a cloud-native scaling experience and more predictable and higher performance. A new instance type, which can be cost and effort-saving, Serverless is provided. Finally, A drop-in replacement and high performance-price ratio DynamoDB Compatibility solution is available on ApsaraDB for MongoDB. ApsaraDB for MongoDB will continue to improve, aiming at providing the best MongoDB-as-a-Service.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Tech

Alibaba Tech

First-hand & in-depth information about Alibaba's tech innovation in Artificial Intelligence, Big Data & Computer Engineering. Follow us on Facebook!