KStreams and KTables Simple Operations (Stateless)

KStream And KTables

Kstreams

KTables

When should I use KStream vs KTable?

Stateless Vs Stateful Operations

MapValues / Map

Takes one record and produces one record

Warning

Didn't really talk about Map much, MapValues is closer to what you're used to

Filter / FilterNot

Takes one record and produces zero or one record

FlatMapValues / FlatMap

Takes one record and produces zero, one or more records

KStream Branch

KStream SelectKey

Reading From Kafka

You can read a topic as a KSTream a KTable or a GlobalKTable

GlobalKTable is basically the same as KTable

Writing to Kafka

Streams Marked for Repartition

Log Compaction

Does not:

KStream and KTables Duality

KStreams and KTables Simple Operations (Stateless)

KStream And KTables

Kstreams

KTables

When should I use KStream vs KTable?

Stateless Vs Stateful Operations

MapValues / Map

Takes one record and produces one record

Warning

Didn't really talk about Map much, MapValues is closer to what you're used to

Filter / FilterNot

Takes one record and produces zero or one record

FlatMapValues / FlatMap

Takes one record and produces zero, one or more records

KStream Branch

KStream SelectKey

Reading From Kafka

You can read a topic as a KSTream a KTable or a GlobalKTable

GlobalKTable is basically the same as KTable

Writing to Kafka

Streams Marked for Repartition

Log Compaction

Does not:

KStream and KTables Duality

References

Flashcards