liveBook · Manning

Processing node

As explained in Kafka for Architects

A processing node is a topology node that contains stream-processing logic such as filtering, aggregation, or transformation.

A processing node is the execution point in a Kafka Streams topology where events are filtered, mapped, joined, aggregated, or transformed. It sits between source nodes that read Kafka topics and sink nodes that publish processed events. section 8.3.3

A topology can be assembled automatically through Kafka Streams DSL functions or defined explicitly with custom processors. Stateful processing nodes connect to state stores that retain intermediate results for joins and aggregations; edges carry data in memory or through Kafka topics. section 8.3.3

Custom processing nodes are useful when standard streaming operators do not express the required behavior:

  • Implement custom logic in Java through classes that implement the Processor interface. section 8.3.3
  • Access state stores, schedule periodic actions, and interact directly with the Kafka client API. section 8.3.3
  • Package reusable processors in a shared library and connect them programmatically within an explicitly defined topology. section 8.3.3

Fraud detection

A custom processing node can inspect incoming transactions, compare them with historical patterns held in state stores, and identify anomalies in real time. section 8.3.3

Figure 8.9 Internally, the Kafka Streams application is represented as a graph. Events flow from input topics through source nodes, are processed by processing nodes, and are finally published to output topics via sink nodes.
A screen shot of a black background

Description automatically generated

Trace the topology visually from input topics through source nodes and processing nodes to output topics through sink nodes. section 8.3.3

How Kafka for Architects covers it

How deep it goes
Details graph placement, state-store links, Java Processor implementations, scheduling, and low-level Kafka access.
Examples
Uses fraud detection with historical state and event flow from input topics through processing nodes to output topics.
What it assumes
Introduces source nodes, sink nodes, state stores, and topology structure while defining their relationships.
What you can do after
Build custom processing logic as Java Processor implementations and place it in an explicitly defined topology.
How it connects
Connects source nodes, sink nodes, state stores, Kafka topics, and topology graphs.

Also explained in

Compare how 2 books explain processing node →

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.