Approaches to Application Integration

Approaches to Application Integration

Software vendors have created tools that meet many of our business’ needs very well, but even the most comprehensive enterprise solutions cannot meet all of the complex and unique demands of a large organisation – and even the smallest business very quickly discover a need to integrate different applications together.

For example, the eCommerce software that drives the website needs to be integrated with the company’s accounts software, and both need to be able to work together with the CRM system that manages the customer records.

These tools may be packages that have been bought, or they may have been developed by an in-house team or a third party. They may run on different platforms, in different programming languages, they may run on the company’s premises or remotely in the cloud.

 

There may need to be an integration with other company’s systems – to order electronically from suppliers or to sell on marketplaces like Amazon or eBay.

Application integration can, therefore, be complicated and challenging. The amount of control and flexibility at integration points can be variable and add to the difficulties that can be faced – a bespoke, in-house application can be amended to meet any requirement.

Some third-party integrations may be flexible, the format and mechanism being something that can be discussed and agreed between parties, whereas the integration mechanism and format for others like Amazon, will be fixed, and those wishing to use it will need to bend to their will.

 

Integrations

Integrations come under four main categories:

  • Database Integration


  • File Transfer


  • Services (remote procedure calls/APIs)


  • Messaging

 

Database Integration

Database integration requires applications to share information at the database level, either via a shared schema, data replication or directly referencing tables in each other’s schemas.

The benefit of this kind of integration is that it is immediate, and applications are consistent all of the time.

In the IBM i world, with the database being an integral part of the operating system, it has been a fairly common strategy to integrate bespoke and third-party applications at the database level.

The drawback of the approach is that it introduces a tight coupling between the applications. Changes to one application or the database will impact upon the others that share the database.

The boundaries between applications become blurred and ownership of and responsibility for the data becomes hard to define. This then leads to a monolithic architecture style as individual components are difficult to isolate and manage and in turn, leads to a lack of modularity in application code.

 

File Transfer Integration

File transfer integration is one of the oldest and most common approaches to integrating systems. There are generally three steps to the process:


  1. Data Extraction - the source application extracts data and formats it in an agreed manner – e.g. CSV, XML or fixed width text files.


  2. File transfer – the file is transferred to the target system via a mechanism like FTP, sFTP or a shared network drive.


  3. Data processing – the target application reads and processes the data.


File transfer is one of the simplest ways to integrate systems, it is asynchronous, lends itself to batch operations, is easy to understand and implement and is not coupled to any given platform.

The disadvantage of file transfer integration is that it does not happen in real time, there is often a wide gap between the extraction of data at the source and the processing of the data at the target. This leads to delays and periods of inconsistency between systems. The feedback cycle for any error handling is, therefore also long and can lead to issues in maintaining data integrity.

 

Service Integration

Service integrations can take a number of forms – such as REST, SOAP, RPC and GraphQL. They are usually synchronous, following a request-response pattern.

 

Rest based integrations

REST is the most common style for web services. It uses standard HTTP methods such as GET, POST, PUT, DELETE to interact with a resource identified by a URL. REST is simple, highly scalable and flexible. An HTTP ‘GET’ request, such as that your web browser makes when you visit a website, is used to request the current state of a resource located at a given URL.

The resource can be represented in any given format or structure – most commonly XML or JSON. An HTTP ‘POST’ would be used to store a new representation of a resource, ‘DELETE’ to remove the resource’s representation. REST is commonly used for API interfaces to cloud applications and services.

 

Remote Procedure Call (RPC) integrations

Remote Procedure Call (RPC) integration involves exposing functionality in one system to enable it to be called directly from another as if it were a local operation. The RPC process

  • A calling program needs to make a call to a function that is resident on another system. It makes a call to a local proxy for the function, known as a ‘stub’.


  • The client stub converts the parameters into a message that is transmitted across the network to the server.


  • The server stub converts the message back into a function call with parameters and calls the actual function.


  • The server stub converts the result of the operation into a message that is then transmitted back to the client stub.


  • The client stub extracts the result of the operation from the message and returns it to the calling program.


RPC integrations are suitable for use in high-performance applications due to the efficiency of the serialization of small amounts of data passed in parameters. They are generally simple to code as the calls are written like local function calls. The functions are strongly typed, which helps to reduce errors at runtime.

The disadvantages of RPC are that it leads to tight coupling between the systems, making changes more difficult as they impact both the client and the server, requiring changes to be synchronised between both. This means that it is difficult to manage different versions of an RPC interface. The strong typing, whilst helping to prevent errors, reduces the flexibility of the interface. This is a trade-off – in situations where performance is paramount, and the interfaces between systems are well-defined and constant, then RPC integration can be very effective.

 

Simple Object Access Protocol (SOAP) Integrations

SOAP is an older protocol used for web services, but has an RPC style with strong typing and function definition. SOAP uses HTTP as the transport mechanism and uses XML to describe an object’s properties and methods. In SOAP the results of operations are returned as XML. Like RPC, SOAP creates tight coupling between the client and server. It has fallen out of favour due to REST’s simplicity and flexibility.

 

GraphQL Integrations

GraphQL is an open source query language originally developed by Meta Platforms with the aim of reducing over-fetching of data in web services. It allows the client to specify precisely what data it wants the service to return (Declarative Data Fetching). Like REST and SOAP, GraphQL uses HTTP as its transport mechanism.

 

Message Based Integration

Message-based integration is based on the sending and receiving of messages between systems using message brokers or queues. Messages can be used for a wide variety of types of integration patterns, both synchronous and asynchronous, such as:

  • Point to point – a sender sends a message to a specific receiver.


  • Publish/subscribe – a sender (publisher) sends a message to a topic, to which multiple receivers may subscribe and receive the message.


  • Competing consumers – a sender sends a message to a queue, to which multiple consumers listen. When the message arrives, only one of the consumers picks it up for processing, and it is removed from the queue.


  • Scatter/gather – a sender sends a message to multiple recipients and then aggregates their responses.

Message-based integration relies upon messaging middleware called a message broker, like IBM MQ, TIBCO EMS, RabbitMQ and Apache Kafka. Each middleware provider has different strengths- for example, IBM MQ provides extremely robust and secure messaging with guaranteed delivery, but is slower than Apache Kafka as a result, which focuses on high throughput.

MQ guarantees once, and once only, delivery, whereas Kafka guarantees delivery but has the potential for duplication. Choosing the right message broker depends heavily on your specific needs and priorities, and budget.

Kafka and RabbitMQ are both free and open source. Kafka and TIBCO EMS are both suited to high volumes. IBM MQ’s support for transactions is stronger than the others, but is the most complex to set up. RabbitMQ is very simple to set up and manage.

Message-based integration offers a highly flexible, loosely coupled mechanism to integrate applications. It is able to scale to handle high volumes, with reliable delivery and create an event-driven architecture.

 

Summary

Integrating systems can be complicated, but there are a myriad of approaches and tools that have evolved to help us solve this common task.

Choosing the right approach, or mix of approaches (an API front end may be serviced by a messaging back-end for example), is critical to the success or failure of an integration project.

 

KFA Connect have decades of experience in integrating different applications on different platforms for different types of enterprises get in touch to discuss how we can help you with your integration requirements.

 
 

 
Back to News
Previous
Previous

Take Your IBM i UI Back to the Future - For Under £5K!

Next
Next

Richard Austin’s 2025 Ski Across Challenge: Fundraising & Volunteering