Integration Today
No application is an island. To get the most out of the software you build or buy, you need to connect it to other software. This means that effective application integration is essential for virtually every organization.
Sometimes all you need to do is connect one application directly to another. More often, however, application integration means connecting several independent systems, often in a complex way. That is why organizations usually rely on specialized integration platforms that provide the services needed to do this. Like so much else today, these platforms have moved from on-premises data centers to the public cloud. Instead of using traditional integration technologies such as BizTalk Server, more and more organizations are using integration platform as a service (iPaaS) solutions, that is, cloud integration platforms.
To meet this need, Microsoft provides Azure Integration Services. An iPaaS solution is a set of cloud services for mission-critical enterprise integration. To achieve this goal, these services provide the four core technologies required for cloud integration. Figure 1 illustrates them.
Figure 1. Modern cloud integration relies on four core services.
Today, integration requires four core cloud services:
- APIs as a way to publish and manage application programming interfaces. An API service makes software tools available to other software, regardless of whether these services run in the cloud or on-premises.
- Orchestration – a visual way to create and run integration logic. For example, you might need to implement a business process that relies on several different applications accessed through APIs.
- To create such a workflow, an iPaaS provides orchestration, typically with a graphical tool for defining the workflow logic.
- Messaging – a specific way for applications and integration technologies to communicate in loosely coupled ways. This service provides queues that store messages until the recipient is able to receive them. This allows applications and integration software to communicate asynchronously, even across different technology platforms, which is often required in integration scenarios.
- Events – a technology that supports communication through events. Instead of polling a queue in a messaging service, for example, it is sometimes simpler and more efficient to learn about changes by receiving an event.
These cloud services, sometimes in combination with other cloud technologies, can be used to integrate both cloud and on-premises applications. As described below, Azure Integration Services provides all four of these services.
Azure Integration Services: The Big Picture
The four components of Azure Integration Services:
- API Management, which provides the API service.
- Logic Apps, which support the orchestration of business processes, workflows, and so on.
- Service Bus, which provides reliable enterprise messaging.
- Event Grid, which allows you to create and deliver events.
Figure 2 shows these four components.
Figure 2. Azure Integration Services allows you to connect cloud and on-premises applications using a single set of cloud services.
It is important to understand that although these four services work together to provide an iPaaS, they are sold separately. You are free to use only the services you need. In fact, a significant difference between traditional on-premises integration software such as BizTalk Server and Azure Integration Services is that you do not need to buy all the services in order to get any of them. In the cloud, you can choose exactly which services you need and then pay only for them.
How would you use Azure Integration Services? Here are some of the most common scenarios:
- Connecting applications within your organization. The applications may run in your own on-premises data center, in the cloud, or a combination of both. This kind of enterprise application integration (EAI) has been important for decades; it is now being adapted for a hybrid world.
- Connecting applications in your organization with a business partner's applications. Widely known as business-to-business (B2B) integration, it is often based on standard formats such as electronic data interchange (EDI). As described below, Azure Integration Services supports these widely used standards.
- Connecting applications in your organization to software as a service (SaaS). As the business applications you buy continue to move to SaaS, application integration requires connecting to these cloud services. For example, a business process in a hybrid environment may need to access both your on-premises accounting system and a cloud CRM solution.
- Integrating applications with Internet of Things (IoT) devices. The steady growth in the popularity of IoT gives rise to a number of new integration tasks. A cloud solution — iPaaS — is uniquely suited to solving these problems, since it can be accessed by devices operating anywhere.
The Role of Azure
The four components of Azure Integration Services address the core requirements of application integration. But real-world scenarios often require more. Perhaps your integration application needs a place to store unstructured data, for example, or requires the inclusion of custom code that performs specialized data transformations. Because "Azure Integration Services" is part of the larger "Azure cloud platform", these things are readily available. You can store unstructured data in Azure Data Lake Store, for example, or write custom code using Azure Functions, without an integration server.
Do not think of Azure Integration Services as an isolated, standalone IPAA – it is not. It is part of a large range of Azure offerings that gives you immediate integrated access to any other cloud services you need.
Azure Integration Services: Technologies
Azure Integration Services is a unified set of technologies. Still, to understand this set, you need to know the basics of each of the four components. Below we describe each one, what it provides, and why you would want to use it.
API Management
Whether they run on-premises or in the cloud, modern applications typically expose at least part of their functionality through APIs. This allows integration logic to access an application's functions through its API.
For example, workflow orchestration can implement a complete business process by calling various APIs in different applications, each of which performs a certain part of that process.
However, making APIs available for other software to call is harder than you might think.
In fact, for typical integration scenarios it is not enough to simply expose an application's API directly on your network. To do this effectively, you need to have clear answers to questions such as:
- How do you limit the number of requests your application can receive from clients? Most applications that expose APIs cannot handle an unlimited number of requests, so you need a way to control this.
- How do you control how calls to your application's API are authenticated? Security is always important, especially for applications connected over the public Internet.
- How do you make sure your APIs are fast enough? You may want to cache responses to frequent requests, for example, to speed up responses.
- How do you track and analyze how your APIs are used? Patterns in API usage can point to a trend that significantly affects your business.
- How do you make it easier for developers to use your APIs? You need a way to provide them with documentation, code samples, and so on.
Azure API Management addresses all of these issues. Figure 3 summarizes the role this cloud service plays.
Figure 3. API Management provides access to APIs from back-end services to various clients.
API Management can expose REST and SOAP APIs from all types of back-end software, including applications running in the cloud and applications running on-premises. The arbitrary technology stack used to build this software — .NET, Java, or something else — does not matter; API Management works with anything. Even other Azure services can be exposed through API Management, which makes it possible to use a managed API on top of Service Bus, Logic Apps, and other services of your choice.
To do this, API Management creates facades — proxies — of the real APIs in the internal applications. Clients, including Logic Apps, cloud and on-premises applications, and others, can call these facades. All this is necessary so that the client can create and receive HTTP requests. Each call is ultimately passed to the underlying application, but, as described below, API Management can provide several useful services before that happens.
The basics of how API Management works are not hard to understand. But this simple picture raises several obvious questions. How do the APIs of back-end services become available through this API service? And how do developers learn what they need in order to call these APIs? Figure 4 illustrates the answers to both questions.
Figure 4. API publishers use the API Management extension of the Azure Portal to make their APIs available, and API users rely on the Developer Portal to learn how to access the APIs.
To make a back-end API available to clients, the API owner can use the API Management extension in the Azure Portal. This extension allows you to specify sufficient details of the API, including the operations on it, which also contain the parameters for each of them. API Management then creates a facade for the API. When a call is made to this facade, API Management routes it to the corresponding back-end application. The result of each call is returned the same way. (The service also provides an API that allows these actions to be performed programmatically.). But the API Management extension does more than just publish APIs. It provides analytics, for example, allowing you to track the usage and health of published APIs. It also allows you to set control rules for various aspects of how each API functions. There are dozens of rules; here are a few examples of what they allow:
- Limiting the number of calls that can come from a single source within a specified period.
- Defining how the caller is authenticated.
- Blocking calls from certain IP addresses.
- Enabling and disabling data caching.
- Converting requests from SOAP to REST.
- Converting data from XML to JSON and vice versa.
API Management also provides a Developer Portal, as shown in Figure 4. People who want to use an API, usually developers, can use this portal to learn how to do so and to request access to that API. Along with documentation describing the details — the operations and parameters of the API — this portal also provides sample code for calling the API from C#, Java, JavaScript, and other programming languages. In today's world, practically everything is, or probably should be, represented as an API. This improves business agility and unlocks business value. Because it solves the problems that disappear when APIs are applied, and API Management gives you an effective way to achieve this goal.
Logic Apps
Application integration usually requires implementing all or part of a business process. Think, for example, of a process that accesses a cloud application such as a CRM, updates on-premises data stored in SQL Server databases, and invokes operations in another on-premises application. This means building custom logic that carries out the steps of this process.
But how do you create this logic? One option is to create it in the traditional way using C#, JavaScript, Java, or another programming language. However, a process that depends on several different applications can take a long time, and there may need to be a pause between steps. For scenarios like these, creating the logic using workflow technology is often the better approach.
This is exactly what Logic Apps provides. Each Logic App is a workflow that implements a specific process. This can be a system-to-system process, such as connecting two or more applications. Alternatively, it can be a "user-to-system" process that connects people with software and potentially has long delays. Logic Apps is designed to support either of these scenarios. To implement a process, Logic Apps can access all kinds of other applications, including cloud applications, on-premises applications, and Azure services. Figure 5 shows what this looks like.
Figure 5. Logic Apps can access many types of software running in different places.
A Logic App consists of a series of actions, each of which is a logical step in the process that this workflow implements. These actions can express conditions (if statements), loops, and so on. Importantly, a Logic App can also use actions to call external software and services.
One way to do this is to call APIs exposed through API Management. (In fact, a Logic App itself can be exposed as an API in this way.) But to make it easier to work with common applications, data sources, and other services, Logic Apps provides more than 200 connectors, each of which provides a simple way to interact with a specific external service. There are connectors for interacting with Office 365, with Dynamics 365, many CRM systems, social networks, and many other cloud applications. There are also connectors for on-premises technologies such as SharePoint, SQL Server, Oracle, and SAP, as well as links to standard protocols such as SMTP and FTP. Other connectors provide access to common integration functions such as XSLT data transformation and EDI. Regardless of their function, developers can use these connectors to build logic apps fairly quickly, even for complex integration. Microsoft Corporation also provides connectors for advanced technologies, including Azure Machine Learning and Cognitive Services, which allows Logic Apps to take advantage of modern approaches to building intelligent integrations, such as providing analysis of the data being transmitted.
But how do you create Logic Apps? Behind the scenes, each of them is expressed in JavaScript Object Notation (JSON). This helps Logic Apps fit well into existing DevOps environments — each of them is just a text file — and you can even create a new workflow directly in JSON. However, doing so is not necessary. In fact, creating Logic Apps usually does not require writing any code at all. Instead, developers use the Logic Apps Designer, a visual tool, to create new processes. Figure 6 shows an example of this tool's graphical interface.
Figure 6. The Logic App Designer allows developers to create Logic Apps without writing
As shown in this example, the Logic App Designer allows its users to create workflows by arranging sequences of actions. Like all Logic Apps, this one starts with a trigger, which in this case specifies that the workflow should run every time a file is added or changed on an FTP server. It then calls two Azure Functions, serverless pieces of code that convert the data in this file: first to JSON, then to PDF. In this example, the Logic Apps developer defines the next action, which creates a file in Azure Blob Storage. After that, the workflow sends an email and then performs a conditional query: if the newly added file is urgent, the logic app also sends an SMS message.
This simple example has no access to cloud or on-premises applications — it mostly uses Azure services. Nevertheless, it illustrates the basics of how a developer creates a Logic App. The key point is that no code needs to be written, which allows developers to implement business processes quickly and easily. Logic Apps is the foundation of Azure's iPaaS offering, making it easy to connect the software and services you need to access. And because it allows you to integrate various services running in the cloud and on-premises, Logic Apps provides an effective workflow solution for the modern world.
Serverless Integration
The rise of serverless computing is one of the most important innovations of our time. Serverless technologies such as Azure Functions allow developers to focus entirely on writing code. All the computing infrastructure they rely on — virtual machines (VMs), scalability support, and so on — is provided as a package. Thanks to this, creating applications becomes faster and easier. And running these applications often becomes cheaper, since you pay only for the computing resources your code actually uses.
Logic Apps is also a serverless technology. Although each Logic App ultimately runs on some virtual machine, all of this is hidden from developers. They do not need to think about infrastructure or scalability — all of this is handled for them. This allows them to focus solely on creating integration logic. Logic Apps also provides serverless pricing, minimizing the cost of running integration logic. Serverless technology first appeared in the so-called Application Platform as a Service (aPaaS) technologies. With Logic Apps, Azure Integration Services also brings this innovation to iPaaS.
Service Bus
The essence of application integration is software communicating with other software. But how should this communication take place? Sometimes a direct call through API Management is ideal. In other cases, however, this synchronous style of communication will not work. What if, for example, both applications are not available at the same time? Situations like these require an asynchronous approach. This is exactly the kind of communication that Service Bus provides. Because it allows applications to exchange messages through queues, Service Bus provides non-blocking interaction between different pieces of software. Figure 7 illustrates this idea.
Figure 7: Service Bus provides asynchronous communication between all kinds of software.
As shown in the figure, Service Bus provides enterprise messaging among many kinds of software, including cloud applications, on-premises applications, and Azure services. To provide this, it is necessary to have a diverse set of features — this is harder than you might think. Accordingly, Service Bus provides the following:
- Queue semantics, including message persistence and strict "first in, first out" ordering of messages in the queue. The service also detects and removes duplicate messages.
- Atomic transactions, which make it possible to queue read or write tasks as parts of a larger operation that succeeds or fails as a single unit.
- Poison message handling, so that a message that causes problems does not lead to an endless loop.
- High availability, including geo-replication along with built-in disaster recovery.
In short, Service Bus provides all the features required for enterprise messaging.
However, this Azure service provides even more than has already been described. For example, Service Bus allows a user to create one or more topics (Topics) and then send messages to that topic. Recipients can subscribe to specific topics and then receive only the messages sent to those topics. Figure 8 shows what this looks like.
Figure 8: Service Bus allows subscribers to selectively receive messages sent to topics.
As shown in the figure, recipients are not required to receive every message sent to a particular topic. Instead, each recipient can define filters that specify exactly which subset of messages they receive. For example, a recipient who has subscribed to a topic with messages about financial transactions can choose to receive only those messages for amounts of 10,000 euros or more.
Asynchronous message-based communication is an important aspect of enterprise integration. Service Bus provides this and much more as a cloud service on Azure. It is a fundamental component of Azure Integration Services.
Event Grid
There are many integration scenarios in which communication through messages is carried out as the best approach, rather than through API calls. But software that periodically checks whether a new message has been received or has arrived, commonly known as polling, can be wasteful. Why not let the recipient receive a notification through an event instead and not continuously load the processing power?
This is exactly what Event Grid allows. Instead of requiring the recipient to poll for new messages, the receiver instead registers an event handler for the event source it is interested in. After that, Event Grid calls this event handler when the specified event occurs. Figure 9 illustrates this idea.
Figure 9. Event Grid calls receivers when a specific event has occurred
As shown in the figure, many Azure services can generate events. For example, the arrival of a new Service Bus message can cause Event Grid to send a notification that triggers a Logic App, or the creation of a new large object in Azure Blob Storage can cause a custom cloud application to start processing the contents of that large object. Using an event-driven approach can simplify application development, and it can also save money, since the recipient does not need to spend cycles looking for new messages.
To receive an event from an Azure service, such as Blob Storage, the recipient subscribes to a standard topic provided for that service. But although subscribing to events from Azure services is probably the most common use of Event Grid today, it is not the only option. Cloud and on-premises applications can also create custom topics, allowing Azure services and other software to receive custom events by subscribing to these topics.
All of this raises an obvious question: isn't Event Grid very similar to topics in Service Bus? Why does Azure Integration Services include both methods? The main reason is that Service Bus is an enterprise messaging system that has all the necessary features and reliability, whereas Event Grid provides only a simple and fast way to send events. Here are some of the differences that follow from the divergence of these goals:
- Service Bus topics work with messages, not events. They allow recipients to decide when to read messages, and they require the recipient to actively poll for new messages. With Event Grid, events are generated by Azure Blob Storage or somewhere else and then delivered to subscribers. There is no need for constant polling of sources to receive these lightweight events.
- Event Grid is significantly more scalable than Service Bus, with support for up to 10,000,000 events per second in a single Azure region. To achieve this, Event Grid may deliver events in arbitrary order, whereas Service Bus guarantees delivery of messages in the order they were created.
- Service Bus is fast, but Event Grid provides near-real-time performance, with 99% of events delivered in less than a second.
Asynchronous communication is an essential part of an iPaaS. By providing Event Grid and Service Bus, Azure Integration Services meets any communication needs that your scenario may require.
Data Integration: The Role of Azure Data Factory
Although Azure Integration Services can certainly work with data, the main focus is on application integration. What if you need to perform data integration? Perhaps you want to implement a traditional "extract/transform/load" (ETL) process in the cloud using Azure SQL Data Warehouse, for example, or load and process unstructured big data using Azure Data Lake Storage.
Azure Integration Services is not necessarily the best choice for situations like these. Instead, Microsoft provides Azure Data Factory, a cloud service for data integration. This service addresses both of the scenarios just described, along with many others. Different kinds of integration require different integration technologies. That is why Microsoft offers both Azure Data Factory and Azure Integration Services.
Combining the Services: A Scenario
Each component of Azure Integration Services has value on its own. But the true value of these technologies becomes clear when all four components are used together. Figure 10 shows an example of how you might do this.
Figure 10. The technologies in Azure Integration Services can be used together to provide a complete integration solution.
The scenario begins when a customer submits an order through a web application (step 1). This application sends a message to Service Bus describing the new order (step 2). This message may contain a JSON document identifying the customer, the product, and the quantity ordered. When this message arrives in the Service Bus queue, an event is generated for Event Grid (step 3). This event then triggers the execution of a Logic App (step 4), which immediately reads the message waiting in Service Bus (step 5). The Logic App extracts the information from this message and then executes the business process, accessing the required application (step 6). In this example, the business process consists of three parts, each of which is performed by a separate application. They are as follows:
- The first requirement is to check whether the ordered product and quantity are in stock. To do this, the Logic App accesses a custom on-premises inventory application. Since this application is accessible through API Management, doing this is simple.
- If the requested product and quantity are available, the process verifies the customer's good standing and obtains the customer's mailing address. To do this, the logic app calls the organization's CRM system. Here, the CRM is provided by a SaaS application such as Salesforce or Dynamics 365, but it could also be an on-premises CRM system. To access this application, the Logic App uses the appropriate connector for the CRM solution. (This is very simple; connectors rely on API Management coverage, so this aspect of Azure Integration Services is still used here.)
- If the first two conditions are met, the Logic App places the order by accessing the organization's ERP system, an on-premises SAP application. This interaction relies on the SAP Connector.
Although this is not shown in Figure 10, the Logic App can do more. It can call an email system, for example, once again through API Management, to send the customer an order confirmation email. API Management could also be placed between the web application and Service Bus in step 2; as an option, this would simplify the application's use of this messaging service.
It is important to understand that because Azure Integration Services runs on Azure, its components have a lot in common. They can be accessed, for example, through the Azure portal, and all of them can be automated using PowerShell. They share a common deployment mechanism, as well as monitoring and management services: Azure Monitor, Application Insights, and Log Analytics. These four components also use the same identity system and the same role-based security model. You can even create custom dashboards to monitor end-to-end integration solutions as a single unit. You could, for example, create a dashboard designed solely to inform you about the various components in the scenario shown in Figure 10.
The key point is that all four parts of Azure Integration Services can work together to provide a complete enterprise integration solution. And although these services run in the public cloud, the applications they connect can run on-premises, in Azure, or somewhere else.
Conclusion
A modern enterprise integration solution — iPaaS — provides a group of cloud technologies that work together. Azure Integration Services includes the technologies:
- API Management for publishing and managing application APIs.
- Logic Apps for graphically creating workflows.
- Service Bus for enterprise messaging.
- Event Grid for event-based communication.
Each of these cloud services has value on its own. Together, they provide a full-featured iPaaS capable of connecting both cloud and on-premises software. Designed for the integration of mission-critical enterprises, Azure Integration Services is the iPaaS for the modern hybrid world.
For more information
Home page: Azure Integration Services
Video: Azure Essentials – Integrating your Apps with Azure
Andrii Bezhubenko, based on materials from the Microsoft® website
This article is published under the terms of the Creative Commons Attribution 4.0 International license.