9:14 a.m. on Black Friday, and the category page takes eight seconds to load. By 9:20, checkout starts throwing 500 errors. The store owner messages the team: “why is the cart down?” – and for the first time in a year, someone on the team actually pulls up the database load graph.
It’s a familiar story. Many stores hit some version of this at least once before they start preparing ahead of time instead of during the fire.

A bigger server isn’t the fix
The first instinct when a site goes down under load is to rent a beefier server. That sometimes buys a couple of hours. But the real problem is rarely the number of CPU cores – it’s how the application behaves under concurrent requests: how many database connections it opens, whether a queue blocks under a burst of writes, whether the cache lives in one server’s memory instead of an external store.
A Laravel app that runs fine with 50 concurrent users can fall over completely at 2,000 – and the cause usually traces back to architectural choices made long before Black Friday, not to a lack of hardware.
What breaks first
The failure order tends to repeat itself across projects.
- The database connection pool – MySQL caps concurrent connections by default, and every PHP-FPM worker holds its own.
- Queues – jobs like sending an order confirmation email or syncing with an ERP start piling up faster than workers can process them.
- Sessions and cache, if they live on local disk or in a single server’s memory – the moment traffic spreads across multiple instances, these just break.
None of it is obvious right away. The site keeps responding, pages keep loading, just a bit slower each minute – and then, all at once, they don’t.
Queues during a sales spike
Queues deserve their own mention. On a normal day, a queued confirmation email job runs in under a second and nobody thinks twice about it. During Black Friday, with a hundred times the usual order volume and an external SMTP provider slowing down under its own load, the queue backs up. With too few workers, a confirmation email that should arrive in a minute shows up an hour later – and that’s no longer a technical footnote, it’s a trust problem with the customer.
The fix isn’t complicated: scale up worker count through Supervisor or Laravel Horizon specifically for the peak window, split queues by priority (payment processing gets its own high-priority queue, marketing emails a separate low-priority one), and set sane retry timeouts so one stuck external service doesn’t clog the whole pipeline.

Redis alone guarantees nothing
Redis for cache and sessions is table stakes – no argument there. But having it installed doesn’t automatically fix anything. A store can have Redis running fine and a category page still trigger dozens of database queries on every load, because what got cached was an intermediate result rather than the query itself, and invalidation fired whenever a single product’s price changed inside a thousand-item category.
There’s a subtler issue too – cache stampede, where a popular page’s cache expires for hundreds of users at once, and instead of one database query you get two hundred simultaneously. The fix is locking during recalculation (Laravel’s Cache::lock() exists for exactly this) or adding a small random jitter to cache TTLs so entries don’t all expire in sync.
Worth checking separately: OPcache. In production it should run with validate_timestamps=0 – otherwise PHP checks file modification times on every single request, and that adds up noticeably under load.
Databases don’t forgive N+1 queries
A query that runs a couple of times a day in the admin panel and takes half a second is a different animal when it runs thousands of times a minute on the storefront. The classic case: listing products with brand and category without eager loading. Instead of one query with a JOIN, Laravel fires a separate query per product in the list. Twenty products on a page means twenty extra round trips to the database. Multiply that by however many people are shopping at once on Black Friday.
Before the peak season, it’s worth running Laravel Debugbar or Telescope against the highest-traffic pages – catalog, product page, cart – and actually looking at the query count. Even stores that have been running for years turn up surprises there.
If the database is already tuned and load is still an issue, offloading reads to a replica while writes stay on the primary instance is a reasonable next step. Laravel supports this natively through read/write connection config in config/database.php, no extra packages needed.
Horizontal scaling needs a stateless app
Once one server isn’t enough, the obvious move is adding another and putting a load balancer in front. That only works if the app doesn’t keep state locally. Sessions stored as files on a specific server’s disk, uploaded files sitting in the local storage folder, cache running on the array driver – all of it breaks the moment requests start landing on different machines.
The practical minimum before scaling out: sessions and cache in Redis, user-uploaded files in S3-compatible storage rather than on the server’s disk. After that, it stops mattering which of three web servers a given request hits.
Worth a mention here: Laravel Octane, which keeps the app in memory between requests using Swoole or RoadRunner and delivers noticeably better throughput under load than classic PHP-FPM, where every request boots the whole framework from scratch. Octane has its own traps, though – global state and static properties that leak between requests if the code wasn’t written with a long-running process in mind. Switching to it the week before Black Friday, untested, is asking for trouble.
Load testing, two or three weeks out
This is the step that gets skipped most often, because it feels optional right up until it isn’t. Tools like k6 or Locust can simulate a few thousand concurrent users running a realistic path: landing on the homepage, browsing the catalog, adding something to the cart, checking out.
The real value isn’t the headline number – “handled 3,000 requests per second” – it’s seeing exactly what breaks first and under what conditions. Sometimes the bottleneck isn’t where anyone expected: not the database, but a call to an external inventory API that blocks the whole request for a full second.

Having a plan for the day itself
Even with infrastructure prepared well in advance, it helps to have a plan for when something still goes sideways. Real-time monitoring – Laravel Pulse, New Relic, or a plain Grafana dashboard tracking queue depth and database load – isn’t a nice-to-have, it’s the difference between catching a problem in a minute versus finding out from angry comments on social media.
It’s worth setting up “kill switches” ahead of time – feature flags that can disable non-critical but expensive features on the fly: personalized recommendations, heavy filtering, extra widgets on the homepage. Shoppers won’t notice they’re gone for an hour during peak load, and the server gets real breathing room.
And someone needs to actually be reachable all day, not just “the team is available during business hours.” Black Friday traffic often peaks at odd local hours because of time zone differences with other markets, and if the one person who understands the infrastructure is asleep, a problem lasts a lot longer than it needs to.
Getting ready for peak traffic works better as something baked into the architecture months ahead, not bolted on the week of the sale – that’s really the difference between Black Friday being just another high-traffic day and it turning into a full day of firefighting.
Read also: “The Site Went Down Mid-Season”: What an SLA Actually Needs to Guarantee to Stop You Losing Money; How Much Does a Custom Laravel eCommerce Website Cost in Ukraine: What Determines the Price.
Related services: Website design, Corporate website, Website improvements.