Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company has many integration flows built over the years with Spring Integration, an ESB, and custom scripts. How would you decide the future integration strategy: keep embedded integration libraries, use an integration platform, or move to event streaming?

We would not pick one answer for every flow. We would inventory the flows by business importance, change rate, owners and failure history, then choose per group: embedded libraries such as Spring Integration where a team owns the flow and wants it tested with its code, an integration platform where consistency across many similar partner connections matters, and event streaming for ongoing data sharing between internal systems, while file and API integrations with partners usually stay as adapters at the edge. We would move gradually, starting with flows that change often or fail most, retire duplicates, and give every flow a named owner, because unowned integrations are the main long-term risk.

Background to this question

Integration estates grow by accretion: a Spring Integration flow here, an ESB route there, a shell script on a server nobody remembers. Each was a reasonable choice when it was made. Together they become the place where outages hide. A senior leader is asked to set a strategy that reduces that risk without a costly rewrite. In this answer, we will start from the inventory, compare the three options and what each costs, see where each fits, plan a gradual move, and finish with ownership, which matters more than any technology choice.

1Starting With an Inventory of Flows

Before comparing technologies, we need to know what we have. For each flow we record what it does in business terms, which systems and partners it connects, how important it is (what breaks and for whom if it stops), how often it changes, who owns it, and its failure history over the last year or two. We include the custom scripts, which are often missing from every diagram and are often the most fragile.

This inventory usually surprises people. A typical result might be 300 flows: 120 in Spring Integration, 90 on the ESB, 60 scripts and 30 nobody can explain. Perhaps 40 carry money or orders. A handful cause most incidents. And some flows do the same thing twice, built by different teams years apart.

2Comparing the Three Options

Each option has a real strength and a real cost, and the strengths point to different kinds of flow.

Integration options compared
OptionStrengthCostFits
Embedded libraryteam ownership, testable in CIskills and standards per teamflows owned by one team
Integration platformconsistency, partner connectorscentral bottleneck, driftmany similar partner links
Event streamingshare changes with many consumersplatform, schemas, new skillsinternal data sharing
Custom scriptsquick to writeno tests, no owner, fragilenothing new

Embedded integration libraries, Spring Integration or Apache Camel inside a service, put the flow in a team's own code: it is versioned, reviewed, tested in CI and deployed with the service. The cost is that every team must know the library, and standards for errors and monitoring must be enforced team by team. A central integration platform, such as an ESB or a commercial iPaaS, gives consistency, connectors for many partners and one place to monitor, but changes queue up behind the platform team, which becomes a bottleneck, and the flows drift away from the teams who understand the business. Event streaming, such as Kafka with connectors, is excellent for ongoing data sharing between internal systems: a system publishes its changes once and any number of consumers read them. It does not replace a partner who sends a nightly CSV over SFTP or exposes a SOAP API; those need adapters at the edge whatever happens inside.

3Deciding Per Group of Flows

With the inventory and the comparison, the decision becomes a matter of grouping. Internal flows that copy data between systems on a schedule, for example nightly exports from the order system to the warehouse, are often the best candidates for event streaming: the order system publishes order events, and the warehouse consumes them continuously instead of waiting for a batch. Partner integrations with files and APIs usually stay as adapters, either in a team's service with Spring Integration or on the platform if there are many similar partners. Scripts are replaced, because they are where unowned risk concentrates.

Step throughChoosing a target for one flow
  1. Internal data shared with several consumers?
    YesEvent streamingNoNext question
  2. Partner file or API connection?
    YesAdapter at the edgeNoNext question
  3. Owned by one team, changes with its service?
    YesEmbedded library in that serviceNoPlatform, if many similar flows
  4. Duplicate of another flow?
    YesRetire itNoKeep and migrate by priority

4 steps in order. Play them, or step through them one at a time.

4Moving Gradually, Not in a Big Bang

A big-bang migration of 300 flows would take years and risk every one of them at once. Instead we prioritise by value. Flows that change often get the most benefit from moving to a team-owned, tested home, because every future change becomes cheaper. Flows that fail most get the most benefit in reduced incidents. Duplicates are retired first, because removing a flow is the cheapest migration there is. Stable flows that work and rarely change can stay where they are for a long time; moving them carries risk with little benefit.

When an internal flow moves to event streaming, we run old and new side by side for a period and compare outputs before switching off the old route. We also set a target for the ESB: if most of its flows will move, we agree when the platform will be retired and fund the work, so the company does not pay for both indefinitely.

5Ownership Is the Real Strategy

Looking at the failure history, the pattern is usually clear: the flows that fail badly are the ones nobody owns. The script on a forgotten server, the ESB route whose author left, the flow between two teams that each think the other is responsible. Technology choices matter less than this.

So every flow gets a named owning team in the inventory, recorded where everyone can see it, with a contact and a runbook. A flow without an owner is either assigned one or scheduled for retirement. New flows are not accepted onto any platform without an owner. This one rule reduces long-term risk more than any migration, and it makes the migrations themselves possible, because someone is accountable for each one.

6Follow-up questions

Should we standardise on one embedded library, Spring Integration or Camel?

For a mostly Spring company, Spring Integration is the natural default, and having one default makes skills and standards easier to share. Existing Camel flows that work need not be rewritten; the default applies to new work.

Does event streaming replace the ESB?

For internal data sharing, often largely. For partner connections, protocol conversion and some orchestration, not directly; those move to adapters in services or to a lighter integration platform. The ESB's retirement is usually the result of many such moves, not a single replacement.

How do you measure whether the strategy is working?

Track incidents per flow and their time to recover, the number of unowned flows (which should reach zero), the number of duplicate flows retired, and lead time for changes to integration flows. If incidents and lead time fall while unowned flows disappear, the strategy is working.

7Conclusion

In this answer, we built the integration strategy from an inventory of flows by importance, change rate, owners and failures. Embedded libraries give team ownership and testability, platforms give consistency but can become bottlenecks, and event streaming fits ongoing internal data sharing while partner files and APIs stay as adapters. We would move gradually, starting with flows that change often or fail most, retire duplicates, and assign an owner to every flow.

What to say in the interviewAbout 90 seconds aloud

Open with

I'd start with an inventory, because the right answer differs by flow. For each one: what it does for the business, how critical it is, how often it changes, who owns it and how often it has failed, including the scripts nobody has documented.

Then, if they want more

Then I'd compare the options honestly. Embedded libraries like Spring Integration give a team ownership, code review and CI tests, but every team needs the skills and the standards. A central platform gives consistency and partner connectors, but the platform team becomes a bottleneck and flows drift away from the people who understand them.

Event streaming is great for ongoing internal data sharing, a system publishes changes once and many consumers read them, but it doesn't replace a partner's nightly SFTP file or SOAP API, which stay as adapters at the edge.

So I'd decide per group: internal data copies toward streaming, partner connections as adapters in owning services or on a platform if there are many similar ones, and scripts replaced. I'd move gradually, retiring duplicates first, then flows that change often or fail most, and leave stable ones alone.

Most of all, every flow gets a named owner with a runbook; unowned flows are where the outages come from, and a flow without an owner is assigned one or retired.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Cloud Stream reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company has many integration flows built over the years with Spring Integration, an...": https://scrivio-interview-library.netlify.app/spring-boot/spring-cloud-stream/b1fc704de8/