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
- A mass recalculation of invoices and corrections has to fit within a time window, and previous batch runs exceeded it by many hours.
- Approach
- We test batch runs at production volume (anonymized data), measure the time of each step, and look for bottlenecks in the database and in parallelism.
- Goal
- Time to prepare a regulatory or management report: reduced from days to hours; Error rate under load: < 0.1%.
Client context
The energy sector is undergoing a transformation: distributed sources, storage, smart meters, and new retail market processes change the requirements for IT and OT systems. The client is an energy retailer with several million customers, preparing a mass tariff change and the issuing of corrections.
Challenge
A mass recalculation of invoices and corrections has to fit within a time window, and previous batch runs exceeded it by many hours.
Requirements and constraints
- The Central Energy Market Information System (CSIRE) changes the model for exchanging metering data and retail energy market processes. Retailers and distribution system operators (OSD) must adapt their billing and customer service systems to the information exchange standard of the energy market information operator. (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)
- 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
We start performance testing with a load model, not a tool: from production logs and business data we derive the traffic profile (transaction mix, peaks, distribution over the day), and only then do we write scripts. Every test has a hypothesis and a pass criterion, and we analyze the results together with infrastructure metrics and APM traces, so that we pinpoint the bottleneck instead of merely stating that it is slow.
We test batch runs at production volume (anonymized data), measure the time of each step, and look for bottlenecks in the database and in parallelism. We propose changes and verify them in subsequent cycles.
Key elements of the solution:
- Test data at production volume (anonymized)
- Profiling of the steps of a batch run
- Database and parallelism tuning
- A confirmation test within the window
Team and roles
| Role | Count | Responsibility |
|---|---|---|
| Performance test engineer | 1 | load model, scripts, bottleneck analysis |
| Database administrator | 1 | tuning, backups, schema migrations |
| Test manager (ISTQB Advanced) | 1 | test strategy, entry and exit criteria, quality reporting |
| Product owner and domain experts (client side) | as needed | priorities, business decisions, acceptance |
Phased schedule
| Phase | Weeks | Deliverable |
|---|---|---|
| 1. Load model and criteria | 1–2 | traffic profile, SLA, test plan |
| 2. Preparing scripts and data | 3–4 | scripts, data generator, monitoring |
| 3. Test cycles and tuning | 5–8 | cycle reports, list of bottlenecks |
| 4. Confirmation test | 9–10 | SLA compliance report |
| 5. Performance regression in CI | 11–11 | automatic thresholds in the pipeline |
Technology stack
Oracle, AWR, profiling tools, SQL, Grafana.
Risks and how we mitigate them
| Risk | How we mitigate it |
|---|---|
| A performance test environment smaller than production | a table of environment differences, scaling results only where behavior is linear, a confirmation test on production in a maintenance window |
| No test data free of personal data | a synthetic data generator and masking that preserves referential integrity; a ban on copying production into tests |
| Undocumented behavior of the legacy system | characterization tests (golden master) before the change, comparison of old and new results |
Measurable goals and KPIs
The values below are targets that we agree with the client after a baseline measurement in the first phase.
| KPI | Target | How it is measured |
|---|---|---|
| Time to prepare a regulatory or management report | reduced from days to hours | before and after measurement |
| Error rate under load | < 0.1% | load test, application logs |
Lessons learned and good practices
The performance of batch runs depends mainly on the database and on parallelism. Data at production volume is essential, because problems do not show up on small data. A load profile built from real logs matters more than the choice of tool.
Why B2B.net
B2B.net S.A. has operated since 2015 and has worked for more than 50 brands, mainly where audits are routine: in banks, insurers, and critical infrastructure. We are an accredited exam center, so a test methodology is not a declaration for us but a working standard. We give a first proposal of specialists within 24 hours, and a team can start within 5 business days.
Acceptance criteria
Each phase ends with a formal acceptance against criteria agreed at the start. In this implementation, acceptance covers: traffic profile, SLA, test plan; scripts, data generator, monitoring; cycle reports, list of bottlenecks; SLA compliance report; automatic thresholds in the pipeline. 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
Facing a similar challenge? Write to office@b2bnetwork.pl or call +48 577 317 312. You will get a first proposal of specialists or a plan for the first step within 24 hours.
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 talkB2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.