Live commerce combines instant purchasing of a featured product and audience participation.
This talk explores the need for real-time data streaming with Apache Kafka between applications to enable live commerce across online stores and brick & mortar stores across regions, countries, and continents in any retail business.
The discussion covers several building blocks of a live commerce enterprise architecture, including transactional data processing, omnichannel, natural language processing, augmented reality, edge computing, and more.
1. The Rise of Data in Motion in the Retail Industry
Use Cases, Architectures and Real-World Examples powered by Data Streaming with Apache Kafka
Kai Waehner
Field CTO
kai.waehner@confluent.io
linkedin.com/in/kaiwaehner
confluent.io
kai-waehner.de
@KaiWaehner
2. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
The world is changing.
3. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Stores become Software
4. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Payments become Software
5. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Delivery become Software
6. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Live Commerce with Social Interaction
7. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
The New Business Reality
Technology is the business
Innovation required for survival
Yesterday’s data = failure
Modern, real-time data
infrastructure is required.
Technology was
a support function
Innovation required for
growth
“Good enough” to run on
yesterday’s data
8. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
This transformation is
happening everywhere
9. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Retail
10. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Software is Eating Retail
10
https://www.cbinsights.com/reports/CB-Insights_Retail-Tech-100-Webinar.pdf
11. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
What enables this
transformation?
12. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Real-time Data beats Slow Data.
Logistics
Real-time sensor
diagnostics
Delivery planning
ETA updates
Payment
Fraud detection
Risk systems
Mobile applications /
customer experience
Retail
Real-time inventory
Real-time POS
reporting
Personalization
Sales
Real-time
recommendations
Personalized
coupon feed
Pay by walking out
13. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
This is a fundamental paradigm shift...
13
Infrastructure
as code
Data as continuous
streams of events
Future of the
datacenter
Future of data
Cloud
Data
Streaming
14. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
What is Data Streaming?
15. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
‘Event’ is what happens in your business
Transportation
TPMS sensor in Carol’s car detected low tire-pressure at 5:11am.
Kafka
Payment
Alice sent $250 to Bob on Friday at 7:34pm.
Kafka
Retail
Sabine’s order of a Fujifilm camera was shipped at 9:10am.
Kafka
16. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Data in Motion in the Retail Industry
Your Business as Streams of Events, powered by Kafka
Inventory
Shipping
Reporting
Orders
Frontend
Retail Example
17. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
17
Increase Revenue
→ Customer Experience, Loyalty
Decrease Costs
→ Increase Operational Efficiency
Mitigate Risks
→ Regulatory Compliance
Reporting & Analytics
Stock inventory management
Legacy IT Replacement
(e.g. Middleware replacement)
Cyber Security
(incl. SIEM)
Fraud Prevention
(Anomalous credit card transactions)
Legacy IT Modernization
(e.g. Mainframe off-load / augmentation)
Example Retail Solutions for Event Streaming
Buyer journey - personalized offers
(Contextualized Next Best Action /
Targeted Offers)
Real-time Inventory Management
(across web, store, …)
Customer 360
(Call Center - Know Your Customer - KYC)
RT mobile applications
(clothing, food and beverage ordering, …)
Migration to the Cloud
(Hybrid on-prem / Cloud. Also Hybrid
Public Cloud vendors)
Microservices Architecture
Data Infrastructure layer
Business Application layer - the use cases
Data Pipelines Messaging
Microservice/
Event Sourcing Stream Processing Data Integration Streaming ETL Log Aggregation
18. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Apache Kafka is the de facto standard for Data in Motion
MES
ERP
Sensors
Mobile
Customer 360
Real-time
Alerting System
Data
warehouse
Producers
Consumers
Streams and storage of real time events
Stream
processing
apps
Connectors
Connectors
Stream
processing
apps
Supplier
Alert
Forecast
Inventory Customer
Order
18
19. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Kafka is a cloud-native streaming middleware!
à More than just data ingestion or message queue
kai-waehner.de | @KaiWaehner | Building a Cloud-native Data Warehouse with Data Streaming
DWH
APP
STREAM
PROCESSING
CONNECTORS
ksqlDB
KStreams
APP
Streaming ETL
Data Processing
Real-time Analytics
Stateless and Stateful
Business Applications
Fully-managed
Pipelines
Connectivity to
Data Infrastructure,
SaaS, AI/ML
Data Governance
Filtering and Routing
Change Data Capture
Built-in Scale and Fault Tolerance
Oracle
DB
ORACLE CDC
SOURCE
PREMIUM
CONNECTOR
Real-time Data Sharing
across DCs and Multi-Cloud
20. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Kafka Makes Your Business Real-time.
CREATE STREAM payments (user VARCHAR, amount INT)
WITH (kafka_topic = 'all_payments', value_format = 'avro');
CREDIT
SERVICE
ksqlDB
CREATE TABLE credit_scores AS
SELECT user, updateScore(p.amount) AS credit_score
FROM payments AS p
GROUP BY user
EMIT CHANGES;
RISK
SERVICE
ksqlDB
21. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Event Topics Storage Partitions
Events / sec Kafka Servers
10,000,000 25,000 1,000,000 1,500
Event Topics Storage Partitions
Events / sec Kafka Servers
250,000 500 25,000 25
Event Topics Storage Partitions
Events / sec Kafka Servers
100 5 300 3
Kafka Scales with Your Business.
22. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Databases
Messaging
ETL / Data Integration
Data Warehouse
Why can’t I do this with my
existing data platforms?
23. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Only Event Streaming Has All 4 Requirements
Messaging
Databases
Event Streaming
Data Warehouse
BUILT FOR REAL-
TIME EVENTS
SCALABLE
FOR ALL DATA
PERSISTENT &
DURABLE
CAPABLE OF
ENRICHMENT
23
Good for transactional applications
Good for ultra low-latency, fire-and-forget use cases
Good for batch data integration
Good for historical analytics and reporting
Platform for Event-Driven Transformation
(Scalable Messaging + Real-Time Data Integration + Stream Processing)
ETL/Data Integration
24. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Real-Time Data as Foundation
for Live Commerce
25. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Customer 360 and Real-Time Context-Driven Events
http://hyper-reality.co/
• CRM integration
• Real time product inventory
• Predictive recommendations
• Geo-location
• Payment integration
• …
26. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Albertsons – Real-time Data Hub
26
TODO LINK to public Confluent webinar
Second largest American grocery company with 2200+ stores and 290,000+ employees
27. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Albertsons – Real-time Data Hub
27
TODO LINK to public Confluent webinar
Second largest American grocery company with 2200+ stores and 290,000+ employees
28. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Albertsons – Real-time Data Hub
28
TODO LINK to public Confluent webinar
Second largest American grocery company with 2200+ stores and 290,000+ employees
29. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Nordstrom Analytical Platform (NAP)
29
American luxury department store chain
50+% of revenue online
A singular event can be used for
analytical, functional, operational, and
model building purposes
https://www.confluent.io/events/kafka-summit-americas-2021/nordstroms-event-sourced-architecture-and-kafka-as-a-service/
30. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Context-specific Customer 360
30
Electrical retailer
Hyper-personalized online retail experience,
turning each customer visit into a one-on-one
marketing opportunity
Correlation of historical customer data with
real-time digital signals
Maximize customer satisfaction and revenue
growth, increased customer conversions
https://www.confluent.io/customers/ao/
31. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Live Commerce with
Social Interactions
32. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Live commerce with real-time data correlation
Online and offline shopping via social commerce
Including integration of CRM, loyalty, inventory, chatbots, location-based services, augmented reality, etc.
32
33. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Live Commerce with Data in Motion
Your Business as Streams of Events, powered by Kafka
Influencer
Show
Payment
Shipping
Sales
Platform
Social
Platform
34. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Live Commerce with Data in Motion
Interact with the customer via social commerce.
Recommend products that need to be sold.
Provide context-specific pricing.
All automated. In real-time. At scale.
Data Consolidation
Streaming ETL
(Kafka Connect + Kafka Streams)
Mobile App
(Swift on iOS)
(4) Receive
product recommendation
and context-specific price
Order Fulfillment &
Payment Service
Buy Now Pay Later (BNPL)
(C++)
Chatbot
External API
(REST API)
(1) Click on
shoes
(5) Order
product
(2) Q&A with chatbot
(6) Fulfill order
CRM / Loyalty
Salesforce
(Kafka Connect)
Source: channelize.io
Inventory
Live monitoring
(ksqlDB)
(3) Context-specific
pricing engine
35. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Challenge: Build a conversational chatbot service that
incorporates complex technologies such as fulfillment,
natural-language understanding, and real-time analytics
Solution: Use Confluent to build a fast, super-scalable event-
driven architecture that could handle immense traffic spikes
and also provide other guarantees around delivery semantics
Results:
● Near-zero downtime even during huge traffic spikes
● Rapid acceleration of new-skill onboarding
● Doubling of NPS rating
Virtual Agent Platform:
(Marc Silbey, VP of Product at Expedia)
36. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Augmented reality for enhanced online shopping
Scan, inform, buy. Whatever you see. Wherever you see it.
Streaming ETL
(Kafka Connect + Kafka Streams)
Mobile App
(Swift on iOS)
(3) Receive
enhanced
picture
Order Service
Buy product from favorite
vendor
(ksqlDB)
Picture
Enhancement
Show digital version with
product details
(external SaaS)
(1) Send
picture
(4) Order
product
(2) Enhance
picture
(5) Process
Order
37. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Augmented reality for enhanced online shopping
Live demo (Kudos to Carsten Muetzlitz who has built the demo!)
https://www.kai-waehner.de/blog/2021/02/23/apache-kafka-augmented-reality-ar-vr-retail-demo-arkit-unity-unreal-engine/
38. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Stitch Fix
Online personal styling service
Recommendation algorithms to personalize clothing items
based on size, budget and style
Data Scientists consume data from Kafka for transformation
of client data into features, model predictions, allocation of
A/B tests, etc.
38
39. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Connect
REST API
Connect
logs-customer-nft-trade
suspicious-transaction
fraud-alert
Streams
Data
Correlation
Fraud
Detection
Crypto Payment and NFT Integration
Python
Fraud
Alerting
Streams
40. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Architectures for
Apache Kafka in Retail
41. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Walmart Cloud Native Platform (WCNP)
41
42. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Global Event Streaming
Streaming Replication between Kafka Clusters
Bridge to Databases, Data Lakes, Apps, APIs, SaaS
Aggregate Small Footprint
Edge Deployments with
Replication (Aggregation)
Simplify Disaster Recovery
Operations with
Multi-Region Clusters
for RPO=0 and RTO~0
Stream Data Globally with
Replication and Cluster Linking
42
43. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Challenge:
- Needed to share data between web applications in
Google Cloud with Snowflake and other analytics tools
in Azure in real time
- Needed a single-region, multi-cloud disaster recovery
strategy
Solution:
Built a multi-cloud data architecture using:
- Confluent Cloud in GCP
- Confluent Cloud in Azure
- Fully managed connectors
- Cluster Linking
- ksqlDB (pre-production)
Results: In three months went from having no DR
strategy to a production multi-cloud DR capability based
on a real-time data architecture that also supported high
performance regional applications.
flowers.com
Multi-Cloud Disaster Recovery
44. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
‘My Porsche’
A digital service platform for customers, fans, and enthusiasts
44
https://medium.com/porschedev
45. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Omnichannel Retail
Time
P
C3 C2
C1
Personalized Sales
Right now
Location-based
Customer Action
Customer 360
(Website, Mobile App, On Site in Store, In-Car)
Online Store
10 and 8 days ago
Context-specific
Marketing Campaign
90 and 60 days ago
46. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
AWS Cloud Outage hit Disney World Visitors…
https://www.cnet.com/tech/services-and-software/disney-parks-were-already-facing-heat-from-fans-then-an-aws-outage-came-along/
47. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
CRM
3rd party
payment
provider
Context-specific
real-time upsell
Customer data
Payment processing and
fraud detection as a service
Manager
Get report
API
Customer Customer
Customer
data
Train
schedule
Payment
data
Loyalty
information
Streams of real time events
Customer
data
Train
schedule
Payment
data
Loyalty
information
Streams of real time events
Customer
data
Train
schedule
Payment
data
Loyalty
information
Streams of real time events
Hybrid Retail Architecture
48. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Point of Sale
(POS) Loyalty
System
Local Inventory
Management
Payment Discount
Customer
data
Train
schedule
Payment
data
Loyalty
information
Streams of real time events
Global Inventory
Management
Event Streaming at the Edge
in the Smart Retail Store
Item Availability
49. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Disconnected Edge
Time
P
C3 C2
C1
Context-specific
Advertisement
Real-time
(Milliseconds)
Location-based
Customer Action
Always on (even “offline”)
Replayability
Reduced traffic cost
Better latency
Payment Processing
Near Real-time
(Seconds)
Replication to Cloud
Batch
(Depending on Network Bandwidth)
50. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Ship-Shore Highway – Swimming Retail Stores
https://www.confluent.io/kafka-summit-lon19/seamless-guest-experience-with-kafka-streams/
51. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Event Streaming Is The Future Of Data
51
Infrastructure
as code
Data as continuous
streams of events
Future of the
datacenter
Future of data
Cloud
Data
Streaming
52. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Why Confluent?
53. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
The Rise of Data in Motion
2010
Apache Kafka
created at LinkedIn by
Confluent founders
2014
2020
80%
Fortune 100
Companies
trust and use
Apache Kafka
53
54. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
I N V E S T M E N T & T I M E
V
A
L
U
E
3
4
5
1
2
Event Streaming Maturity Model
Initial Awareness /
Pilot (1 Kafka
Cluster)
Start to Build
Pipeline / Deliver 1
New Outcome
(1 Kafka Cluster)
Mission-Critical
Deployment
(Stretched, Hybrid,
Multi-Region)
Build Contextual
Event-Driven Apps
(Stretched, Hybrid,
Multi-Region)
Central Nervous
System
(Global Kafka)
Product, Support, Training, Partners, Technical Account Management...
54
55. Live Commerce in the Retail Industry with Data Streaming – @KaiWaehner - www.kai-waehner.de
Car Engine Car Self-driving Car
Confluent completes Apache Kafka. Cloud-native. Everywhere.