Video in progress

How much data should you put in an event: only the ID (a "thin" event) or the full state (a "fat" event)? How do you choose?

A thin event is small and doesn't carry sensitive data, but consumers call back to the producer for details, which brings load and race conditions. A fat event makes consumers independent and makes replay easier, but the contract grows. I usually put the needed state in the event, but not everything.

📖 Answer

A thin event:

{"type": "OrderPaid", "orderId": 1001, "occurredAt": "2026-11-03T10:15:00Z"}

The consumer does a GET /orders/1001 and fetches the rest. Problems:

  • With 10 consumers, that's 10 extra requests per event; if the order service goes down, everything stops. The point of being asynchronous is lost.
  • A race: the consumer reads late and already gets the CANCELLED status from the API. The OrderPaid event says "paid", while the API says something else.
  • Replay doesn't work: if you reprocess an event from a month ago, the API returns today's state.

A fat event (event-carried state transfer):

{"type": "OrderPaid", "orderId": 1001, "customerId": 77,
 "amountMinor": 1250000, "currency": "UZS", "items": [...], "version": 5}

The consumer calls nobody and builds its own read model. But the event is big; every field is part of the contract and hard to change; personal data (phone, address) spreads to every consumer and into Kafka retention.

Here's what I usually do:

  • the event carries "what happened" and the data that belongs to that occurrence: OrderPaid has the amount and currency, but not the customer's full profile;
  • I add a version or sequence, so a consumer doesn't overwrite a newer state with an older event;
  • if sensitive data is needed, only a service with permission fetches it from its own API: that's the deliberately "thin" part;
  • in a compacted topic I send the full state (a snapshot), because there the last message has to be the whole truth.

In an interview, don't answer "always fat" or "always thin"; the question is really about coupling and the cost of the contract.