Retail and consumer · Industry lens
Open source data architecture for Retail and e-commerce
Retailers and online stores bring point-of-sale, clickstream, inventory, supply chain and loyalty data together for demand forecasting, replenishment, personalization and fraud.
Interactive
Retail and e-commerce on the open lakehouse
Sources
Point-of-sale systems
Streaming baskets, end-of-day batch
Web and app clickstream
Streaming events
Inventory and warehouse management
CDC
Supplier EDI
Batch X12 or EDIFACT documents
Ingestion
Open lakehouse platform
Engine access
How agents, apps and people reach compute: a client session per identity.
Execution
Spark's execution modes, plus engines that read the same tables.
Data foundation
Open tables in a governed catalog, on storage you own.
Serving
Teams
Retail and e-commerce use cases (highlighted ones run on this architecture)
Demand forecasting
Train store-by-SKU forecasts and track which model version produced each order.
ML and GenAI lifecycle on the lakehouseReal-time inventory
Keep stock positions current from POS and warehouse events so online orders do not oversell.
Supplier collaboration
Share sell-through and stock tables with suppliers instead of sending reports.
Open data sharingOne definition of margin
Define revenue, margin and sell-through once for BI, notebooks and agents.
Semantic layer with Spark metric viewsIn-session recommendations
Update product recommendations while the shopper is still browsing.
Real-time streaming with Spark Real-Time ModeClickstream to sessions
Sessionize web and app events with watermarks and land them as tables for funnel analysis.
Use cases
Retail and e-commerce use cases and the architecture for each
Demand forecasting
Train store-by-SKU forecasts and track which model version produced each order.
ML and GenAI lifecycle on the lakehouseReal-time inventory
Keep stock positions current from POS and warehouse events so online orders do not oversell.
Streaming medallionSupplier collaboration
Share sell-through and stock tables with suppliers instead of sending reports.
Open data sharingOne definition of margin
Define revenue, margin and sell-through once for BI, notebooks and agents.
Semantic layer with Spark metric viewsIn-session recommendations
Update product recommendations while the shopper is still browsing.
Real-time streaming with Spark Real-Time ModeClickstream to sessions
Sessionize web and app events with watermarks and land them as tables for funnel analysis.
Streaming medallionSource systems
| System | How data arrives |
|---|---|
| Point-of-sale systems | Streaming baskets, end-of-day batch |
| Web and app clickstream | Streaming events |
| Inventory and warehouse management | CDC |
| Supplier EDI | Batch X12 or EDIFACT documents |
| Loyalty and CRM | Batch |
Data formats and standards
| Format | Standards body | Carries |
|---|---|---|
| GS1 EPCIS | GS1 | Supply chain visibility events |
| GTIN | GS1 | Global trade item numbers that key the product master |
| ANSI X12 (850, 856, 810) | X12 | Purchase orders, ship notices and invoices |
| UN/EDIFACT | UNECE | International EDI messages |
| CloudEvents | CNCF | Common envelope for clickstream and order events |
Bronze, silver and gold in retail and e-commerce terms
Bronze
Raw baskets, EDI documents and stock snapshots
Silver
Sales, inventory and orders keyed by GTIN and store
Gold
Forecasts, replenishment orders and customer segments
Answers
Frequently asked questions
- What is an open source data architecture for retail and e-commerce?
- Retailers and online stores bring point-of-sale, clickstream, inventory, supply chain and loyalty data together for demand forecasting, replenishment, personalization and fraud. The open architectures that fit its main use cases are ML and GenAI lifecycle on the lakehouse, Streaming medallion, Open data sharing, Semantic layer with Spark metric views, Real-time streaming with Spark Real-Time Mode.
- Which data formats matter for retail and e-commerce data engineering?
- GS1 EPCIS (GS1): Supply chain visibility events; GTIN (GS1): Global trade item numbers that key the product master; ANSI X12 (850, 856, 810) (X12): Purchase orders, ship notices and invoices; UN/EDIFACT (UNECE): International EDI messages; CloudEvents (CNCF): Common envelope for clickstream and order events.
- What goes in the bronze, silver and gold layers for retail and e-commerce?
- Bronze: Raw baskets, EDI documents and stock snapshots. Silver: Sales, inventory and orders keyed by GTIN and store. Gold: Forecasts, replenishment orders and customer segments.
