Skip to content

Instant payments performance testing in a bank

B2Bnetwork team · · 6 min

System performance

In brief

An instant payments performance test checks whether every payment, including the thousandth one at peak, fits within the time limit from order to confirmation. For euro transfers, Regulation (EU) 2024/886 sets 10 seconds for the whole route, and the bank gets only part of that. That is why the tail of the distribution matters (p99, p99.9 and the maximum), not p95. The test also covers round-the-clock operation, deployments under load, an outage of the clearing system and payments in an uncertain state.

What is different from a regular performance test

In online banking a slow response is a bad result, but the customer will usually wait. In an instant payment, a late response means a rejected payment or, worse, a payment in an uncertain state: the sending bank does not know whether the payee received the funds. That leads to four differences:

AreaRegular banking system testInstant payments test
Time measurep95 screen response timep99, p99.9 and the maximum from order acceptance to confirmation
Result of exceeding ita slower screenrejection or an uncertain payment state
Test windowthe peak houra full day, a week, a night with batch jobs
Changesdeployment in a maintenance windowdeployment under load, without a break

The legal requirements and architecture are covered in Instant payments and bank system architecture, and the details of the law in The Instant Payments Regulation. Here we deal with how to test it.

End-to-end measurement and a budget per component

The first decision is where to measure. The time recorded by a load testing tool covers only the API call. A payment takes longer: validation, the balance hold, fraud risk scoring, payee verification before authorization, the message to the clearing system, the payee bank's response, posting. Each of these steps has to be measured separately, ideally with a single payment ID in traces and logs.

A practical measurement setup:

  1. Order acceptance timestamp in the channel (API, online banking).
  2. Time for each component from metrics or traces: balance, risk scoring, payee verification, the gateway to the clearing system.
  3. Confirmation timestamp from the clearing system or its stub.
  4. Distribution of the total time and of each component, in percentiles, in one-minute windows.

With this setup you see straight away which component eats the budget. A common picture: on average everything fits within a few hundred milliseconds, but every few thousand payments the risk scoring engine answers after several seconds because it waits for a full garbage collection or for a database query on the customer's history. A regular report built on p95 will not show this.

Traffic: round-the-clock background and spikes

Instant payments run around the clock, so the traffic model has two parts. The background is the distribution of payments across the day and week, including nights, weekends and public holidays. Spikes are moments when traffic jumps sharply: payday, transfers to phone numbers on a Friday evening, online shopping during a promotion, bulk payments from companies.

A test series usually looks like this:

  1. Load test at the forecast peak, with the distribution of amounts and payment types taken from logs.
  2. Spike test: a several-fold rise in payment rate within minutes.
  3. Endurance test over many hours, ideally overnight while the bank's batch jobs run: interest accrual, statements, backups. Instant payments do not wait for batch processing to finish, and both use the same database.
  4. Stress test that shows how the system sheds excess load: quickly and clearly, or through growing timeouts.

The tests need stubs for the clearing system and payee banks, because the real systems will not accept test traffic at load scale. A stub has to respond with a realistic latency distribution, not instantly, as covered in Service virtualization in testing.

Failures, uncertain states and live deployments

The most valuable instant payments tests are the ones where something goes wrong. Plan at least these cases:

  • Clearing system slowdown: responses arrive after several seconds. Does the bank reject payments after its own timeout, and does the customer get a clear message?
  • No response: the payment is left in an uncertain state. Does the status inquiry work, is the customer's balance correct, and can the payment not go out twice?
  • Component restart under load: one node disappears. How many payments failed, and how many recovered without intervention?
  • New version deployment under load: instances switched over gradually. Does the tail of the distribution grow during the deployment?
  • Recovery after an outage: after a few minutes of downtime the backlog of messages arrives at once. Can the system process it without exceeding the time limit for new payments?

Each of these tests ends not only with a response time chart but also with a reconciliation: the number of payments accepted, confirmed, rejected and uncertain has to match balances and postings.

Thresholds and the report

Thresholds for instant payments are written into the bank's time budget: for example, p99.9 of the whole sending-bank path below the agreed threshold and zero payments over the limit at the forecast peak. Add the rate of technical rejections, the number of uncertain states and the time to resolve them. The report shows the time distribution for each component, the cases that exceeded the limit with payment ID and cause, and the result of the balance reconciliation.

Polish banks have long experience with instant payments in zloty, for example through Express Elixir, the round-the-clock instant payment system run by KIR (Poland's clearing house). Euro payments under the new regulation add requirements and new connections, so the tests should be repeated for the whole route. How a test series in a bank runs before a major change is shown in the case study Full performance testing of online banking before a core system migration, and the rebuild of payment integration in replacing the ESB with a Kafka event platform. At B2Bnetwork, performance testing for banks covers the whole chain: the channel, APIs, the integration bus and the database.

Questions and answers

How much time does a bank have for an instant payment in euro?

Regulation (EU) 2024/886 sets 10 seconds from acceptance of the payment order to the funds being made available to the payee and confirmation to the sending bank. That time covers the sending bank, the clearing system and the payee bank, so each bank sets a smaller budget for itself and splits it across components.

Is a test environment without the clearing system enough?

For testing the bank's capacity, yes, if the clearing system and payee banks are replaced by stubs with a realistic distribution of latency and errors. Separately, you have to pass tests with the real clearing system in the environment its operator provides, but those check message correctness, not capacity.

Why is p95 not enough for instant payments?

Because every payment over the time limit is a rejection or an uncertain state. At high volume, even one payment in a thousand means many cases a day for customer service. That is why you look at p99, p99.9 and the maximum, and analyze each breach individually, with its payment ID.

How do you test deployments when there is no maintenance window?

Deploy the new version during a load test in the test environment, exactly as in production: gradually, instance by instance. The test checks whether the tail of the distribution grows during the switchover, whether in-flight payments are lost and whether rolling back to the previous version works under load.

What it looks like in a project

Your system slows down under load? We'll find where it loses time.

Let's talk

Read more: System performance

All in System performance →