Skip to content
All projects

Migrating an on-premise product to a cloud SaaS model

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
Clients expect a SaaS model, but the product is not prepared for multi-tenancy.
Approach
We choose an isolation model (separate databases per client, a shared application layer), containerize the application and build automatic provisioning of a client environment.
Goal
Deployment frequency: on demand, at least weekly; infrastructure cost per transaction or user: a decrease against the baseline, target set after phase 1.

Client context

B2B software vendors increasingly hear questions about DORA, NIS2 and the Cyber Resilience Act from their regulated clients. They must answer with evidence, not declarations. An ERP software vendor for mid-sized companies, which has so far sold licenses installed at clients' sites.

Challenge

Clients expect a SaaS model, but the product is not prepared for multi-tenancy. Every installation at a client is different, which makes updates harder.

Requirements and constraints

  • GDPR, that is Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, data processing agreements and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • ISO/IEC 27001:2022 requires a documented information security management system: risk analysis, a statement of applicability, access control and supplier management. Every element of the project must be traceable to a control in Annex A. (source)
  • KSeF (Poland's National e-Invoicing System) introduces mandatory structured invoices in the FA(3) format. Financial and accounting systems must handle sending, receiving, fallback modes and KSeF numbers across the whole document flow. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, every deliverable supplied with documentation that the client's team can take over.

Approach and architecture

We build an internal developer platform: the product team gets ready-made service templates, a pipeline and observability instead of configuring everything from scratch. Deployments follow a GitOps model with the ability to roll back instantly, and cloud costs are tagged to teams and shown every week (FinOps).

We choose an isolation model (separate databases per client, a shared application layer), containerize the application and build automatic provisioning of a client environment. Clients are migrated in waves with a data transfer tool.

Key elements of the solution:

  • Application containerization
  • A per-client data isolation model
  • Automatic provisioning of client environments
  • A tool for migrating data from on-premise installations

Team and roles

RoleCountResponsibility
Cloud architect1landing zone, network, cloud security, costs
DevOps engineer2CI/CD pipeline, infrastructure as code
Backend developer (Java/Kotlin)2domain services, API, unit tests
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. Readiness assessment and migration plan1–3inventory, 6R paths, business case
2. Landing zone and security4–7accounts/subscriptions, network, IAM, policies
3. Migration in waves8–15migrated applications, runbooks
4. Optimization and FinOps16–18right-sizing, cost report
5. Operations handover19–20documentation, on-call, training

Technology stack

Azure, AKS, Terraform, Azure SQL, Helm, GitHub Actions.

Risks and how we mitigate them

RiskHow we mitigate it
Errors in data migrationdata profiling, trial migrations with reconciliation, quality criteria before cutover
Uncontrolled growth of cloud costsbudgets and alerts, tagging, a weekly FinOps review, reservations once the load has stabilized
Undocumented behavior of the old systemcharacterization tests (golden master) before the change, old/new result comparisons

Measurable goals and KPIs

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

KPITargetHow it is measured
Deployment frequencyon demand, at least weeklyCD pipeline
Infrastructure cost per transaction or usera decrease against the baseline, target set after phase 1FinOps report
Service availability≥ 99.9% per monthsynthetic monitoring, SLOs

Lessons learned and good practices

Choosing the data isolation model is a business decision, not only a technical one, because it affects costs and sales. Automatic provisioning of a client environment is a prerequisite for scaling SaaS. Cloud costs have to be shown to teams from the first week, not after the first invoice.

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 for a defined 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.

Acceptance criteria

Each phase ends with a formal acceptance against criteria agreed at the start. In this implementation, acceptance covers: an inventory, 6R paths and a business case; accounts/subscriptions, network, IAM and policies; migrated applications and runbooks; right-sizing and a cost report; documentation, on-call and training. Final acceptance requires a KPI measurement report against the baseline, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with a cost and risk assessment for each.

Next step

If you recognize these problems in your own organization, let's start with a short diagnosis: one workshop with your team and a written recommendation. Write to 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: IT