concept update stream in category kafka

This is an excerpt from Manning's book Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API.
Let’s take the same stream of customer transactions, but now track activity over time. If you add a key of customer ID, the purchase events can be related to each other, and you’ll have an update stream as opposed to an event stream.
We’ll use the KStream and the KTable to drive our comparison of event streams versus update streams. We’ll do this by running a simple stock ticker application that writes the current share price for three (fictitious!) companies. It will produce three iterations of stock quotes for a total of nine records. A KStream and a KTable will read the records and write them to the console via the print() method.