concept ZMart in category kafka

appears as: ZMart, ZMart
Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API

This is an excerpt from Manning's book Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API.

Suppose Jane Doe is on her way home from work and remembers she needs toothpaste. She stops at a ZMart, goes in to pick up the toothpaste, and heads to the checkout to pay. The cashier asks Jane if she’s a member of the ZClub and scans her membership card, so Jane’s membership info is now part of the purchase transaction.

When the total is rung up, Jane hands the cashier her debit card. The cashier swipes the card and gives Jane the receipt. As Jane is walking out of the store, she checks her email, and there’s a message from ZMart thanking her for her patronage, with various coupons for discounts on Jane’s next visit.

This transaction is a normal occurrence that a customer wouldn’t give a second thought to, but you’ll have recognized it for what it is: a wealth of information that can help ZMart run more efficiently and serve customers better. Let’s go back in time a little, to see how this transaction became a reality.

Figure 2.1. The original data architecture for ZMart was simple enough to have information flowing to and from each source of information.

In chapter 1, we discussed ZMart’s new requirements for processing customer data, intended to help ZMart do business more efficiently. We demonstrated how you could build a topology of processors that would work on purchase records as they come streaming in from transactions in ZMart stores. Figure 3.5 shows the completed graph again.

The security department at ZMart has approached you. Apparently, in one of the stores, there’s a suspicion of fraud. There have been reports that a store manager is entering invalid discount codes for purchases. Security isn’t sure what’s going on, but they’re asking for your help.