June 26, 2025 Reading time: 10 min. Watch on YouTube Watch on Rutube ___________________________________________
Apache Kafka and ESB in a Loosely Coupled Architecture: How to Reduce Costs, Guarantee Delivery, and Ensure Data Integrity in the IT Systems of Large Enterprises
Kafka benefits and limits. Why integrations without loose coupling do not work. How ESB with Kafka solves real enterprise problems
- Integrations with Apache Kafka for large enterprises. What are the benefits and limits?
- Yes, a message broker helps reduce peak load on systems and lower data loss. Systems will not directly control...
- What solutions can be implemented alongside Kafka to remove the integration headaches?
- 2. ESB with Kafka in the Stack
YouTube
We Share Our Experience on Our YouTube Channel
Which Way of Working Is Most Effective for Business?
Integrations with Apache Kafka for large enterprises. What are the benefits and limits?
And
What solutions can be implemented alongside Kafka to remove the integration headaches?
Indeed, large businesses have many problems in the integration layer between IT systems, and tools such as Apache Kafka or other message brokers can address them. In this article, we will look at which configuration of these tools can solve these problems and which levels of issues are removed as a result. The IT landscape of any large business is like a huge metropolis.
As with cities, none are exactly alike, but they always share common elements and common problems.
Just like cities are a combination of systems, approaches, configurations, service costs, infrastructure, and so on, IT is the same: one city may have a great subway but massive traffic jams, another may have low crime but closed shops, siesta, and the like. You want an ideal city where stores are open 24/7, there is no crime, and you can get anywhere without traffic, not only for people but also for goods and services.
The same happens in integrations between IT systems: one system has been polished to the point where it produces very high-quality data, but the problem is that there are ghettos in the form of other systems or their components where everything runs unstably: constant errors, data duplications across that system and neighboring ones, and in the end all this traffic creates jams on roads and highways.
People miss important meetings, goods are not delivered on time, or are not delivered at all, and so on.
When some global disaster happens and the whole city grinds to a traffic jam, you need a superhero who takes control and sorts out all the chaos... until next time. So, our superhero today is the Apache Kafka message broker.
Yes, a message broker helps reduce peak load on systems and lower data loss. Systems will not directly control message delivery and receipt.
-
Introducing a message broker partially reduces data loss, but does not eliminate it in some scenarios!
-
A broker is transport, not brains - all control and consumption logic lives inside the connected systems.
-
But integrations through a broker alone do not GUARANTEE delivery if the recipient is not ready, the format does not match, the logic has not been processed, the retention period has expired, or there is simply no receipt confirmation.
-
I should note separately that the broker has nothing to do with analyzing the causes of errors or overloads during peak days like Black Friday. Whether you have a broker or not, such errors or overloads often occur, and their cause remains unclear.
What solutions can be implemented alongside Kafka to remove the integration headaches?
-
Kafka Peak load on systems is reduced Data loss is reduced
-
Asynchronous: systems do not need to stay online all the time to communicate; ESB with Kafka in the stack prevents data loss, significantly reduces system load, and makes business analytics (BI) easier.
-
With loose coupling through an ESB that includes Kafka, systems can be changed in a click.
-
IT costs are significantly reduced
-
Transferability - easy to hand over to another IT team
-
High data quality = simple business analytics
2. ESB with Kafka in the Stack
To get the benefits above, it is important to understand that each nested doll cannot exist without the others.
What is ESB?
ESB is an enterprise service bus.
The presence of a message broker is often confused with it.
A broker is a transport bus
With ESB, it is a set of components that create an ideal integration layer.
It provides transformation logic, routing, error detection, incident investigation, and all of this is hosted on dedicated infrastructure that ensures fault tolerance.
In essence, ESB is an interpreter that conveys the meaning very accurately, without losing the sense and while taking cultural context into account.
Systems are "citizens" of different countries.
At the same time, ESB can communicate with even a bus full of tourists, where everyone speaks their own language, using just one interpreter who passes along all messages, and the bus will have an atmosphere of complete mutual understanding.
Moreover, the interpreter always remembers everything that was discussed and what was meant, so any conflict or misunderstanding can be resolved by pulling the relevant conversations from the interpreter's memory.
High data quality is a natural result of well-designed loose coupling through ESB.
It is ensured through strict transformation logic and clear protocol-based interaction between systems.
Here the systems do not know that each other exists; their task is to receive and pass data on.
All transfer and transformation logic lives not in the systems, but in ETL, and is clearly separated at both the architectural and organizational levels:
- the tangle of logic dependencies is untangled
- removed the unnecessary part
- and those "threads"
- that remain
- are stored exactly there
- where needed
- without affecting the rest
Here you can easily replace one system with another or connect and launch a new one without superheroes, titanic effort, or massive resources. IT starts working for the business, not the other way around!
How does the loose-coupling approach differ from direct integrations or broker-based ones? And why do data become poor quality:
-
Data can be exchanged directly and transformed within systems.
-
It is important to account for transformation logic: if something changes in one system, another has to adapt. At first, this looks efficient: connect quickly via API, data starts flowing, great!
-
But without a unified integration layer and common standards, and without a loose-coupling approach, this starts to fall apart over time. The typical picture looks like this:
-
Many IT systems. Each has its own delivery and transformation logic.
-
Systems can be the source of dozens or even hundreds of entities with poor-quality data, which creates new errors and even more poor-quality entities.
-
Tools are introduced to clean up the data, such as MDM and PIM.
-
But they suppress the symptoms without removing the cause. As a result, one system must account for the transformation logic and connections of all the others.
-
That is strong coupling: a tangle of dependencies that is hard to untangle even within the team, let alone for external participants.
-
A closed-infrastructure effect emerges, where every change becomes a mini-project.
-
So simply implementing a message broker like Kafka, or even ESB, without a loose-coupling architecture is like taking painkillers for a brutal hangover.
-
It may get a little easier, but the root of the problem will still be untouched.
Assess where AI can deliver impact in your process
ESB means high-quality data and easy business analytics (BI)!
-
For two systems, an entity such as a product card can be a different set of data.
-
With ESB, it is easy to build data transformation tailored to each system.
-
This also reduces load and eliminates transfer errors caused by an incorrect data format.
-
Data is stored in processed form in the DWH and in its original form in the Data Lake.
-
Everything here is transparent and neatly organized.
-
The business intelligence (BI) system can easily generate any required report. And the BI system itself can be connected simply through a unified ESB integration layer.
ESB means guaranteed message delivery
ESB monitors network and system availability on its own.
It retrieves and delivers the data itself.
It transforms the data into the required format for each system.
Here, a single ETL layer is the brains, while Kafka or another broker handles delivery and receipt.
ESB means detecting errors at the moment they occur
In the ESB approach, proactive monitoring makes it possible to get an alert as soon as an error occurs, quickly inspect the log, and promptly fix the cause. In contrast to direct integrations, problems there are often noticed only indirectly, when systems start failing one after another like dominoes, or worse, when customers who lost orders report them.
ESB reduces load on systems significantly
ESB reduces load on systems because it handles not only data transfer, buffering, and transformation, but also routing and flow orchestration.
Instead of one system directly querying another and hanging while waiting for a response, ESB receives the data, temporarily stores it, transforms it into the required format, and forwards it when the receiving side is ready.
Moreover, ESB knows where, when, and in what order to pass data, thanks to built-in routing. And if a data flow must go through several stages, such as validation, enrichment, logging, and writing to storage, ESB orchestration manages that sequence without having to define it in each system separately. As a result, systems become less dependent on one another and operate at their own pace, without overloads, timeouts, or manual control.
The architecture becomes more flexible, and the processes become more stable and scalable.
3. Loose Coupling Through ESB with Kafka in the Stack
-
Why will using ESB in general, or Kafka specifically, without loose coupling not produce the desired result?
-
All of the above is good, but to truly build an IT landscape where systems can be changed at the snap of a finger, IT costs can be significantly reduced, and support can be easily handed over to another team, loose coupling is needed.
-
Only this architecture delivers simple, accurate, and accessible business analytics.
-
This can be achieved by building loose coupling at both the architectural and organizational levels through a well-designed enterprise service bus (ESB), with Kafka used as the transport layer.
-
Here it is ineffective to simply introduce IT-layer solutions, because the digital copy of the business is drifting further and further from reality.
-
A gap emerges between how real processes actually work and what is reflected in IT.
-
You can endlessly change vendors, introduce new tools, and adopt trendy approaches.
-
But until there is identity between real and digital processes, all of this will keep producing errors and inconsistencies.
-
Solutions will be layered on top of these distortions, forming scar tissue with previous "solutions." And this digital erosion will keep compounding itself: the digital copy of the business will become less and less aligned with reality.
-
The conclusion is always the same: loose coupling is not an abstract idea, but a real factor that affects cost.
-
Below is a chart that clearly shows how the cost of maintaining an IT landscape grows without loose coupling. *
-
The IKEA Effect is a cognitive bias in which people overvalue things they made themselves, even if they are objectively worse.
-
We constantly see the same pattern: integrations are launched quickly at first through direct connections, which delivers fast results and a sense of efficiency.
-
But over time, the architecture starts to crumble: each new connection adds fragility, duplication, and dependence on specific systems and people.
-
Without a single owner who keeps the architecture in mind and manages the dependencies, the IT landscape turns into a tangled sweater: warm, but awkward, overheated, and full of holes.
-
It is like a good athlete training on their own, they will make progress.
-
But when an experienced coach appears, someone who can observe from the outside, correct technique, and manage the load, meaningful results and records follow.
-
The same is true in integrations: loose coupling does not happen on its own, it is achieved through systematic work and architectural support.
There is good news!
Usually, an ESB implementation project does not start with an attempt to rebuild the entire IT landscape at once, but with the most painful point in the business. For example, if the order department is overloaded, orders are being lost, and employees are drowning in manual processing, that is where attention goes first.
ESB enables loosely coupled integration between systems: order intake, transformation, and delivery are automated.
After 2-3 months, what used to be chaos becomes a stable, scalable flow. And the business sees: "it works!" - without a full rebuild, without a major refactor, simply thanks to sound architecture.
A pocket of loose coupling appears - like a quiet harbor in a stormy ocean of integrations, where the ship can always find refuge and will not collide with other vessels seeking the same.
It will be unloaded and loaded quickly without losing anything, supplies will be sorted out, and the captain’s job is to keep following the course without getting distracted by all this routine work.
If you recognize yourself or your team in this material, I would be glad to hear how you see these kinds of challenges being solved. You may already have experience worth sharing, or a perspective that adds another valuable layer to this topic.
Write in the comments - let's discuss
ESB - benefits for business management ESB - benefits for building the business IT landscape
Signs that the integration architecture is aging
- Connecting a new system takes months: the integration is written from scratch for each pair of systems.
- The development team is busy supporting data exchanges instead of developing the product.
- A failure in one system cascades into neighboring ones, because the architecture has a single point of failure.
- Data in the systems contradicts each other, and no one can say where the truth is.
- Replacing a legacy system is postponed for years because it has become embedded in the integration landscape.


