Mosmoxmosmox

Mosmox journal

In focus — e-commerce.

A selection of publications grouped under the e-commerce tag.

Black Friday and the Holidays: Preparing Your App and Backend for Peak Load

Black Friday and the Holidays: Preparing Your App and Backend for Peak Load

In 2026 Black Friday falls on 27 November and Cyber Monday on the 30th, followed without a break by Christmas and New Year sales. For e-commerce, delivery, ticketing and fintech apps these are the weeks when traffic can multiply within minutes and every minute of downtime costs real money. The worst part is that peak-time problems are rarely new: they existed all year, and the load simply exposed them.

Below is a practical plan for preparing the mobile client and the backend: what to measure, how to run load tests, which safeguards to build into the app and how to organise on-call on the day. If you are reading this a week before the peak, skip straight to "Short on time".

Why a mobile app breaks differently from a website

A website can be fixed with a five-minute deploy. A mobile app cannot: the fix must pass review, and users take days or weeks to update. According to Apple, on average 90% of submissions are reviewed in less than 24 hours, but "on average" does not mean "guaranteed on Friday morning". So anything you might need to change during the peak has to be server-controlled.

The second difference is that clients generate load themselves. Millions of devices opening the app after the same push, or thousands of clients aggressively retrying after an error, can take down a backend harder than real shoppers. The Google SRE Book describes this as cascading failure: overload in one service, amplified by retries, spreads across the whole system.

Preparation timeline

WhenWhat we doOutcome
6–8 weeks outPeak forecast, bottleneck audit, load test planTarget RPS and a risk list
4–6 weeks outLoad tests, query optimisation, caching, autoscaling tuningConfirmed capacity headroom
3–4 weeks outLast release with safeguards: kill switch, backoff, degradationA server-controlled app
2 weeks outCode freeze for mobile releases and infrastructure changesA stable version on most devices
1 week outDress rehearsal, runbook, on-call rota, warn providersThe team knows what to do
The dayWar room, dashboards, controlled push campaignsFast incident response

Why ship the last feature release 3–4 weeks ahead? So the version with safeguards has time to spread. With a phased release on the App Store, an update rolls out via automatic updates over 7 days (1%, 2%, 5%, 10%, 20%, 50%, 100%); on Google Play a staged rollout is controlled manually. And some users never enable automatic updates.

Step 1. Forecast the load and set targets

  1. Use historical data. Last year's peak requests per second (RPS), hourly dynamics, the share of mobile traffic.
  2. Factor in audience growth and marketing. Planned pushes, e-mails and ads. A push to the whole base creates a wall of traffic within minutes.
  3. Add headroom. The practical guideline we use: test at 2–3× the forecast peak.
  4. Define SLOs for the critical path. For example, catalogue API p95 ≤ 300 ms, checkout 5xx error rate ≤ 0.5%.

The critical path is not the whole app. For a store it is launch, catalogue, product page, cart, payment and order status. Recommendations, reviews and wishlists can degrade without losing revenue. Remember that according to the Baymard Institute around 70% of carts are abandoned even on ordinary days; a slow checkout at peak only makes that worse.

Step 2. Load-test the backend

Tools such as k6, Gatling or Locust let you script realistic behaviour. The key is to test mobile client scenarios, not isolated endpoints.

Test typeWhat it checksWhat to watch
Load testStability at the forecast peak for 30–60 minp95/p99 latency, error rate, database utilisation
Stress testThe breaking point and behaviour beyond itGraceful degradation versus total failure
Spike testA sudden jump, as after a mass pushAutoscaling speed, cold starts, connection queues
Soak testSeveral hours under loadMemory leaks, exhausted pools, growing queues

Typical bottlenecks we find

  • The database. Unindexed queries, N+1 in lists, an exhausted connection pool. The database usually breaks first.
  • The app's startup request. One heavy configuration endpoint called by every client at launch is a perfect candidate for a CDN and caching.
  • Third-party services. Payment, SMS, search and recommendation providers have their own limits. Warn them about the peak and confirm quotas in advance.
  • Autoscaling. New instances take minutes to start while a spike lasts seconds. Raise the minimum instance count for the peak period ahead of time.

Step 3. Safeguards in the mobile client

These must be in the app before code freeze; you cannot add them on the day.

Retries with exponential backoff and jitter

If the client retries immediately after an error, thousands of devices hit an already struggling server in sync. The right approach is exponential backoff (1 s, 2 s, 4 s…) with random jitter and a cap on attempts. The AWS Architecture Blog shows in detail why jitter matters. Retry only idempotent requests; for order creation use an idempotency key so that a retry does not create a duplicate.

Respect 429 and Retry-After

An overloaded server should return 429 Too Many Requests with a Retry-After header, and the client should honestly wait that long while showing a clear message rather than an endless spinner.

Remote config and a kill switch

With Firebase Remote Config or your own config endpoint you should be able to switch off heavy features (recommendations, live chat), lengthen refresh intervals, put the app into a "catalogue and checkout only" mode and show a maintenance banner. Check that every flag actually works, not just that it exists in code.

Circuit breakers and graceful degradation

The circuit breaker pattern, on the backend and in the client, stops calling a service that keeps failing. The app shows cached data or a simplified screen instead of a full-screen error. Google SRE advises designing systems that, under overload, shed load in a controlled way instead of collapsing entirely.

Step 4. Push campaigns without self-sabotage

A push to a million users at midnight is the easiest way to DDoS your own backend. What helps:

  • Send in waves by segment, 5–15 minutes apart, rather than to everyone at once.
  • Make the push tap open cached or static content and load personal data afterwards.
  • Mind provider limits: FCM throttles fan-out rate and messages per device.
  • Agree the push schedule with the infrastructure team, not just marketing.

Step 5. The day: monitoring and response

MetricWhere to lookAction signal (example threshold)
5xx rate on the critical pathAPM / API logs> 1% for 5 min
Checkout p95 latencyAPM> 2× baseline
Crash-free sessionsCrashlytics / SentryDrop of 0.5 pp from normal
Payment conversionProduct analyticsSharp drop while traffic grows
Database and pool utilisationInfrastructure monitoring> 80% sustained
Payment provider errorsIntegration logs, status pageAny rise in declines

Prepare a runbook: for every scenario (database down, payment provider failing, a 429 surge) define who decides, which flags to flip and what to tell users. Assign on-call engineers to each shift and a communication channel. "Turn off recommendations" should take a minute to decide, not half an hour of debate.

Common mistakes

  • Shipping a new feature the day before the peak. Any change in this window is a risk that does not pay off.
  • Testing only on staging with an empty database. A query that takes 5 ms over thousands of rows can take seconds over tens of millions.
  • Aggressive client retries. Without backoff, your app becomes the attacker.
  • Untested flags. A kill switch that does not work in older app versions is useless.
  • Forgotten third-party limits. Your backend held, but the SMS provider or geocoder started refusing.
  • No retrospective. Capture metrics and decisions after the peak, or next year starts from scratch.

Short on time: the minimum checklist

  1. Freeze releases and infrastructure changes until the peak is over.
  2. Raise minimum instance counts and check your cloud provider's limits.
  3. Cache startup config, catalogue and banners on a CDN.
  4. Warn your payment provider, SMS service and other integrations about the expected peak.
  5. Verify which remote flags actually work in the versions users have installed.
  6. Split push campaigns into waves.
  7. Set alerts on 5xx, latency, crash rate and conversion; assign on-call.
  8. Prepare user-facing messages in case of an outage.

Sources: Google SRE Book: Handling Overload; Google SRE Book: Addressing Cascading Failures; AWS: Exponential Backoff and Jitter; Martin Fowler: Circuit Breaker; RFC 6585: 429 Too Many Requests; App Store Connect: phased release; Google Play: staged rollouts; Apple: App Review; Firebase Remote Config; Firebase Cloud Messaging: throttling and quotas; Grafana k6; Baymard Institute: cart abandonment rate.

Mobile Shopping Apps: Why Global Competition Is Moving to the Smartphone

Mobile Shopping Apps: Why Global Competition Is Moving to the Smartphone

A mobile shopping app has long stopped being a digital copy of a catalog. It connects discovery, recommendations, payment, delivery and post-purchase communication. That is why competition between retail platforms increasingly happens at the level of everyday experience rather than price alone — and a local shop now competes not with the store next door but with global marketplaces shipping goods from another continent.

Below we look at what Sensor Tower’s data shows about the retail app market and share the approach we use when we design mobile commerce: from the first purchase to resolving a problem after payment.

What the market shows

According to Sensor Tower’s 2025 State of Mobile: Retail report, retail apps worldwide generated 6.6 billion downloads in 2024, and users spent 41.9 billion hours in them. Both metrics grew for the fourth year in a row. General marketplaces such as Amazon and Temu dominate the category, followed by apparel, coupons and grocery.

At the same time, the market is uneven. The US share of global retail app downloads was 11.9% and has been declining since 2021, while within the US, downloads fell 9.6% in 2024 and time spent dropped 4.5%. Growth is shifting to other markets, and Chinese e-commerce platforms such as Temu and SHEIN have turned cross-border shopping into an everyday mobile habit.

For businesses this means something simple: mobile has become a permanent touchpoint between brand and shopper, and expectations of speed, convenience and transparency are being set by the strongest global players.

What users expect

  • Find the product quickly — typo-tolerant search, filters and sorting without complex navigation.
  • See truthful information — current price, availability, delivery time and cost before checkout.
  • Not start over — a saved cart, favourites and the ability to continue on another device.
  • Pay in a few taps — Apple Pay, Google Pay, a saved address.
  • Stay in control after payment — status, push notifications, simple returns.

Baymard Institute data shows clearly where these expectations break. The average documented cart abandonment rate is about 70%, and the reasons shoppers give most often are unexpected extra costs (40%), slow delivery (20%), distrust of the site with card details (19%), mandatory account creation (18%), a complicated checkout (17%) and an unsatisfactory returns policy (13%).

The gap between promise and delivery

The weakest point in many retail apps is the gap between what the interface promises and the operational experience. A polished catalog cannot compensate for incorrect stock, an unexpected fee or a difficult return. In our projects we see that the mistakes most damaging to trust arise not in design but where the app meets the inventory system, the warehouse and the delivery service.

Product metrics should therefore cover the whole cycle, not only checkout conversion:

JourneyKey metricsTypical cause of loss
First purchaseView-to-cart and cart-to-payment conversion, time to paymentMandatory registration, hidden costs
Repeat orderShare of repeat buyers at 30 and 90 days, interval between ordersNo history, “order again” or saved details
Post-payment problemCancellations, support contacts, time to resolution, return rateIncorrect stock, opaque status, difficult returns

We explained how to combine these metrics into a payback model in our article on mobile app ROI metrics.

A step-by-step approach

  1. Describe three journeys: first purchase, repeat order and resolving a problem after payment.
  2. Walk through each yourself on a budget phone and a slow network, recording steps, errors and time to outcome.
  3. Show the full cost as early as possible: delivery, fees and the free-delivery threshold already in the cart.
  4. Remove mandatory registration from the first purchase and offer an account after payment.
  5. Sync stock and prices with the inventory system when the cart opens and before payment.
  6. Make the order status self-explanatory: users should get answers without calling support.
  7. Simplify returns: start them in the app, with clear deadlines and refund tracking.

After each step, cut everything that does not help the user decide or complete the transaction. We walked through a practical example of this approach for a niche store in our article on a mobile coffee bean shop.

How local businesses can compete with global players

Global marketplaces win on assortment and price, but a local service has advantages that are hard to copy: fast delivery, knowledge of local payment methods and carriers, support in the customer’s language, clear warranties and in-country returns. The mobile app should make these advantages visible — showing the real delivery time, local pick-up points, payment options and support contacts.

Another advantage is accuracy. A local store can guarantee truthful stock and predictable delivery, while a cross-border order often means weeks of waiting. If the app honestly keeps that promise, customers come back.

Technical quality should not be underestimated either. Fast startup, crash-free stability on budget devices and a catalog that works on a slow network are things shoppers feel every time they open the app. Global platforms invest enormous resources here, so a local store does not need to beat them on the number of features, but it should not fall behind on the speed and reliability of the core journeys.

Common mistakes and a checklist

  • Showing the delivery cost only on the last step.
  • Requiring registration before the first purchase.
  • Selling products that are no longer in stock.
  • Sending promotional push notifications instead of useful status updates.
  • Hiding returns in the support menu or requiring a phone call.

Checklist: full cost visible in the cart; guest checkout; Apple Pay and Google Pay; stock sync before payment; order status in the app and via push; returns in a few taps; cancellation, support and repeat-purchase metrics next to conversion.

Mobile commerce grows where an app makes a purchase predictable. Global competition only strengthens this requirement: a local service can beat an international player when it understands context better and keeps its promise more reliably.

Sources: Sensor Tower: 2025 State of Mobile: Retail; Baymard Institute: Cart Abandonment Rate Statistics; Apple Pay for developers; Google Pay API.

Journal

Ideas and products