Step 1: Generate POS Transactions
First, we'll create a synthetic POS data generator that produces realistic retail transactions. In production, this would be replaced by your actual POS system feed.
The Generator
Inspect the generation mapping in the canonical reference, including its rounding of monetary totals. The Explorer shows the captured synthetic events used by the walkthrough.
For repository inspection without writing to external services, follow the run path.
What's Happening
The generator emits a high-volume synthetic stream. It is illustrative, not a benchmark for a typical retailer. Each transaction includes:
- Basket-level detail: Individual SKUs with categories, quantities, and prices
- Weighted distribution: 85% sales, 10% returns, 5% exchanges
- Calculated fields: Subtotal, tax, and total with proper rounding
- Negative amounts for returns: Returns flip the sign on all monetary fields
Next Step
The raw data is flowing, but it's missing store context. Next, we'll enrich each transaction with store metadata.