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
- Integrations with each intermediary were built separately, in different formats.
- Approach
- We expose a single calculation and sales API with an OpenAPI contract, per-partner rate limits and a cache for repeated queries.
- Goal
- API p99 latency: ≤ 300 ms; Service availability: ≥ 99.9% per month.
Client context
Insurers live on data: from pricing through claims handling to technical reserves. Policy systems are sometimes more than ten years old, and products change faster than they do. A motor insurer for which online comparison sites and multi-agencies are a significant sales channel.
Challenge
Integrations with each intermediary were built separately, in different formats. Calculations requested by comparison sites load the policy system, and errors in responses mean lost sales that the insurer never learns about.
Requirements and constraints
- The IDD directive and the Polish act on insurance distribution regulate needs assessment, delivery of documents (KID/IPID) and management of conflicts of interest in distribution. A digital sales path must leave a trail that can be reconstructed when a complaint is filed. (source)
- GDPR, Regulation (EU) 2016/679, requires data minimization, a legal basis for processing and data processing agreements, and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data to test environments without anonymization or pseudonymization. (source)
- DORA, Regulation (EU) 2022/2554, requires ICT risk management, a register of contracts with ICT providers, classification and reporting of major incidents, and regular testing of operational resilience. For the project this means every new component needs an owner, a dependency map and a resilience test scenario, and the provider (including us) is entered in the register of information on contracts. (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 design integrations starting from the contract: an OpenAPI or AsyncAPI specification is written and agreed with consumers before anyone writes code. We base asynchronous communication on events with a schema registry and compatibility rules, and the transactional outbox pattern and idempotent consumers protect against duplicates and message loss. Every integration has an owner, metrics and alerts.
We expose a single calculation and sales API with an OpenAPI contract, per-partner rate limits and a cache for repeated queries. We migrate the old integrations partner by partner. Business monitoring shows the share of queries that ended in an offer, per partner.
Key elements of the solution:
- An API gateway with partner authentication and rate limits
- A calculation cache layer with validity control
- Adapters for partners' legacy formats
- A business dashboard: queries, offers, errors
Team and roles
| Role | Count | Responsibility |
|---|---|---|
| Solution architect | 1 | target architecture, ADR decisions, technical reviews |
| Integration engineer | 2 | API contracts, Kafka, ESB, contract tests |
| Backend developer (Java/Kotlin) | 2 | domain services, APIs, unit tests |
| Test analyst (ISTQB) | 1 | designing and executing test cases, reporting defects |
| Performance testing engineer | 1 | load model, scripts, bottleneck analysis |
| Product owner and domain experts (client side) | as needed | priorities, business decisions, acceptance |
Phased schedule
| Phase | Weeks | Deliverable |
|---|---|---|
| 1. Integration inventory | 1–4 | flow map, interface catalog |
| 2. Contract and platform design | 5–9 | API specifications, schema registry |
| 3. Build and incremental migration | 10–19 | new interfaces, traffic switchovers |
| 4. Contract and resilience testing | 20–23 | contract tests, failure scenarios |
| 5. Decommissioning old connections | 24–24 | shutdown plan, documentation |
Technology stack
Kong or Azure API Management, Spring Boot, Redis, Kafka, k6, Grafana.
Risks and how we mitigate them
| Risk | How we mitigate it |
|---|---|
| A large number of integrations with unclear owners | an integration catalog with owners, contract tests, prioritization by criticality |
| Seasonal peaks during the project | a change freeze before the peak, performance tests on the peak profile, an on-call plan |
| Dependence on an external provider and its deadlines | early agreement on API contracts, a stub environment, a weekly review of dependencies |
| Service downtime during changes | blue-green or canary deployments, feature flags, maintenance windows agreed with the business |
Measurable goals and KPIs
The values below are goals that we set with the client after a baseline measurement in the first phase.
| KPI | Target | How it is measured |
|---|---|---|
| API p99 latency | ≤ 300 ms | APM |
| Service availability | ≥ 99.9% per month | synthetic monitoring, SLO |
| Error rate under load | < 0.1% | load test, application logs |
Lessons learned and good practices
Business monitoring of the API shows problems that technical metrics do not, for example no offer for one age group. A calculation cache needs clear validity rules agreed with the pricing department. The most expensive integrations are the ones nobody has inventoried.
Why B2B.net
B2B.net S.A. has operated since 2015 and has worked for more than 50 brands, mostly where audits are an everyday reality: in banks, insurance and critical infrastructure. We are an accredited exam center, so testing methodology is not a claim for us but a standard of work. 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 project, acceptance covers: flow map, interface catalog; API specifications, schema registry; new interfaces, traffic switchovers; contract tests, failure scenarios; shutdown plan, documentation. 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.