UMAR SAYYAD
Microservices
Inspire Brands Multi-Brand Platform
Scaled a unified loyalty and ordering platform across 6 restaurant brands and 33,000+ locations.
Inspire Brands needed a single digital platform to power loyalty, rewards, and online ordering across Arby's, Baskin-Robbins, Buffalo Wild Wings, Dunkin', Jimmy John's, and SONIC. As Lead Engineer, I drove the React/Next.js frontend architecture, component library, and CI/CD standards that let six brands ship independently from a shared codebase.
Full stack
- React
- Next.js
- TypeScript
- JavaScript
- Redux
- Contentful
- Auth0
- Cloudflare
- GitLab
- NewRelic
- Firebase
- Google Cloud
- Azure Key Vault
- Storybook
- Jest
Architecture at a glance
Hover a component to trace what it connects to. Click one to jump to the layer it belongs to.
10 components · 10 connections · drag to pan, pinch or use the controls to zoom
Problem Space
Problem Space
- Six restaurant brands — Arby's, Baskin-Robbins, Buffalo Wild Wings, Dunkin', Jimmy John's, and SONIC — each had independent web experiences with separate codebases, separate teams, and no shared infrastructure.
- Feature velocity was capped by duplication: every loyalty feature, every ordering flow, every promotion engine was built six times.
- Brand consistency suffered — the same rewards program looked and behaved differently across brands, confusing customers who frequented multiple Inspire properties.
- The constraint was brand identity: a shared platform could not make Buffalo Wild Wings feel like Dunkin'. Each brand needed pixel-perfect control over look and feel while sharing business logic.
Inspire Brands operates more than 33,000 restaurants across six major brands. Each brand had its own digital team, its own codebase, and its own deployment pipeline. The loyalty program that worked at Dunkin' was re-implemented from scratch at Arby's. The online ordering flow at SONIC shared no code with Jimmy John's.
The duplication was expensive in every dimension — engineering hours, QA cycles, deployment risk, and time-to-market. A new loyalty feature took six sprints to roll out across all brands instead of one. Bug fixes were applied inconsistently. The mobile and web experiences within a single brand often diverged.
The harder constraint was brand identity. Inspire's brands are fiercely distinct — Buffalo Wild Wings customers and Baskin-Robbins customers have different expectations, different visual languages, and different interaction patterns. A unified platform that made every brand feel generic would fail faster than no platform at all.
Architecture
Architecture
- Microservices with a shared frontend shell: a React/Next.js application with brand-specific theming via design tokens, shared business logic modules, and per-brand feature flags.
- The key decision was design tokens over component forks — brands controlled colors, typography, spacing, and imagery through configuration, not code.
- A monorepo with per-brand apps was rejected because it would have reintroduced the coordination overhead the platform was supposed to eliminate.
The architecture was a shared React/Next.js frontend consuming a microservices backend via REST and GraphQL APIs. The frontend was a single codebase that rendered brand-specific experiences through a theming layer: design tokens defined every visual property (colors, fonts, spacing, border radii, imagery), and the application read the active brand's token set at runtime.
Shared business logic — loyalty point calculations, ordering workflows, promotion eligibility — lived in framework-agnostic TypeScript modules. Brand-specific behavior was controlled by feature flags and configuration, not code branches. A feature could be enabled for Dunkin' and disabled for Arby's without touching a line of code.
Next.js provided server-side rendering for SEO-critical pages (menus, store locators) and static generation for marketing content. Contentful served as the headless CMS, giving brand marketing teams self-serve control over promotions, hero images, and landing pages without engineering involvement.
Tech at this layer
- React
- Next.js
- TypeScript
- Redux
- Contentful
Infrastructure
Infrastructure
- Cloudflare for CDN, edge caching, and DDoS protection across all six brand domains.
- GitLab CI/CD with automated quality gates — linting, unit tests, accessibility checks, and performance budgets enforced on every merge request.
- Google Cloud and Firebase for backend services, analytics, and remote configuration.
- The reliability lever: Cloudflare edge caching reduced origin traffic by 70%, keeping menu pages and store locators fast even during Super Bowl traffic spikes.
The platform ran on Google Cloud with Firebase for analytics and remote configuration. Cloudflare sat in front of every brand domain, providing CDN delivery, edge caching, and DDoS protection. During high-traffic events — Super Bowl for Buffalo Wild Wings, National Donut Day for Dunkin' — Cloudflare's edge cache absorbed the spike without scaling the origin.
CI/CD was managed through GitLab. Every merge request triggered a pipeline that ran ESLint, TypeScript compilation, Jest unit tests, Storybook visual regression, and a Lighthouse performance budget check. If any brand's bundle exceeded its size budget or its Lighthouse score dropped below the threshold, the pipeline blocked the merge.
Auth0 handled customer identity across all brands. A single authentication system let customers log in once and access loyalty accounts across brands — a cross-brand SSO that was a strategic business goal, not just a technical convenience.
Tech at this layer
- Cloudflare
- GitLab
- Google Cloud
- Firebase
- Auth0
- Azure Key Vault
- NewRelic
Data Layer
Data Layer
- Contentful as the headless CMS: brand marketing teams managed promotions, menus, and landing pages without engineering tickets.
- Design tokens stored as JSON configuration per brand, loaded at build time for SSR pages and at runtime for dynamic content.
- Firebase Remote Config for feature flags — enabling per-brand, per-region, and per-user feature rollouts.
- What was deliberately not cached: loyalty point balances and order status — customers checking their rewards need real-time accuracy.
The data layer split cleanly between content and application state. Contentful held marketing content — promotions, hero images, menu items, store information — structured as brand-specific content types. Marketing teams published directly; engineers were out of the loop for content changes.
Design tokens were the other data layer. Each brand had a JSON token file defining its complete visual identity. At build time, Next.js static generation baked the tokens into SSR pages. At runtime, the application loaded the active brand's tokens for dynamic content. Changing a brand's primary color was a token update, not a code change.
Firebase Remote Config controlled feature flags at multiple dimensions: by brand, by region, by user segment, and by percentage rollout. A new loyalty feature could launch to 10% of Dunkin' customers in the Northeast before rolling out nationally. Loyalty balances and active order status were never cached — customers checking their points or tracking their delivery expected real-time accuracy.
Tech at this layer
- Contentful
- Firebase
- TypeScript
Services
Services
- The loyalty service: points accrual, redemption, and tier management shared across all brands with brand-specific earning rates and reward catalogs.
- The ordering service: menu rendering, cart management, payment processing, and order tracking — shared flow with brand-specific menus and fulfillment logic.
- The content delivery service: Contentful webhook-driven cache invalidation ensuring marketing updates appeared within minutes.
- The hardest piece was the theming engine — resolving design tokens, feature flags, and brand configuration into a consistent render without runtime jank.
The backend was a set of microservices owned by different teams. The loyalty service managed points, tiers, and rewards across all brands — the business logic was shared, but earning rates, reward catalogs, and tier thresholds were brand-configurable. The ordering service handled the full purchase flow: menu rendering, cart state, payment, and order tracking.
On the frontend, the hardest engineering challenge was the theming engine. Each page render required resolving the brand's design tokens, the user's feature flag state, and the brand's configuration into a consistent component tree. Any mismatch — a token referencing a color that didn't exist in the brand's palette, a feature flag enabling a component that wasn't themed — would produce a visual glitch. We built a validation step into the build pipeline that rendered every component in every brand's theme and flagged mismatches before they reached production.
Contentful webhooks triggered cache invalidation on the CDN when marketing content changed. A promotion published in Contentful appeared on the brand's site within minutes, without a code deploy.
Tech at this layer
- React
- Next.js
- TypeScript
- Contentful
- Redux
Interface
Interface
- A Storybook-driven component library with every component rendered in all six brand themes — designers could see how a loyalty card looked across all brands simultaneously.
- The flow: browse menu → add to cart → checkout → track order, with loyalty integration at every step (earn points, redeem rewards, apply offers).
- Core Web Vitals were enforced per brand: LCP under 2.5s, CLS under 0.1, FID under 100ms — monitored via NewRelic and Lighthouse CI.
The component library was built in Storybook with a brand switcher. Every component — buttons, cards, modals, forms, navigation — had stories rendered in all six brand themes side by side. Designers reviewed components across brands in a single view; developers saw immediately when a component broke in a specific theme.
The primary user flow was ordering: browse the menu (SSR-rendered for speed and SEO), add items to a cart, apply loyalty rewards or promotions, check out with saved payment methods, and track the order in real-time. Loyalty was integrated throughout — users saw their points balance in the header, earned points on every purchase, and could redeem rewards during checkout.
Core Web Vitals were a hard gate. Each brand had performance budgets enforced in CI: Largest Contentful Paint under 2.5 seconds, Cumulative Layout Shift under 0.1, First Input Delay under 100 milliseconds. NewRelic monitored production performance continuously. If a brand's LCP regressed past the threshold, an alert fired and the responsible team had 24 hours to fix or revert.
Tech at this layer
- React
- Next.js
- JavaScript
- Storybook
- Jest
- TypeScript
Outcome
Outcome
- Feature deployment time dropped from 6 sprints (one per brand) to 1 sprint with per-brand feature flags — an 83% reduction in time-to-market.
- The shared component library eliminated an estimated 40% of frontend code duplication across brands.
- Cross-brand SSO via Auth0 unlocked a strategic business goal: customers with accounts at multiple Inspire brands could manage all loyalty programs from a single login.
- The lesson: multi-brand platforms succeed on tokens, not on components — brands need to own their visual identity without owning their infrastructure.
The platform proved that six brands could ship from one codebase without losing their identity. Feature deployment dropped from six separate implementations to one, with brand-specific rollout controlled by configuration. Marketing teams published content directly through Contentful without filing engineering tickets. The component library gave designers cross-brand visibility they'd never had.
The cross-brand SSO was the most strategically impactful outcome. A customer who ate at Arby's and ordered from Dunkin' could manage both loyalty accounts from a single login. This wasn't just a technical convenience — it was a business strategy to increase cross-brand engagement within the Inspire portfolio.
One thing I would do differently: I would have invested in a shared analytics taxonomy from the start. Each brand had its own event naming conventions, its own funnel definitions, and its own dashboards. When leadership asked "what's the cross-brand loyalty engagement rate?" we couldn't answer without a month of data reconciliation. A unified analytics schema — defined before the first event was instrumented — would have made cross-brand insights available from day one.
Tech at this layer
- React
- Next.js
- Auth0
- Contentful