Every e-commerce business has a day it plans the whole year around. In the US, it’s usually Black Friday or Cyber Monday, with the run-up to Christmas close behind. On those days, the payment platform behind the checkout, the software that takes each payment and sends it to a payment processor, does the same job it does all year. What changes is how many payments arrive at once.
On Cyber Monday 2025, US shoppers spent $14.25 billion online, and between 8pm and 10pm they were spending $16 million every minute. Payment platforms measure that day in transactions per second. At an average order of around $100, $16 million a minute is roughly 2,700 payments every second.
Juspay, the company behind the open-source payment orchestration platform Hyperswitch, handles that kind of volume every day. Juspay processes more than 400 million transactions a day and over $1 trillion in payment volume a year, and runs its payment systems at 99.999% uptime. Keeping a checkout standing on the busiest day of the year comes down to four things- reliability, performance, scalability, and security. Here is what that pressure actually demands, and how we built Hyperswitch to handle each one.
What’s at stake on peak day
A shopper taps “pay” and gets a spinner. That spinner is often the payment platform itself under strain: payments waiting in line to be recorded, servers running out of room, or a failure it can’t recover from. If the spinner doesn’t clear quickly, the shopper leaves, but the payment is still on its way. If it’s declined, the sale is gone. If it’s approved, their card is charged for an order that never happened. They can’t tell which, so they try again, and if nothing catches it, they’ve paid twice. One slow checkout has become a lost sale, an extra charge, a refund and a customer who tells their friends.
On Cyber Monday evening, shoppers are spending $16 million a minute across the US. A few minutes offline is costly, and shoppers don’t wait around for a checkout to come back. They go somewhere else.
So what takes a checkout down? Most outages come down to one of three things: something breaks, resources run out, or something in the system changes. A server dies with payments half-processed, the database can’t keep up with the rush, or a payment processor changes something on its side in the middle of the evening and payments start declining.
What catches these problems is a short list of patterns engineers have relied on for years: a backup ready to take over, a limit that holds traffic to what the system can take, a change that can be rolled back, and work moved out of the shopper’s way. A payment platform built for peak day has all of them, and on the busiest day of the year they’re all being tested at once. Here is how those patterns show up in practice across reliability, performance, scalability and security.
Reliability: staying up, and never losing a payment
Reliability comes down to two things. The payment platform has to stay up, and every payment that enters it has to come out with one clear answer, approved or declined, never lost and never doubled. Both depend on one thing: the record of the payment. If the record survives, the payment survives- an approach that keeps Hyperswitch Cloud running at 99.999% uptime.
No single point of failure. On Hyperswitch Cloud, every part of the payment path, from the servers that receive requests to the databases that record them, runs in duplicate across separate availability zones. If one machine, or a whole zone, goes down, another takes over. Businesses running Hyperswitch themselves are given the same blueprint to follow.
A server can fail mid-payment without losing it. Before Hyperswitch asks the payment processor to approve a payment, it records the payment and schedules a follow-up: a note to check back shortly and confirm how the payment ended. Both are kept outside the server handling the payment. If that server fails before the answer arrives, the follow-up still runs, Hyperswitch asks the payment processor what happened, and records the result. Every payment reaches a final answer (approved, declined or failed) within a set time.
Payments come first. Logs, analytics and dashboards are often the first systems to struggle on peak day. If one of them fails, Hyperswitch cuts it off and payments carry on as normal. Juspay tests this regularly by breaking those systems on purpose, a practice known as chaos testing.
A second click is caught. Slow spinners make shoppers click again. When they do, the second request waits for the first to finish, finds the payment already answered, and is turned away before it reaches the payment processor, whichever server it lands on. The shopper sees one result and pays once. Late status updates from payment processors are held back the same way, so they can’t clash with a payment still in progress.
A payment processor can fail without taking checkout down. Payment processors have bad hours too. Hyperswitch connects to more than 100 payment processors. When one times out or fails, Hyperswitch checks whether the failure is worth retrying and, if the business’s rules allow it, sends the same payment to the next payment processor on its list. Each payment processor’s integration is also its own separate module, so a fault in one never reaches the core payment path.
Changes are safe to ship. Every release runs in Hyperswitch Cloud’s own production environment before it is made public, and if a release causes trouble, it can be rolled back quickly. Hyperswitch Cloud watches every server, every API and every background job with the same monitors, so a failure anywhere is caught the same way. Databases are backed up automatically, with the option to restore them to any point in time.
Under the hood: Hyperswitch Cloud runs across multiple availability zones. Payment state lives in the database, never on the application server, and a scheduled task checks the status with the payment processor for every payment. Duplicate requests are blocked with a distributed lock on each payment.
Performance: keeping checkout fast under load
Most of a shopper’s wait is the payment processor and the bank deciding whether to approve the payment. On peak day, three things can stretch a shopper’s wait: recording the payment, waiting for the payment processor, and the small jobs around every payment.
Recording the payment. A payment platform must never lose track of a payment, so it saves each one to its database at least twice: once when the payment starts, and once when the payment processor answers. A database can handle only a limited number of saves per second. On peak day, payments can arrive faster than that, and each new one has to wait for the ones ahead of it.
By default, Hyperswitch saves every payment straight to the database, and on Hyperswitch Cloud that database is sized for the peak rather than the average day. For businesses that expect bigger spikes, Hyperswitch has a mode that takes the database out of the shopper’s wait altogether. Each record goes first to a fast holding area that runs on its own machines and keeps a backup copy. The shopper sees their result the moment the payment processor answers. In the background, a separate process copies every record into the database at a steady pace, like a shock absorber that keeps the database from ever being overloaded.
Waiting for the payment processor. On peak day, payment processors are slower because it’s everyone’s peak. Hyperswitch can’t shorten that wait, but it decides what happens to everyone else in the meantime. In a platform that gives each payment its own worker, that worker sits idle until the processor replies. When replies slow down, every worker ends up waiting and new payments queue behind them. Hyperswitch doesn't tie up a worker while a payment waits. It sends the request, moves on to the next payment, and picks the first one back up when the processor's answer arrives. A slow processor still delays the payments sent to it, but it doesn't stop new payments from starting.
The small jobs around every payment. Every Hyperswitch server keeps a copy of each business’s settings and routing rules, so a payment rarely has to look them up. Log entries are written without the payment waiting for them, and the shopper gets their result before the business’s own systems are told the order can ship.
Under the hood: In this mode, Hyperswitch, whether self-hosted or on Hyperswitch Cloud, writes to a replicated Redis key-value store and reads from it first. A background “drainer” process moves records from Redis streams into the PostgreSQL database at a controlled rate.
Scalability: making room when the rush comes
On peak day, a payment platform can run out of room in two ways: the whole system gets more traffic than it was built for, or one business takes more than its share and everyone else’s checkout suffers. To avoid both, two things have to hold: the platform’s ability to add capacity as traffic climbs, and a limit on each business’s traffic.
Servers are added automatically, and help immediately. On Hyperswitch Cloud, servers are added as traffic rises and removed when it falls, with no one having to do it by hand. Because no payment data is kept on the servers themselves, a new server is useful the moment it starts. The database is the one part that can’t grow this way, so it is sized ahead of the season using each business’s forecast. The holding area, by contrast, can be spread across many machines, so the database never becomes the ceiling. Hyperswitch has handled peaks of 5,000 transactions per second.
Each business gets its own capacity. On a shared platform, one business’s flash sale can become everyone’s problem. On Hyperswitch Cloud, each business has its own traffic limit, enforced before requests reach the payment system, so a surge beyond it stays with that business. Follow-up work, such as checking on a refund, is handled by a separate process, away from live payments. Businesses running Hyperswitch on their own infrastructure can set the same limits, or run it for a single brand with no one to share capacity with.
Under the hood: the application servers are stateless and scale horizontally through Kubernetes’ Horizontal Pod Autoscaler. Per-merchant rate limits are enforced at the ingress layer.
Security: when traffic peaks, so do attacks
Peak days attract attackers as well as shoppers. Failed payments, floods of requests and odd messages that would stand out on a normal day blend into the rush.
Card testing. Fraudsters with lists of stolen card numbers run them through a checkout a few dollars at a time to see which still work. On peak day, a hundred failed payments from one source looks like a busy hour, and the business pays for every attempt. Hyperswitch counts failed payments by card and IP address, by guest card, by customer and by guest address, and once any of them passes a limit the business sets, further attempts are blocked before a payment processor is called. Businesses can also block specific card numbers and card fingerprints outright, use a fraud-check provider of their choice, and set rules for when a shopper must confirm a payment with their bank through 3D Secure, so suspicious payments get a second look without slowing everyone else.
Floods of fake traffic. A denial-of-service (DDoS) attack, a flood of fake requests meant to knock the checkout over, looks a lot like Cyber Monday. On Hyperswitch Cloud, traffic is screened before it reaches the payment system, using device fingerprinting, behavior patterns and IP reputation, and sources flooding the system are blocked. Each business’s own traffic limit means an attack aimed at one business stays with that business.
Forged messages. A forged status update saying “paid” could get an unpaid order shipped. Hyperswitch checks every update against the signing key the payment processor issued. If an update can’t be verified, Hyperswitch ignores it and asks the payment processor directly for the payment’s status, so a forged message can never mark anything as paid.
Data is protected the same way every day. All sensitive data, including card details, credentials and personal information, is encrypted by Hyperswitch itself, with each business’s data under its own key, so one business’s data can never be read with another’s. Card numbers are kept in a dedicated vault, with each business’s cards encrypted under its own key, encrypted once on the way there and again inside it, and hidden in logs. Every API call and payment change is logged, so any payment can be traced afterwards. Hyperswitch Cloud holds PCI DSS 4.0, ISO 27001:2022 and SOC 2 Type II certifications and is GDPR compliant for its European customers, and the Hyperswitch software is validated under the PCI Secure Software Standard. These certifications require regular independent audits and penetration tests. Businesses running Hyperswitch on their own infrastructure are responsible for their own compliance.
Under the hood: external traffic is served only over TLS 1.2/1.3. Data sent to the vault is signed and encrypted (JWS/JWE), then encrypted again with AES-256. Each merchant’s data key is protected by a master key. Incoming webhooks are verified with each payment processor’s signature scheme, HMAC for most. On Hyperswitch Cloud, the master keys are held in AWS KMS and DDoS protection runs on AWS Shield Advanced; self-hosted installations can use AWS, GCP or OCI KMS, or HashiCorp Vault.
Built for the peak, every day
None of this is switched on specially for Black Friday. It’s how Hyperswitch runs all year, which is why peak day can look like any other day, only busier.
Across all four areas, the same few ideas keep showing up: a backup ready to take over, work moved out of the shopper’s way, a limit so one business can’t crowd out the rest, and nothing trusted until it’s verified.
All of those ideas rest on one more thing: the core of Hyperswitch, which is designed to be stable. Every change goes through automated checks before a person ever reviews it, and only Juspay’s own maintainers can approve it. The parts that change most often, the payment processor integrations, live outside that core, so a bad change on a payment processor’s side never affects anything else on Hyperswitch.
E-commerce businesses can use Hyperswitch in two ways. On Hyperswitch Cloud, Juspay runs and scales the platform for them, including capacity planning ahead of the holiday season. Or they can run it on their own infrastructure, on any major cloud or their own servers, with Juspay helping with installation, load testing against the expected peak, and monitoring. Either way, because Hyperswitch is open source, how every payment is recorded, retried and verified can be read line by line.
Spreading things out (more servers, more payment processors, more regions) buys you options. What makes those options worth anything is the handful of things every payment has to go through no matter what. So before the big day, sit down with your team and ask one simple question about your checkout: what does every payment have to get through, and what happens if that breaks?
Key Takeaways
- Peak day changes how many payments arrive at once, not the payment platform's job. On Cyber Monday 2025, US shoppers spent $16 million a minute at the evening peak. That's roughly 2,700 payments every second.
- Most checkout outages come down to something breaking, resources running out, or something in the system changing.
- A slow checkout can cost more than one sale. A shopper who retries a stuck payment can be charged twice, which turns one lost order into a refund and an unhappy customer.
- Reliability rests on the payment record. Hyperswitch records every payment and schedules a status check outside the server handling it. Every payment reaches a final answer even if that server fails mid-payment.
- Checkout stays fast under load when work is moved out of the shopper's way. Hyperswitch doesn't tie up a worker while a payment waits on the processor. For bigger spikes, an optional holding area takes the database out of the shopper's wait altogether.
- On Hyperswitch Cloud, each business has its own traffic limit. One merchant's flash sale, or an attack aimed at it, stays with that merchant.
- Peak traffic hides attacks. Hyperswitch blocks card testing before a payment processor is called, and it never trusts a status update it can't verify.
- None of this is switched on specially for Black Friday. It's how Hyperswitch runs all year.
Frequently Asked Questions
What is Hyperswitch?
Hyperswitch is Juspay's open-source payment orchestration platform, available as a managed service or for self-hosting. Hyperswitch connects e-commerce businesses to more than 100 payment processors. When one processor times out or fails, it can send the same payment to the next processor on the business's list, so a processor's bad hour doesn't take checkout down.
Why do checkouts go down on Black Friday and Cyber Monday?
Checkout outages on peak days usually come down to three causes: something breaks, resources run out, or something in the system changes. Typical examples are a server failing with payments half-processed, a database that can't keep up with the rush, or a payment processor changing something on its side mid-evening so that payments start declining.
How does Hyperswitch prevent a shopper from being charged twice?
Hyperswitch prevents double charges by placing a distributed lock on each payment. When a shopper clicks Pay again, the second request waits for the first to finish, finds the payment already answered, and is turned away before it reaches the payment processor, whichever server it lands on. Late status updates from processors are held back the same way.
What happens to a payment if a server fails mid-transaction?
A payment on Hyperswitch survives a server failure because the payment record and a scheduled follow-up are kept outside the server handling it. If that server fails before the processor answers, the follow-up still runs. Hyperswitch asks the processor what happened and records the result, so every payment reaches a final answer within a set time.
How does Hyperswitch keep the database from slowing checkout during traffic spikes?
Hyperswitch offers an optional mode that takes the database out of the shopper's wait. Each record goes first to a replicated Redis holding area, and the shopper sees the result as soon as the processor answers. A background drainer process then copies records into PostgreSQL at a controlled rate. By default, Hyperswitch writes straight to a database that Hyperswitch Cloud sizes for the peak.
How does Hyperswitch stop card testing during peak sales?
Hyperswitch counts failed payments by card and IP address, by guest card, by customer and by guest address. Once any count passes a limit the business sets, further attempts are blocked before a payment processor is called. Businesses can also block specific card numbers and card fingerprints, use a fraud-check provider of their choice, and set 3D Secure rules for suspicious payments.
Is Hyperswitch PCI DSS compliant?
Hyperswitch Cloud holds PCI DSS 4.0, ISO 27001:2022 and SOC 2 Type II certifications and is GDPR compliant for its European customers. The Hyperswitch software is validated under the PCI Secure Software Standard. These certifications require regular independent audits and penetration tests. Businesses running Hyperswitch on their own infrastructure are responsible for their own compliance.
Should a business use Hyperswitch Cloud or run Hyperswitch itself for peak season?
On Hyperswitch Cloud, Juspay runs and scales the platform, including capacity planning ahead of the holiday season. Self-hosted Hyperswitch runs on any major cloud or the business's own servers, with Juspay helping with installation, load testing against the expected peak, and monitoring. Self-hosting businesses can set the same per-business traffic limits but handle their own compliance.
