Multi-brand backend
Lalalab does not serve just one brand: the same platform runs other brands, including Fnac Photo. Bruno was responsible for the backend side of this move to multi-brand (the pure infrastructure work was led by someone else; he worked on the topic in parallel with the CTO).
Making the code "brand-aware"
A large part of the work consisted of paying down technical debt so that the whole stack and all the code know the brand, on every call and anywhere in the application. The goal: pods able to serve several brands at once, as long as they are given the right context.
- From 2022, the Fnac-specific integrations: Fnac SSO login, member ID, Fnac pickup points, per-brand storage.
- In 2026, brand context becomes native: the gateway injects the brand (
brandId) into the context of every call, it propagates from one microservice to the next, and each node carries its brand's prefix.
Brand-based routing rolled out in two phases
Routing of calls between microservices (a Moleculer strategy) filters nodes by brand. To avoid breaking anything in production, Bruno rolled it out in two phases:
- Phase 1: wait until 100% of production nodes carry their brand prefix, without filtering yet.
- Phase 2: switch the filter on. If a call arrives without a brand, or no node of that brand is available, it falls back to the full list rather than failing, and this is traced in Datadog so each case can be fixed.
A deliberate trade-off: this fallback is only safe as long as the NATS clusters stay isolated per brand — this is documented in the code, and must be revisited before any merging of the networks.