Data integration allows applications to move, process, or transform data across multiple systems as part of their micro-service architecture. Data integration is the first step in supporting data collection to allow business applications to learn and build insights from that data.
While you can accomplish data integration in several ways, in this blog post I'll focus on how to use Azure Logic Apps to move data to an Azure Database for MySQL flexible server. This solution automates data integration tasks performed in response to API calls.
Consider the following architecture:
Figure: Using Azure Logic Apps to move data into Azure database for MySQL Flexible Server
In this architecture:
This architecture uses the following components:
The workflow associated with this architecture follows.
A Logic App can store HTTP request data in a MySQL database. Because Logic Apps function as a secure Azure API Management endpoint, calls to your API can trigger various data-related tasks. Besides updating the database, you can also set up the logic app to send an email or teams message when the data was inserted.
The Azure Database for MySQL connector supports more actions than just inserting new data. A complete list of the supported actions and triggers you can use to expand this architecture appears in the following table.
Action name |
Description |
This operation deletes a row from a table. |
|
This operation gets a row from a table. |
|
This operation gets rows from a table. |
|
This operation gets tables from a database. |
|
This operation inserts a new row into a table. |
|
This operation updates an existing row in a table. |
When building the solution, follow the guidance for availability, scalability, security, and cost optimization, as described below.
Availability
For high availability on Azure Database MySQL - Flexible Server, enable the high availability feature and configure high availability on your logic apps.
Scalability
With the serverless model that Logic Apps uses, the service automatically scales to meet demand. But monitor the reading and writing operations, and number of executions to make sure you are not going to hit the throttling limits.
Security
Review the following security considerations.
Cost optimization
You can follow these methods to optimize costs.
To estimate the cost of this solution in your environment, use the Azure pricing calculator. See Azure Database for MySQL pricing and Azure Logic Apps pricing.
With the detail provided above, you should now be able to take advantage of using Azure Logic Apps to move data to an Azure Database for MySQL flexible server to automate data integration tasks performed in response to API calls.
If you have any questions or suggestions, please leave a comment below or reach out to us at AskAzureDBforMySQL@service.microsoft.com. Thank you!
Related resources
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.