Real architecture · Staff
SPI: 24x7 real-time gross settlement, active-active, zero RPO
A critical national system with public targets: RTO of 15 min, zero RPO, 99.9%, p50/p99 of 2.8 and 4.6 s, 40 s timeout that becomes a rejection. Real load: peak of 313.34 million Pix on 12/05/2025. Ideal for "design the SPI".
Short answer
A critical national system with public targets: RTO of 15 min, zero RPO, 99.9%, p50/p99 of 2.8 and 4.6 s, 40 s timeout that becomes a rejection. Real load: peak of 313.34 million Pix on 12/05/2025. Ideal for "design the SPI".
01 · CONTEXT
The system that settles Pix
The SPI is the centralized real-time gross settlement (RTGS) infrastructure of the Pix arrangement. Its purpose is to settle credit orders between direct participating institutions, moving the Instant Payment Accounts (PI Accounts) held at the Central Bank.
Operation is uninterrupted: 24 hours a day, 7 days a week, including holidays. The SPI also has no closing windows or settlement cycles.
In 2024, the SPI processed more than 56 billion transactions, and the average availability index was 99.98%, above the regulatory minimum of 99.90%. The document reports more than nine hundred participating institutions, direct and indirect.
02 · SETTLEMENT
Balance first, immediate settlement
Settlement is done in central bank money, by debit and credit between PI Accounts held at the BC by direct participating institutions, and the SPI only settles with available balance in the payer's PI Account.
The payment order reaches the SPI as a standardized message, transmitted over the RSFN.
To settle, the transaction must obtain all required validations, including from the payee institution, and have a balance reserved in the payer's PI Account when the SPI receives the order.
Once these conditions are met, the SPI immediately moves the funds, by debit and credit between PI Accounts.
Without available balance, the transaction is automatically rejected: there is no queue or wait for future balance.
In the SPI there are no waiting queues, offsets, or dependence on later coverage. According to the document, operational risk is the main residual risk the system is exposed to.
Messages follow the ISO 20022 standard, represented in XML, and access to the SPI is authenticated by digital certificates.
A deep-dive point for the interview: when two orders from the same payer compete for the same balance, what mechanism keeps it from being spent twice? Think about consistency and about distributed transactions.
03 · ACTIVE-ACTIVE
Two centers, synchronous replication, and zero RPO
The SPI keeps two service centers at distinct locations, with synchronous data replication. Both operate in ativo-ativo, with load distribution, and both are able to fully take over the system's activities, even in cases of severe failure.
The SPI runs in two Information Technology Service Centers (CSIs), installed at distinct locations, with synchronous data replication.
The two centers operate in an active-active setup, with load distribution, and both are able to fully take over the system's activities, even in cases of severe failure.
The recovery parameters are an RTO of fifteen minutes and an RPO of zero, set in a service level agreement between the responsible departments and regularly tested.
Participants' access goes through the RSFN, which offers two independent telecommunication networks, with redundancy.
The design aims to have no single points of failure, with redundancy in both CSIs and use of different RSFN providers.
Teams in Brasília and São Paulo monitor the system in real time, supported by automated tools.
| Indicador | Valor |
|---|---|
| Maximum recovery time (RTO) | fifteen minutes |
| Maximum data loss (RPO) | equal to zero |
| Regulatory minimum availability | 99.90% over a three-month period |
| Average availability in 2024 | 99,98% |
| Target for half of Pix on the primary channel | settled within 2.8 seconds |
| Target for 99% of Pix | settled within 4.6 seconds |
| Expiration of a transaction not settled after an interruption | forty seconds |
04 · FAILURES
An undefined state does not exist
After an interruption, the SPI automatically identifies the transactions received and not settled before the stop and rejects them if the forty-second expiration time has been reached. According to the document, this approach prevents transactions from existing in an undefined state.
The system has mechanisms for idempotency and for querying the status of the operation, which allows the participant to check the result of a transaction at any time, even after unavailability or a communication failure.
The RTO and RPO are set in a service level agreement between the responsible departments and regularly tested, and capacity is reviewed quarterly based on demand projections. The monitoramento is performed in real time by teams in Brasília and São Paulo.
05 · IN THE INTERVIEW
Questions for designing the SPI
When designing a system like this, discuss the cost synchronous replication imposes on the latency of each write, how to reconcile balances and messages, and what the participant sees when an order is rejected. Each decision here trades disponibilidade for complexity, and the choice needs to be justified by the system's targets.
Frequently asked questions
What is SPI: 24x7 real-time gross settlement, active-active, zero RPO?
A critical national system with public targets: RTO of 15 min, zero RPO, 99.9%, p50/p99 of 2.8 and 4.6 s, 40 s timeout that becomes a rejection. Real load: peak of 313.34 million Pix on 12/05/2025. Ideal for "design the SPI".
What does the SPI: 24x7 real-time gross settlement, active-active, zero RPO design cover?
It is organized in these sections: The system that settles Pix, Balance first, immediate settlement, Two centers, synchronous replication, and zero RPO, An undefined state does not exist, and Questions for designing the SPI.
How long is SPI: 24x7 real-time gross settlement, active-active, zero RPO and what level is it?
It takes about 18 minutes to read and is rated Staff level.
Now design it yourself
Run this case as an interview in the System Design school: you make the decisions, the tutor challenges them and you see how your design scores.