Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

Several engines and managed services now speak the Kafka protocol with different storage designs and prices.

An architect proposes that the company standardise on the Kafka client API and protocol as its event interface, and choose the engine per workload: a low-latency cluster for payments, an object-storage engine for logs and analytics. How do you evaluate this as a long-term bet?

It is a reasonable bet if we treat compatibility as something we test, not something we assume. The appeal is real: one client API, kept skills and tools, negotiating power and the freedom to pick an engine per workload. The risk is partial compatibility in transactions, compaction, consumer group protocols such as KIP-848, quotas, admin APIs and error behaviour, so I would build a conformance suite of the features we actually use, contain lock-in with portable code, proven cross-engine replication and exit terms, and limit the estate to two or three well-justified engine profiles.

Why this question is asked

The Kafka protocol has become something like a standard interface for event streaming. Besides Apache Kafka itself, several managed services and alternative engines speak it, some storing data directly in object storage for lower cost, some rewritten for lower latency. That opens a tempting strategy: code against the protocol and shop for engines. Interviewers ask this at leadership level to see how we evaluate a long-term platform bet, separating a sound principle from the details that make or break it. In this answer, we will look at what the strategy promises, where compatibility tends to break, how to make it testable, how to keep lock-in contained, and why the number of engines must stay small.

1What the Strategy Promises

The idea is that the Kafka client API and wire protocol become the company's event interface, the way SQL is an interface to relational databases. Applications use the standard Java client or Spring Kafka, tools such as Kafka Connect and Flink keep working, and engineers keep the skills they have. Underneath, the platform team chooses an engine per workload: a low-latency cluster on fast local disks for payments, where p99 produce latency matters, and an engine that writes straight to object storage for logs and analytics, where cost per gigabyte matters far more than a few hundred milliseconds of latency.

There is also a commercial benefit. When several engines can serve the same applications, the company can negotiate with vendors and move workloads when prices or quality change. And the strategy is incremental: applications already written against Kafka need little change.

2Where Compatibility Breaks

The catch is that speaking the protocol is not the same as behaving identically. The basics, produce, fetch and committed offsets, are usually solid. The differences appear in the less common features, and those are often exactly what critical workloads use.

Transactions and exactly-once processing may be missing, partial or slower. Log compaction may be unsupported or behave differently. The new consumer group protocol from KIP-848 (group.protocol=consumer, generally available in Kafka 4.0) may lag behind on other engines, and so may share groups. Quotas, admin APIs used by tooling (creating topics, changing configs, describing groups), error codes and retry behaviour under failure can all differ. An object-storage engine may have much higher produce latency or different durability semantics at acknowledgement. Teams typically discover these gaps in production, during an incident, when a client library behaves in a way nobody tested.

Features to verify on every engine
FeatureWhy it mattersTypical risk
Produce, fetch, offsetsEvery applicationUsually solid
Transactions, exactly-oncePayments, Streams appsMissing or partial
Log compactionState topics, changelogsUnsupported or different
KIP-848 groups, share groupsRebalance behaviourLagging support
Admin APIs and quotasTooling, protectionSubset implemented
Errors under failureClient retriesDifferent codes, timing

3Making Compatibility Testable

The answer to partial compatibility is a conformance suite: automated tests of the protocol features the company actually uses, run against every engine and every engine upgrade. It does not need to cover the whole protocol, only our usage. We can find that usage by inventorying client configurations, Connect and Streams applications and admin tooling. The suite then checks behaviours such as a transactional producer aborting and a read_committed consumer skipping the aborted records, compaction keeping the latest value per key, a rebalance moving partitions without duplicates beyond what at-least-once allows, and the error a producer sees when a leader fails.

From the results, the platform publishes a short list of supported features per workload class. A team building on the analytics engine knows, for example, that it can rely on compaction but not on transactions. That turns a vague promise into a contract that teams can design against.

4Containing Lock-in

Even with a shared protocol, engines offer extras: proprietary connectors, special topic types, vendor admin APIs. Each one used in application code quietly ties that application to the engine. The rule should be that application code uses only the standard client API and the supported feature list, and engine-specific features stay in the platform layer where the platform team can replace them.

Moving data must also be proven, not assumed. Keep a cross-engine replication path such as MirrorMaker 2 working and rehearsed, so a topic can be moved from one engine to another with known lag and known offset translation. And put exit terms in contracts: data export in a standard format, notice periods and help with migration. A strategy whose selling point is portability must actually exercise portability, for example by moving one non-critical workload between engines each year.

5Keeping the Number of Engines Small

Every engine adds cost that does not show up on the price sheet: on-call knowledge, security review, monitoring and dashboards, upgrade testing, capacity planning and incident runbooks. With one engine per workload, those costs multiply and the platform team spreads thin. In practice, two well-justified profiles, for example low-latency and low-cost, usually beat a different engine for every workload, and a third should need a strong case with numbers.

So my overall assessment is positive but conditional. Standardising on the Kafka client API is a sound long-term bet, because it is widely supported and keeps options open. Choosing engines per workload is sound only with a conformance suite, a supported feature list, contained lock-in and a small number of engines.

Step throughThe proposed platform
  1. Applicationsstandard Kafka client API only
  2. Supported feature listper workload class, from conformance results
  3. Conformance suiterun on every engine and upgrade
  4. Engine profileslow-latency for payments, object storage for logs
  5. Cross-engine replicationMirrorMaker 2, rehearsed yearly

5 layers, from the top down. Step through them one at a time.

6Follow-up questions

How would you decide whether a workload belongs on the low-cost engine?

By its requirements against the supported feature list: if it tolerates higher produce latency, does not need transactions, and its volume makes storage cost significant, it is a candidate. Logs, metrics and analytics events usually qualify; payments and anything using exactly-once processing usually do not.

Who owns the conformance suite?

The platform team, with contributions from application teams whenever they start using a new feature. A feature not in the suite is not supported, which gives teams a reason to add tests for what they depend on.

What signals would make you reverse the strategy?

Conformance failures that keep recurring on an engine, incidents traced to compatibility gaps, or support costs that grow with each engine. If one engine profile causes most of the trouble, retire it and consolidate.

7Conclusion

In this answer, we saw that standardising on the Kafka client API and choosing engines per workload offers one API, kept skills, negotiating power and cost or latency gains. The main risk is partial compatibility in transactions, compaction, group protocols, admin APIs and failure behaviour, which we make testable with a conformance suite and a supported feature list. We contain lock-in by keeping engine-specific features out of application code and rehearsing cross-engine replication, and we keep the number of engines to two or three well-justified profiles.

What to say in the interviewAbout 80 seconds aloud

Open with

I think it is a good long-term bet with conditions. The appeal is clear: applications code against one API, teams keep their tools and skills, we gain negotiating power, and we can use a low-latency engine for payments and an object-storage engine for logs where cost matters more than latency.

Then, if they want more

The risk is that protocol compatibility is partial. Produce and fetch usually work, but transactions, compaction, the KIP-848 consumer group protocol, quotas, admin APIs and error behaviour differ between engines and versions, and teams tend to find the gaps in production.

So I would make compatibility testable: a conformance suite of the features we actually use, run against every engine and every upgrade, and a short list of supported features per workload class.

I would contain lock-in by keeping engine-specific features out of application code, keeping cross-engine replication such as MirrorMaker 2 proven so data can move, and putting exit terms and data export in contracts. And I would limit the number of engines, because each adds on-call knowledge, security review and monitoring; two well-justified profiles usually beat one per workload.

With those in place, the strategy keeps our options open without surprising us in production.

About this answer

Last updated
13 November 2026
Versions it names
Kafka 4.0
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
Apache Kafka documentation
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 "An architect proposes that the company standardise on the Kafka client API and protocol...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-design/c85570b94c/