concept credit card number in category kafka

appears as: credit card numbers, credit card number, credit card number, credit card numbers
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.

Figure 1.6. The first node in the graph that represents the business requirements. This node is responsible for masking credit card numbers and is the only node that receives the raw sales data from the source node, effectively making it the source for all other nodes connected to it.

For the credit card masking operation, you make a copy of the data and then convert all the digits of the credit card number to an x, except the last four digits. The data flowing through the rest of the graph will have the credit card field converted to the xxxx-xxxx-xxxx-1122 format.

1.6.2. The first processor: masking credit card numbers

Now that you have a source defined, you can start creating processors that will work on the data. Your first goal is to mask the credit card numbers recorded in the incoming purchase records. The first processor will convert credit card numbers from something like 1234-5678-9123-2233 to xxxx-xxxx-xxxx-2233.

Figure 1.11. The masking processor is a child of the main source node. It receives all the raw sales transactions and emits new records with the credit card number masked.