Scrivio Interview library
LeadershipPrincipal5 min read · updated 13 November 2026

Enterprise architecture proposes a canonical data model for the whole company: one Customer, Order and Product schema that every domain must use in its Kafka events, plus a mandatory envelope.

Twelve domains and 70 teams would have to comply. How do you respond, and what would you standardise instead?

I would agree with the goal, consistent and understandable events, but argue against one canonical Customer, Order and Product model for twelve domains, because it becomes a committee-owned lowest common denominator that either freezes or fills with optional fields meaning different things to different teams. Domains genuinely mean different things by Customer, so events should use each domain's own language with clear ownership. Instead I would standardise what is cheap to share and costly to vary: the envelope, for example CloudEvents attributes carried as ce_ headers, id formats, UTC timestamps, money types and naming and versioning rules, backed by registry checks in CI, an event catalog and translation at domain boundaries, and measured by change lead time and consumer breakages.

Why this question is asked

Canonical data models are a recurring idea in large companies: if everyone used the same definition of Customer, integration would be easy. Enterprise architecture teams propose them with good intentions, and seventy teams then live with the result for years. Interviewers ask this leadership question to see whether a senior engineer can push back with reasons rather than resistance, and offer a standard that actually helps. In this answer, we will look at why a single model fails, why the domains are right to disagree about Customer, what we should standardise instead, how tooling makes it stick, and how we measure whether it works.

1Why One Model for Everyone Tends to Fail

A canonical model has to serve every domain at once. Billing needs a Customer with a billing account, tax id and payment terms; shipping needs a recipient with an address and delivery instructions; marketing needs a contact with consent flags and segments. A single schema must either include all of these, or only the few fields everyone agrees on.

Both paths lead to trouble. If the model includes everything, most fields are optional and their meaning depends on who filled them in: does address mean billing address or delivery address? If it includes only the common core, every domain adds its real data somewhere else. And in either case, every change needs agreement from every domain, so the model is owned by a committee. Teams wait weeks for a field, or work around the model, and the standard freezes while the business moves.

2Domains Genuinely Mean Different Things

This is not a failure of discipline. Different parts of a business really do have different concepts that share a word. Domain-driven design calls the boundary within which a word has one meaning a bounded context, and the vocabulary a domain shares with others its published language. Billing's customer and marketing's contact may refer to the same person, but they have different lifecycles, rules and owners.

So events should be expressed in the publishing domain's own language, with clear ownership: billing publishes InvoiceIssued with a billingAccountId, shipping publishes ShipmentDispatched with a recipient. Each event has one owning team that decides its schema, and consumers know whom to ask. What links the domains is a shared identifier, such as a global customer id, not a shared schema.

3What to Standardise Instead

The useful standard covers things that are cheap to share and costly to vary. The envelope is the best example: every event carries the same metadata so tooling, tracing and routing work everywhere. CloudEvents is an existing specification for this, with attributes such as id, source, type, specversion and time; its Kafka protocol binding carries them as headers prefixed with ce_, such as ce_id and ce_type, so the payload stays the domain's own.

Beyond the envelope, we standardise formats that cause bugs when they vary: identifier formats, timestamps in UTC with ISO 8601 or epoch milliseconds, a money type with an amount as a decimal and an ISO 4217 currency code, never a float. We also standardise naming rules for topics and events, past-tense event names, and versioning rules, such as BACKWARD compatibility within a major version and a new topic for a breaking change.

Standardise versus leave to domains
Standardise across the companyLeave to each domain
Envelope: CloudEvents id, source, type, timePayload fields and their meaning
Id formats, UTC timestampsWhat Customer or Order means locally
Money: decimal amount plus ISO 4217 currencyWhich fields an event carries
Topic and event naming, versioning rulesEvent granularity and lifecycle
Compatibility mode per major versionInternal models and storage
Share the plumbing and the vocabulary for common values; keep business meaning with the owners.

4Making the Standard Real With Tooling

Rules in a wiki are ignored; rules in the pipeline are followed. We enforce schema compatibility in CI through the schema registry, so a breaking change fails the build before it reaches consumers, and lint schemas for the envelope, timestamp and money rules. An event catalog lists every event, its owner, schema, topic and consumers, so a team that needs customer data can find who publishes it.

Where one domain consumes another's events, the consuming domain translates at its boundary, an anti-corruption layer in DDD terms: shipping maps billing's events into its own model rather than adopting billing's concepts. That keeps each domain free to evolve, and the translation code makes the dependency visible.

5Measuring Success and Revisiting the Standard

To make this more than an opinion, we agree how to judge it. Two measures fit well. Lead time to change an event: how long from deciding a field is needed to having it in production, which a committee-owned model makes slow. Consumer breakages per quarter: how often a schema change broke a consumer, which compatibility checks should drive towards zero.

We review the standard yearly with representatives of the domains, adding what proved useful and dropping what did not, rather than freezing it. In the conversation with enterprise architecture, this framing helps: we share their goal of coherent events, and we propose a way to get it that we can measure.

6Follow-up questions

Is there any place where a shared model does make sense?

Yes, for small, stable value types used everywhere: Money, Address as a postal structure, country and currency codes, perhaps a global customer identifier. These change rarely and mean the same thing in every domain. The problem is not sharing, it is sharing large business entities whose meaning differs.

How do you handle the architecture team without turning it into a fight?

Start from their goal, which is usually fewer integration problems, and show the evidence: examples where a shared model would have to choose between two domains' meanings, and the cost of committee approval for each change. Then offer them ownership of the standard that does work, the envelope, formats, rules and catalog, so they lead it instead of losing it.

7Conclusion

In this answer, we saw that a single canonical model for twelve domains tends to become a committee-owned lowest common denominator, because domains genuinely mean different things by Customer, Order and Product. Events should use each domain's published language with one owner per event, linked by shared ids. What we standardise instead is the envelope, such as CloudEvents attributes as ce_ headers, id and timestamp formats, money types, and naming and versioning rules, backed by registry checks in CI, an event catalog and translation at domain boundaries, and judged by change lead time and consumer breakages with a yearly review.

What to say in the interviewAbout 90 seconds aloud

Open with

I would agree with the goal but propose a different standard. A single canonical model for twelve domains tends to become a committee-owned lowest common denominator: every change needs agreement from every domain, so it either freezes or grows optional fields that mean different things to different teams.

Then, if they want more

And domains genuinely mean different things by Customer: billing has a billing account, shipping has a recipient, marketing has a contact with consents. So events should use each domain's own published language, with one owning team per event, linked by shared ids rather than a shared schema.

What I would standardise is what is cheap to share and costly to vary: the envelope, for example the CloudEvents attributes id, source, type, specversion and time carried as ce_ headers in the Kafka binding; id formats; timestamps in UTC; a money type with decimal amount and currency; and naming and versioning rules.

I would back it with tooling: schema registry compatibility checks in CI, an event catalog with owners, and translation at domain boundaries where one domain consumes another's events. I would measure success by lead time to change an event and consumer breakages per quarter, and review the standard yearly instead of freezing a model. I would also invite the architecture team to own that standard.

About this answer

Last updated
13 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
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 "Twelve domains and 70 teams would have to comply. How do you respond, and what would you...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-design/e709adff0a/