Azure Cosmos DB represents an evolution of database services on the Microsoft Azure cloud. While Azure SQL Database,...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
the relational cloud cousin of SQL Server, handles traditional processing functions, Cosmos DB is a NoSQL-derived multimodel database that provides global scalability, high performance and service-level agreements suitable for a variety of distributed workloads.
Opened up for general availability in May 2017, the Microsoft Cosmos DB technology is designed for applications that require extreme horizontal scalability and guaranteed processing throughput. The cloud database platform is able to deliver those things partly by leveraging Microsoft data centers in Azure regions around the world.
Data can be stored in the regions where end users who need to access it are located, thus speeding up the access process. Additionally, Cosmos DB includes multihoming APIs that are location-aware, which enables the software to direct read requests from users to the closest data center, thereby further reducing latency.
One of the best things about Azure Cosmos DB is that it's extremely flexible with regard to the data models and programming interfaces that can be used with the database. Native support is included for document, graph, key-value and wide-column data models, among others. A SQL API supports the management and querying of data in JSON documents, and APIs are also available for various NoSQL databases, including MongoDB, Cassandra, graph databases based on the Apache TinkerPop framework and Microsoft's Azure Table storage technology.
Microsoft Cosmos DB isn't entirely new: It grew out of a Microsoft development initiative called Project Florence that began in 2010, and it was first commercialized in 2015 with the release of a NoSQL database called Azure DocumentDB. As that name indicates, DocumentDB was a document database only. Cosmos DB expands on it by adding multimodel support, global distribution capabilities and relational-like guarantees for latency, throughput, consistency and availability.
Cosmos DB in action
According to Microsoft, Cosmos DB can be used for "any Web, mobile, gaming and IoT applications that need to handle massive amounts of reads and writes on a global scale with low response times." However, Cosmos DB's best use cases might be those that leverage event-driven Azure functions, which enable application code to be executed in a serverless environment.
One of the examples that Microsoft gives as to how Cosmos DB might be used in that way involves an automaker linking connected cars to a back-end Cosmos database. If new cars are connected to a back-end cloud service via a mobile communications link -- something that companies like General Motors and Toyota are currently doing -- the supporting database would need to be capable of servicing customers across all regions without incurring excess latency. It would also need to scale to accommodate not only the cars that are currently on the road, but also the ones that will be sold in the future.
The Microsoft Cosmos DB platform is ideally suited to that type of application. And because it's integrated with the Azure Functions technology, the database can act as a component of a larger workflow, in addition to being a data repository.
In Microsoft's example, a problem that causes a vehicle's check engine light to be illuminated might trigger the vehicle to transmit sensor data to Cosmos DB. The database might then kick off a workflow that sends the sensor data to the automaker's warranty department, and sends an alert to the car owner. Such a workflow could even conceivably query a local dealership's parts inventory to ensure that the dealership is equipped to handle any required repairs and, if necessary, order parts from the manufacturer.
Cosmos DB's strategic fit
Cosmos DB seems to fit well into Microsoft's overall business strategy. In recent years, Microsoft has focused most of its attention on its cloud platforms, primarily Azure and Office 365. As such, the company's business strategy might best be described as "make the world Azure." This philosophy generates recurring revenues for Microsoft, as opposed to perpetual software licensing, which involves a one-time fee -- plus annual maintenance fees, typically.
Of course, offering cloud database services isn't new for Microsoft. In addition to Azure SQL Database, versions of the MySQL and PostgreSQL open source databases are available on Azure, and Microsoft is working to add a MariaDB implementation. It also offers a SQL Server Stretch Database technology that enables users to extend on-premises SQL Server databases to the cloud.
Microsoft's Cosmos DB is different, though, due to its multimodel nature and its suitability for use in applications that require massive scalability and top-notch performance. And, to see what the technology is all about, you can try it out for free, without even having an Azure subscription.