liveBook · Manning

Delta event

As explained in Kafka for Architects

A delta event is an event containing the identifier of a changed entity and only the attributes modified by the change.

A delta event reports that an entity changed by carrying its identifier and only the attributes modified by that change. For a profile update, it can publish a phone-number change rather than resend the complete profile. This reduces message size and bandwidth, but consumers must interpret and apply partial updates correctly. section 6.2.2 section 6.7

Choose delta events when the change itself is more useful than repeatedly transmitting complete state:

  • Send the entity identifier together with the changed attribute or attributes, such as userId and newPhoneNumber. section 6.2.2
  • Reduce payload size and bandwidth usage compared with fact events, which carry all entity attributes. section 6.7
  • Accept greater consumer responsibility: consumers must understand partial changes and may need prior state or event history. section 6.7
  • Govern the event with a version-controlled schema and compatibility rules so producers and consumers can evolve without misinterpretation. section 6.7

Phone number update

A UserPhoneNumberUpdated event identifies user 12345 and carries only the new phone number, rather than repeating the profile's name, email, addresses, and social accounts.

How Kafka for Architects covers it

How deep it goes
Defines the partial-update shape, contrasts it with fact events, and identifies consumer complexity and schema governance.
Examples
Demonstrates a UserPhoneNumberUpdated event containing userId and newPhoneNumber.
What you can do after
Evaluate whether partial-change payloads justify added consumer complexity and govern their schemas for compatible evolution.
How it connects
Connects delta events with fact events, data contracts, schemas, Schema Registry, and schema compatibility.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.