liveBook · Manning

Data transformation

As explained in Kafka for Architects

A map operation transforms each input event into a corresponding event in another format or representation.

Data transformation maps input events into another format or representation so systems can exchange, analyze, or further process data. In event-driven architectures, it is part of treating data as a governed contract across service boundaries, alongside validation and versioning. section 1.5

Choose the transformation location and processing model according to the architectural need:

  • Use Kafka Connect Single Message Transformations for stateless, one-message-at-a-time changes such as type casting, filtering, and attribute renaming. Chains are configured statically and require connector redeployment when changed. section 7.3.4
  • Use streaming applications for event-by-event processing, including mapping, filtering, routing, key changes, joins, windowing, and aggregations. section 8.0 section 8.3.1
  • Use ETL when transformation belongs in a staging area and batch processing is acceptable; use ELT when the target system transforms data after loading it in raw form. section 8.1.1

Customer 360 aggregation

An intermediate streaming service can join transactions with customer profiles and publish an aggregated result to Kafka. A final service then reads prepared data instead of performing the joins itself, making the derived result available to other consumers. section 8.0

Figure 7.20 Transformations are stateless and can be chained together.
A diagram of a connection

Description automatically generated

Use the diagram to compare stateless transformation stages and their chained flow through Kafka Connect. section 7.3.4

How Kafka for Architects covers it

How deep it goes
Explains stateless mappings, transformation locations, and trade-offs, while deferring complex transformations to streaming frameworks.
Examples
Uses type casting, filtering, renaming, format conversion, Customer 360 joins, event mapping, routing, and key changes.
What it assumes
Assumes familiarity with Kafka-based data flows and requires choosing between connector transformations, stream processing, and traditional service code.
What you can do after
Apply it via Kafka Connect or streaming frameworks to reshape, filter, route, join, or aggregate event data.
How it connects
Connects data transformation with schema governance, Kafka Connect, Kafka Streams, Apache Flink, ETL, ELT, joins, and aggregations.

Also explained in

Compare how 20 books explain data transformation →

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.