Book Image

Serverless Integration Design Patterns with Azure

By : Abhishek Kumar, Srinivasa Mahendrakar
Book Image

Serverless Integration Design Patterns with Azure

By: Abhishek Kumar, Srinivasa Mahendrakar

Overview of this book

With more enterprises adapting cloud-based and API-based solutions, application integration has become more relevant and significant than ever before. Parallelly, Serverless Integration has gained popularity, as it helps agile organizations to build integration solutions quickly without having to worry about infrastructure costs. With Microsoft Azure’s serverless offerings, such as Logic Apps, Azure Functions, API Management, Azure Event Grid and Service Bus, organizations can build powerful, secure, and scalable integration solutions with ease. The primary objective of this book is to help you to understand various serverless offerings included within Azure Integration Services, taking you through the basics and industry practices and patterns. This book starts by explaining the concepts of services such as Azure Functions, Logic Apps, and Service Bus with hands-on examples and use cases. After getting to grips with the basics, you will be introduced to API Management and building B2B solutions using Logic Apps Enterprise Integration Pack. This book will help readers to understand building hybrid integration solutions and touches upon Microsoft Cognitive Services and leveraging them in modern integration solutions. Industry practices and patterns are brought to light at appropriate opportunities while explaining various concepts.
Table of Contents (15 chapters)

Creating the ContosoSendOrder Logic App

In this section, we are going to create the ContosoSendOrder Logic App. Since there are no templates available for HTTP receive and AS2 send, we will have to create them ourselves:

  1. Create a Logic App named ContosoSendOrder
  2. Navigate to Workflow settings and select the Contoso-SupplyChain integration account
  3. In Definition, select HTTP request trigger
  4. Add the Encode to AS2 message connector and select the Contoso-SupplyChain integration account
  5. Configure the Encode to AS2 message connector as follows:
  1. Configure the HTTP action to POST the message to ShipAnyWhereOrderService:
  1. Ensure that the body is binary encoded using the following expression:
base64ToBinary(body('Encode_to_AS2_message')?['AS2Message']?['Content'])
  1. Post the following X12 message to the ContosoSendOrder Logic App:
ISA*00*          *00...