CASE STUDIES / TELECOM BILLING
SAASINTEGRATIONS2023

New billing for 2.1M accounts and not a single lost charge

Replacing the in-house billing system of a federal operator: tariff plan builders, instalments and discounts, OSS/BSS integration and the migration of 2.1M subscriber accounts under parallel calculation.

01 — Challenge

A tariff plan took a quarter to ship

Billing had been written in-house over ten years: charging rules lived in stored procedures, and any change to commercial terms turned into a quarterly release with manual regression testing.

A system that processes thousands of charging operations per second can only be replaced without stopping it: billing downtime is not just lost revenue, it is a conversation with the regulator.

02 — Solution

Charging as configuration, plus parallel calculation

Charging rules moved out of code into declarative tariff plans: the product team assembles a plan from bundles, thresholds and discounts in the interface, and every change is replayed against historical data before it is published.

The core runs on Go: usage events flow through Kafka, charging scales horizontally, and call detail records land in ClickHouse so a subscriber's statement renders in seconds.

For three months the system calculated in parallel with the old one on live traffic, and every per-account discrepancy was investigated down to zero. Only then were charges switched over to the new platform — subscribers noticed nothing.

03 — Results
0 minof charging downtime across the migration
2.1Msubscriber accounts migrated
12,000charging operations per second
2 weeksfor a new tariff plan (was: a quarter)
04 — How we did it
/01Audit
Reverse engineering the rules out of stored procedures, a tariff catalogue and an OSS/BSS integration map.5 WEEKS
/02Charging model
A declarative description of tariff plans, the event schema and accuracy requirements for calculation.4 WEEKS
/03Development
13 sprints: the charging core, the plan builder, instalments, call detail records and reporting.26 WEEKS
/04Parallel calculation
Three months of dual calculation on live traffic, account reconciliation down to zero discrepancies, then cutover.12 WEEKS
05 — Stack
GoKafkaPostgreSQLClickHousegRPCReactKubernetesPrometheus
«“We handed the contractor the scariest system in the company. A year later marketing launches a tariff in two weeks without asking engineering for permission — that is the result.”»
Next case studyVetra Bank payment portalFINTECH · WEB · MOBILE · 2025 · ×2.4 ONLINE PAYMENT GROWTH IN A YEAR