Relational Data Services in Azure - PaaS, IaaS, Hybrid & IoT
Tags: azure, mysql, postgres, cloud
Published: 2021-09-01 15:26:43

**In this article**, we are going to see all of the Relational Data Services that are available in Azure

> Infrastructure as a service (IaaS) - SQL Server on VMs
> 
> Platform as a Service (PaaS) - Azure SQL Database , Azure SQL Managed
> Instance, Azure Database for MySQL, PostgreSQL & MariaDB.
> 
> For Hybrid On-Premise extension - SQL Stretch Database
> 
> For IoT - Azure SQL Edge

## SQL Server on Azure VM

![SQL Server on Azure VM](https://1.bp.blogspot.com/-Fk4UtQIf0ew/YRm2YRH0xsI/AAAAAAAAAIM/9D9v1FDBq_sI-B1YXB5V7rrtwFSOUGk7ACLcBGAsYHQ/w200-h200/sqlonvm.jpeg)

With SQL Server on Azure VM, on-premise SQL workloads can be easily shifted to Azure while maintaining complete SQL Server compatibility and operating system-level access.

**Key Features**
-   Infrastructure as Service (IaaS) with a complete set of features.
-   Requires no code changes except the connection string.
-   Full control over the server in the cloud as similar to on-premise server.
-   Leverage existing expertise in SQL Server and continue working the same way as on the on-premise server.

## Azure SQL Database

![Azure SQL Database](https://1.bp.blogspot.com/-YKWOsdHAttQ/YRm4MtRKalI/AAAAAAAAAIk/6VIYOrZ8t7Qv80pLHqw1dpmspMKeg8ZQgCLcBGAsYHQ/w200-h200/Azure%2BSQL%2BDatabase.png)

Azure SQL Database is the most preferred solution for normal relational and transactional databases. Azure provides the option to create a database server and deploy our databases to the cloud. A SQL Database server is a logical construct that acts as a central administrative point for multiple single or pooled databases, logins, firewall rules, auditing rules, threat detection policies, and failover groups. Azure SQL Database is available with several options: Single Database, Elastic Pool, and Managed Instance.

[![Azure SQL Managed Instance](https://1.bp.blogspot.com/-A7_BCuswNxE/YRm5hMmBZlI/AAAAAAAAAI4/GKMcMHWvBSsbAuniK6ozw0NxNk5PNqAaACLcBGAsYHQ/w640-h301/Screen%2BShot%2B2021-08-15%2Bat%2B5.30.30%2BPM.png)](https://www.blogger.com/u/1/blog/post/edit/7467356195560229083/2964710571868763031#)

## Azure SQL Managed Instance

![Azure SQL Managed Instance](https://1.bp.blogspot.com/-Zao380bPz-Q/YRm4xkI_JLI/AAAAAAAAAIw/molZ0pGPZbQ9uO8FGeJKLcdX0n5ztsWEwCLcBGAsYHQ/w198-h200/sqlmanagedinstance.png)

Azure SQL Database restricts some of the administrative features available in SQL Server. Within Azure SQL Managed Instance, we have full control over the instance, as much as you would for an on-premises server. We can deploy as many as databases we want in the server.

With the support of other Azure Services, managed instance automates backups, software updates, monitoring etc., it is always up-to-date.

**Key Features**

 - Easy lift and shift - Fully-fledged SQL instance with 100%
   compatibility with on-premise instance.
-   Fully Managed PaaS service with a complete set of features.
 -  Enhanced Security and isolation with VNet and a private IP address.

## Azure Database for MySQL

[![Azure Database for MySQL](https://1.bp.blogspot.com/-TGSqkhqE-58/YRnHvpFMpPI/AAAAAAAAAJQ/dDYTHXy5NvEStDJPUm2WDdDLQmcb80CzQCLcBGAsYHQ/w200-h200/mysql.jpeg)](https://www.blogger.com/u/1/blog/post/edit/7467356195560229083/2964710571868763031#)

MySQL is the leading open source relational database for Linux, Apache, MySQL, and PHP (LAMP) stack apps.

Azure Database for MySQL based on the MySQL free community edition offers high availability and elastic scaling to open-source mobile and web apps or migrate MySQL workloads to the cloud.

**Key Features**
-   Built-in high availability features
-   Enhanced security with compliance
-   Automatic backups and point-in-time restore for up to 35 days
-   Easy scaling option
-   Pay-as-you-go pricing - only pay for what you use.
-   Offers integration with Azure App Services and Azure Kubernete Services for simplified development

## Azure Database for PostgreSQL
[![Azure Database for PostgreSQL](https://1.bp.blogspot.com/-rmjuZ_1mvHg/YRnLJ1SVvXI/AAAAAAAAAJY/CmVOVPLE_RQifZ-_rcny1zSJOvwpuzEFgCLcBGAsYHQ/w180-h200/postgresql.png)](https://1.bp.blogspot.com/-rmjuZ_1mvHg/YRnLJ1SVvXI/AAAAAAAAAJY/CmVOVPLE_RQifZ-_rcny1zSJOvwpuzEFgCLcBGAsYHQ/s161/postgresql.png)

Azure PostgreSQL helps in building scalable, secure, and fully managed enterprise-ready apps on open-source PostgreSQL, scale out single-node PostgreSQL with high performance, or migrate PostgreSQL and Oracle workloads to the cloud.

**Key Features**
-   Offers extensions which MySQL does not have
-   PostgreSQL Extensions provides additional custom data types, functions, JSONB, full text-search, index types, language-types, caching, geospatial support etc.,
-   Supports geometric data such as lines, circles and polygons
-   Supports both relational and non-relational data
-   Provides high performance horizontal scaling using Hyperscale (Citus)

**Similarities with MySQL**
-   Both are Open Source, and support relational database and fully managed services.
-   Makes it easier to lift and shift your applications to Azure
-   No need to convert your datastore to SQL Server or SQL Database
-   Use the same tools as SQL Database for scaling and monitoring
-   Intelligent Performance Recommendations
-   Enhanced Security Capabilities

## Azure Maria DB
[![Azure Maria DB](https://1.bp.blogspot.com/-FOz1A0EhMeI/YRnLdo5SrZI/AAAAAAAAAJg/JywNIKAGvukvgRjcsHEL_cLCgUjt1sEcQCLcBGAsYHQ/w200-h200/azuremariadb.jpeg)](https://1.bp.blogspot.com/-FOz1A0EhMeI/YRnLdo5SrZI/AAAAAAAAAJg/JywNIKAGvukvgRjcsHEL_cLCgUjt1sEcQCLcBGAsYHQ/s225/azuremariadb.jpeg)

**MariaDB** is a newer database management system, created by the original developers of MySQL.

**Key Features**
-   Built-in support for temporal data. A table can hold several versions of data, enabling an application to query the data as it appeared at some point in the past
-   Offers compatibility with Oracle Database

  

**Azure MariaDB** based on free community edition offers high availability and elastic scaling to open-source mobile and web apps with a managed community MariaDB database service

**Key Features of Azure MariaDB**

-   Relational Database as a fully managed service
-   High Availability
-   Scaling as needed within seconds
-   Automatic backups and point-in-time restore for up to 35 days
-   Support for many languages and frameworks
-   Enhanced Security Capabilities with Azure IP Advantage

## Hybrid Database using SQL Server Stretch DB
[![SQL Server Stretch DB](https://1.bp.blogspot.com/-BFQX_Ja3y7s/YRnL3XgNPYI/AAAAAAAAAJo/8v_Te3AV-68Ny69QJ3KKycWNvJ2K2RcfwCLcBGAsYHQ/w200-h139/Sqlstretch.png)](https://1.bp.blogspot.com/-BFQX_Ja3y7s/YRnL3XgNPYI/AAAAAAAAAJo/8v_Te3AV-68Ny69QJ3KKycWNvJ2K2RcfwCLcBGAsYHQ/s270/Sqlstretch.png)

**Scenarios where we choose to go for the hybrid option**
-   When you have an existing database that is running out of space
-   When you have an on premise server with large database running lot of applications
-   To retain existing Traditional Architecture of Legacy system. The hardest option out of the rest.
-   For these scenarios, upgrading to a new server might be difficult and painful. One option would be to extend "cool" data to the cloud, so we can extend the life of the on premise server.

Using Stretch Database, data can be split between on-premises storage and cloud storage. We can push the cold, historical data to the cloud (which will be accessed rarely) and warm active data can be retained on-premises to boost the performance.

## Azure SQL Edge

[![Azure SQL Edge](https://1.bp.blogspot.com/-jvan2s6c8L4/YRnNKmOaruI/AAAAAAAAAJw/wI1bc7y2PJ0ER84jxRv9uFbPgj7SZ9NVwCLcBGAsYHQ/w200-h193/sqledge.jpeg)](https://1.bp.blogspot.com/-jvan2s6c8L4/YRnNKmOaruI/AAAAAAAAAJw/wI1bc7y2PJ0ER84jxRv9uFbPgj7SZ9NVwCLcBGAsYHQ/s272/sqledge.jpeg)

Azure SQL Edge is an optimized relational database engine that is specially designed for IoT and IoT Edge deployments.

 
**Key Features**
-   Able to create excellent data storage and processing layer for different IoT applications.
-   Since it is built on top of the SQL Server database engine, we can use the same T-SQL programming in SQL Server
-   Provides the most demanding machine learning and artificial intelligence capabilities
-   Its built-in streaming capability helps you with complex event processing and realtime analytics

## Conclusion
This time, we covered the Relational data store related services that are available in Azure. Stay tuned to learn more about other types of data stores in Azure, as this is just the beginning.

## References

 - https://azure.microsoft.com/en-ca/product-categories/databases/
 - https://docs.microsoft.com/en-us/learn/modules/explore-relational-data-offerings/2-azure-data-services
 - https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/data-store-overview

##Thanks for reading this post! 

I hope this article is informative and helpful in some way. If it is, please like and share this article. 

Happy learning!