Skip to content
All projects

Migrating a store to a headless commerce architecture

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
The monolith makes quick front-end changes and launching new countries difficult.
Approach
An incremental migration: a new headless front end takes over page types one by one (product page, listing, cart), and the commerce backend is replaced last.
Goal
Conversion on the key path: an increase over the baseline, target set after the baseline measurement; p95 response time of key transactions: within the SLA, e.g. ≤ 2 s.

Client context

E-commerce in Poland is mature and competitive; the advantage goes to whoever has page speed, accessibility, search relevance, and reliable payments. The client is a fashion brand with its own online store on a monolithic platform, selling in several countries.

Challenge

The monolith makes quick front-end changes and launching new countries difficult. Mobile page performance is poor, which hurts conversion.

Requirements and constraints

  • The Omnibus Directive and the Polish act on price information require showing the lowest price from the 30 days before a discount, and disclosing how reviews are verified and whether the seller is a business. The pricing engine and the catalog must store price history. (source)
  • The European Accessibility Act (Directive 2019/882) and the Polish act on ensuring compliance with accessibility requirements have covered, since June 28, 2025, consumer banking, e-commerce, and communications services, among others. Digital channels must meet accessibility requirements, and failing to do so risks fines and inspections by the market surveillance authority. (source)
  • GDPR, that is Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, and processing agreements, and for high-risk processing also a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • PCI DSS v4.0 applies to anyone who processes payment card data. Version 4.0 tightens the requirements for multi-factor authentication, scripts on payment pages, and segmentation penetration tests. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every deliverable shipped with documentation that the client's team can take over.

Approach and architecture

The first weeks are discovery: mapping the user journey, prioritization (MoSCoW), and a clickable prototype tested with real users. Then we develop in Scrum with a demo every two weeks, continuous integration, and a deployment to the test environment after every merge. We record architectural decisions in an ADR register, so that years later it is clear why something was done one way and not another.

An incremental migration: a new headless front end takes over page types one by one (product page, listing, cart), and the commerce backend is replaced last. Every step is measured with Core Web Vitals and conversion.

Key elements of the solution:

  • A headless front end (Next.js) with server-side rendering
  • A commerce platform accessed through APIs
  • A CMS for content
  • Incremental migration, one page type at a time

Team and roles

RoleCountResponsibility
Project manager1plan, budget, risks, communication with the steering committee
Frontend developer (React/Angular)3user interface, accessibility, component tests
Backend developer (Java/Kotlin)2domain services, API, unit tests
UX/UI designer1research, prototypes, usability and accessibility testing
Test analyst (ISTQB)1designing and executing test cases, reporting defects
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Discovery and prototype1–5journey map, backlog, prototype
2. Architecture and foundations6–10ADR, skeleton, CI/CD
3. Iterative development11–24increments every sprint, demos
4. Stabilization and acceptance testing25–29UAT, security and accessibility tests
5. Deployment and post-launch support30–32go-live, hypercare, handover

Technology stack

Next.js, TypeScript, commercetools or another API-first platform, a headless CMS, Vercel or Kubernetes.

Risks and how we mitigate them

RiskHow we mitigate it
Scope creep during the projecta backlog with MoSCoW priorities, every change goes through the committee with an estimate of its impact on the schedule
Service downtime during changesblue-green or canary deployments, feature flags, maintenance windows agreed with the business
Non-compliance with accessibility requirementsscreen reader testing in every sprint, components accessible by design, an expert audit before release

Measurable goals and KPIs

The values below are targets that we agree with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Conversion on the key pathan increase over the baseline, target set after the baseline measurementproduct analytics, A/B tests
p95 response time of key transactionswithin the SLA, e.g. ≤ 2 sAPM and test reports
WCAG 2.1 AA compliance0 critical errors in the auditexpert and automated audit

Lessons learned and good practices

Migrating one page type at a time lets you measure the effect of each step. Core Web Vitals are a good language for talking to marketing about technology. Feature flags separate deployment from launch and radically reduce release stress.

Why B2B.net

We combine two models: we supply individual specialists and whole teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the outcome, we work at a fixed price per scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies, and experience with ISO 27001, DORA, and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.

Next step

If you recognize these problems in your organization, let's start with a short diagnosis: one workshop with your team and a written recommendation. Write to us: office@b2bnetwork.pl.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: E-commerce