
📣 Marketing, CRM & Support · C4 Architecture · Pro
A retail loyalty programme: points earned on every purchase in store or online, tiers, rewards redemption and partner offers.
C4 Architecture diagrams are part of Pro. Anyone can view this one; generating and editing it needs Pro.
Drawing diagram…
Loyalty platform: members use a mobile app. Store POS and the e-commerce site send purchases to a points engine that applies earning rules and tier multipliers and writes to a points ledger. A tier service upgrades or downgrades members. A rewards catalogue service handles redemption, with a fraud check. Partner brands offer rewards through a partner API.
C4Container
title Loyalty Programme
Person(member, "Member", "Earns and redeems points")
System_Boundary(lp, "Loyalty Platform") {
Container(app, "Member App", "React Native", "Points, tiers, rewards")
Container(pe, "Points Engine", "Java", "Earning rules and multipliers")
Container(tier, "Tier Service", "Java", "Silver, Gold, Platinum")
Container(rw, "Rewards Service", "Node.js", "Catalogue and redemption")
Container(fraud, "Fraud Check", "Python", "Unusual redemption patterns")
ContainerDb(led, "Points Ledger", "PostgreSQL", "Every earn and burn")
}
System_Ext(pos, "Store POS", "In-store purchases")
System_Ext(ecom, "E-commerce Site", "Online purchases")
System_Ext(partner, "Partner Brands", "Partner rewards")
Rel(member, app, "Uses")
Rel(pos, pe, "Purchase events")
Rel(ecom, pe, "Purchase events")
Rel(pe, led, "Writes points")
Rel(tier, led, "Reads totals")
Rel(app, rw, "Redeems")
Rel(rw, fraud, "Checks")
Rel(rw, led, "Spends points")
Rel(rw, partner, "Partner rewards")A customer data platform that joins a customer's activity from website, app, store and support into one profile, and sends audiences to marketing tools.
The states of a customer support ticket, from creation through assignment, waiting on the customer, resolution and reopening.
How an incoming support call is routed: caller recognition, IVR menu, self-service options and routing to the right skilled agent queue.
How a marketing email campaign is sent: audience built, consent checked, emails personalised and sent in batches, and opens and clicks tracked.
Tables for a B2B sales CRM: accounts, contacts, leads, opportunities moving through stages, activities and quotes.
How visitors flow from marketing channels to sign-ups, trials and paying customers in a month, to see which channel brings buyers, not just traffic.