Incubating a culture of innovation & creativity
Uncover the transformative potential of digital and mobile solutions for your industry
Leroy Merlin partnered with us to design and develop the Leroy Merlin Shopping Application (LMSA) — a cloud-native, microservices-driven ecommerce platform designed to handle peak retail loads and provide a secure, real-time shopping experience.
The application leverages AWS-managed services and an event-driven synchronization framework (SyncFactory) to maintain product, order, and stock data in real time across web and mobile applications. With its resilient multi-AZ deployment, a hybrid data strategy (Aurora PostgreSQL, MongoDB, Redis, OpenSearch), and embedded security/compliance controls, LMSA enables:
From the outset, security, resilience, and cost governance were foundational requirements. The application demonstrates enterprise-grade reliability (99.99% SLA), while embedding defense-in-depth security measures spanning identity, infrastructure, compliance, and auditing.
By building on AWS services such as ECS Fargate, Aurora PostgreSQL, Redis, OpenSearch, CloudFront, WAF, GuardDuty, Config, KMS, and CloudWatch, LMSA delivers production-grade resiliency and scalability — setting a new benchmark for largescale e-commerce adoption in retail environments.
LMSA addresses Leroy Merlin’s need to deliver a next-generation digital shopping platform with the following goals:
LMSA is architected as a modular, event-driven, microservices platform that leverages AWS-managed services with security and operational resilience baked in. The solution emphasizes real-time updates, fault isolation, observability, and compliance automation, ensuring a smooth end-user experience and operational scalability.
The Leroy Merlin Shopping Application (LMSA) is implemented using a containerized, microservices-based design hosted on AWS ECS Fargate, with a layered data and sync model ensuring real-time accuracy across products, stock, and orders.
1. Ingestion Layer – SyncFactory Middleware
a. Webhook Listeners capture critical updates (stock, orders, price changes) from external ERP and payment gateways, instantly pushing into queues.
b. Polling Jobs (Agenda-based) retrieve bulk catalog, product, and category updates on configurable intervals.
c. Both ingestion paths feed into Amazon SQS Queues (FIFO with DLQs) to guarantee ordered, deduplicated processing.
2. Processing & Command Layer
a. CQRS pattern separates write operations (inventory updates, order placement, payment confirmations) from read operations (product queries, catalog retrieval).
b. Command Handlers update Aurora PostgreSQL (transactional consistency).
c. Event notifications trigger updates to Redis/OpenSearch for fast reads.
d. Dead-Letter Queues capture failed transactions, retried automatically with exponential backoff.
3. Storage Layer
a. Aurora PostgreSQL (Multi-AZ + RDS Proxy): Handles all critical transactional entities — orders, invoices, registered users. PITR enabled for recovery.
b. Redis (Clustered): In-memory cache layer for session data, stock counts, and popular products. Sub-50ms cart retrieval
c. MongoDB Atlas: Stores unstructured and CMS-driven product metadata (marketing text, FAQs, configurations)
d. Amazon OpenSearch: Optimized for product discovery with real-time indexing → driving search, recommendations, and promotions.
4. API/Orchestration Layer
a. AppBackend (ECS Fargate): REST/GraphQL APIs handling client requests from mobile and web apps. Orchestrates data fetches across SyncFactory, Redis, Aurora, and OpenSearch.
b. Payment Service: Independent service integrating with PayFast, SnapScan, Apple Pay, Samsung Pay. Event-driven confirmations handled asynchronously.
c. CMS/Admin APIs: Provides store managers and super admins with the ability to manage stock, approve refunds, and create promotions — enforced with role-based access control via IAM.
5. Delivery Layer
a. Amazon CloudFront: Delivers static assets globally with low latency.
b. Application Load Balancers (ALB): Route client traffic to the correct ECS microservices.
c. Redis Pub/Sub + OpenSearch Index Updates: Facilitate instant propagation of catalog and stock changes for consistent end-user experience.
6. Observability Layer
a. Prometheus + Grafana Dashboards: Track sync throughput, queue latency, Redis cache hits/misses, database load.
b. Amazon CloudWatch Logs & Metrics: Store structured logs from ECS tasks for troubleshooting.
c. Alerting: SNS integrates with Teams/Slack for critical thresholds (queue backlog >10%, API error rate >2%, Redis replication lag >5s).
Reliability & Recovery Layer
a. Blue/Green deployments managed with Jenkins + Terraform pipelines.
b. Multi-AZ failover for Aurora and Redis ensures resilience.
c. RTO < 30 minutes; RPO < 5 minutes validated in monthly AWS FIS resilience drills.
d. Automated backup restoration procedures validated quarterly.
All user traffic enters LMSA through Amazon CloudFront, secured with AWS WAF managed rules and AWS Shield Standard for DDoS protection. Requests reach an Application Load Balancer (ALB), which distributes them to containerized services running on AWS ECS Fargate.
Product, stock, and pricing updates follow a two-path mechanism:
All updates move through SQS Queues with DLQs for failed messages, guaranteeing at-least-once delivery. SyncFactory writes events into Aurora (transactions) or OpenSearch (search index) while redistributing hot paths to Redis.
This ensures zero data loss, elastic scaling, and a real-time marketplace experience during peak events.
LMSA integrates defense-in-depth security protections across application, infrastructure, and identity layers:
Security is reinforced with CloudTrail logging, Config conformance packs, and automated remediation via SSM Runbooks.
Production outcome: LMSA blocked all detected SQLi/XSS attempts during load tests; maintained “zero downtime” resilience during synthetic DDoS drills.
Production outcome: 100% MFA adoption, reduced admin privileges by >80%, zero credential leak incidents.
Infrastructure Protection
Compliance and Privacy
Outcome: Reduced compliance-report prep time by ~60%
Threat Detection & Response
Outcome: MTTR < 5 minutes; eliminated all high-risk unresolved misconfigs within SLA
Cloud Operations
Controls-as-Code
All preventive, detective, and corrective controls are implemented as code. Terraform modules enforce encryption, VPC network segmentation, IAM baselines, and tagging standards. CI/CD pipelines (Jenkins/GitHub Actions) integrate Trivy + policy-as-code scanners to block noncompliant images/templates. AWS Config + Security Hub continuously detect drift, misconfigurations, and nonconformance, while AWS SSM Automation applies safe remediations with approval workflows for sensitive actions.
Cloud governance for LMSA is implemented to ensure security, compliance, cost efficiency, operational transparency, and resilience — all tailored to the needs of a high-scale digital shopping application.
Compliance and Auditing
Methodology and Process for Compliance and Auditing
We conduct discovery workshops aligned to SOC 2 Security & Availability, mapping LMSA’s in-scope services — ECS Fargate (microservices), SQS FIFO (sync queues), Aurora PostgreSQL, Redis, MongoDB Atlas, OpenSearch, CloudFront/S3 — along with data flows, regional replication policies, and retention requirements.
Outputs are consolidated into a compliance control catalog, which is then translated into infrastructureascode (IaC) guardrails and monitoring policies.
A joint RACI defines responsibilities for:
Audit runbooks are published and the Leroy Merlin ops team is trained on how to gather AWS-native evidence (Config reports, CloudTrail queries, Jenkins CI/CD artifacts, OpenSearch cluster logs) and interpret dashboards (Datadog/Prometheus).
Comprehensive Compliance Management
Audit Frequency and Responsibilities
Enabling Customer Compliance Capabilities
LMSA equips Leroy Merlin’s IT/security teams with self-service compliance evidence pipelines:
Evidence automation integrates with AWS Audit Manager, mapping Config/CloudTrail signals directly to SOC2 readiness criteria. All automation (Terraform guardrails, Config packs, SSM runbooks) is checked into Leroy Merlin’s repos, so internal teams can run audits independently with our advisory support for posture reviews.
Holistic Compliance Approach
Compliance is not siloed but integrated into LMSA’s risk management, incident response, and operational governance.
This model reduces audit prep time by ~60%, automates evidence collection, and makes LMSA continuously audit-ready for internal and external reviews
Service-Specific Features
Each component in the VirtualIntros architecture has been specifically optimized for its role:
Amazon ElastiCache for Redis Cluster
Amazon SQS (Sync Queues)
Amazon Aurora PostgreSQL with RDS Proxy
MongoDB Atlas (CMS + Flexible Metadata)
Amazon OpenSearch Service
Amazon CloudFront and S3
AWS Best Practices Implementation
LMSA demonstrates our commitment to AWS Well-Architected Framework best practices across all five pillars: security, reliability, performance efficiency, cost optimization, and operational excellence.
Monitoring and Observability
LMSA implements robust observability across its microservices and databases using a combination of AWS CloudWatch, Prometheus/Grafana, and Datadog.
Outcome: Real-time diagnostics and proactive detection — ensuring incidents are mitigated before end-user impact.
Operational Excellence
Operations Management
LMSA operations run in a multi-account AWS environment, scoped by workloads (Core Services, Payments, CMS/Admin, Observability).
Observability and Incident Response
Configuration Governance and controls-as-code
Resilience, DR and Cost Governance
Security
Reliability
Performance Efficiency
This layered design enables LMSA to return catalog responses in sub100ms during heavy product search queries.
This ensures LMSA’s infra improves iteratively, supporting scalable growth without cost sprawl.
By leveraging managedservices, LMSA maximizes performance while minimizing operational complexity.
Cost Optimization
Outcome: LMSA delivers predictable operating costs even under scale, avoiding overprovisioning while still meeting 99.99% SLA availability and performance commitments.
Implementation Details
Application Containers and Orchestration
Data Storage and Processing
AI and Personalization Components
Networking and Content Delivery
Customer Engagement
Our collaborative approach to customer engagement ensured that LMSA met all business and technical requirements from Leroy Merlin stakeholders — balancing user experience, scalability, and operational governance.
Design Collaboration
Development and Testing
Deployment and Operations
Technical Validation
Rigorous testing confirmed that LMSA meets all defined performance and scalability objectives for its retail workloads.
Load Testing Results
Search & Personalization Quality Assessment
Resilience Testing
Operational Excellence
LMSA implements comprehensive operational practices to ensure high availability, resilience, and efficient maintainability across its digital shopping platform
Monitoring and Alerting
Scaling and Optimization
Recovery and Resilience
Infrastructure Management
Security Features
LMSA implements robust security controls across all layers of the stack, ensuring payment safety, customer data protection, and compliance with global retail standards:
Data Protection
Access Control
Threat Protection
Compliance and Governance
Resilience and Disaster Recovery
LMSA is built for continuous operation with robust recovery measures, ensuring uninterrupted shopping experiences even during significant disruptions such as regional outages or infrastructure failures:
High Availability Design
Disaster Recovery Strategy
Continuous Testing
Financial Management and Monitoring
LMSA integrates comprehensive financial governance practices to ensure cost-effective scaling for dynamic retail workloads while maintaining predictable unit economics:
Cost Governance and Forecasting
Cost Optimization Implementation
Real-Time Financial Monitoring
Outcome:
This financial governance framework
enables LMSA to
scale predictably with minimal cost sprawl while supporting
growing retail demand. Even at tested loads of
10,000 users with 2,000 concurrent sessions, LMSA
maintained cost-per-transaction predictability, ensuring
profitable operation under heavy retail workloads
The Result
The Leroy Merlin Shopping Application (LMSA) represents a sophisticated implementation of AWS technologies tailored to the challenges of large-scale, real-time retail ecommerce. By leveraging microservices on ECS Fargate, managed data services (Aurora PostgreSQL, Redis, MongoDB Atlas, OpenSearch), and eventdriven sync orchestration (SyncFactory), LMSA delivers a resilient, performant, and costefficient shopping experience across regions.
Key achievements of this implementation include:
This solution demonstrates our capability to design, implement, and operate enterprise-grade, cloud-native retail platforms. LMSA harnesses AWS’s extensive service portfolio to provide exceptional customer experience, resilience, and security — while ensuring cost efficiency and operational transparency for Leroy Merlin’s business stakeholders.
Appendix A — Standard RACI Matrix (VirtualIntros Compliance & Auditing)
Use this baseline with standard roles. R=Responsible, A=Accountable, C=Consulted, I=Informed.
| Control / Activity | Environment | Project Manager | Team Lead | Solution Architect | DevOps Engineer | DevOps Lead | DevOps Manager |
|---|---|---|---|---|---|---|---|
| CloudTrail multi-Region account trail enabled and verified | All | I | I | C | R | C | A |
| AWS Config aggregator + conformance packs management | All | I | I | C | R | C | A |
| S3 log bucket hardening (encryption, versioning, access logging, Object Lock) | Prod | I | I | A | R | C | I |
| KMS CMK management & key rotation policy | Prod | I | I | A | R | C | I |
| Quarterly IAM access reviews (incl. break-glass) | All | I | I | C | C | R | A |
| SCPs/guardrails (AWS Organizations) and account baselines | All | I | I | A | R | C | I |
| CI/CD gates: Terraform plan/apply, Tflint scans, image signing | All | I | C | C | R | A | I |
| Change management (approvals, change calendar, rollback) | All | A | R | C | I | C | I |
| Datadog monitors, dashboards, alert routing (SNS -> Teams) | All | I | C | C | R | A | I |
| Configuration drift detection & remediation (Config + SSM) | All | I | I | C | R | C | A |
| Backup verification & DR testing (RTO/RPO) | Prod | I | C | C | R | A | I |
| Incident response (triage, RCA, corrective actions) | All | I | A | C | R | C | I |
| Vulnerability & misconfig detection in pipeline (Trivy) | All | I | I | C | R | A | I |
| Compliance exceptions (approval, expiry, compensating controls) | All | A | I | C | I | R | C |
| Monthly compliance posture reporting | All | A | I | C | C | R | I |
| Evidence pack assembly for audits | All | A | R | C | C | C | I |