Luma Commons
    software craft

    Your App Has No Earthquake Plan (And That's a Real Problem)

    NN
    Nikhil Nangia
    July 12, 2026
    6 min read
    Seismograph readout showing sharp spike in activity, representing sudden traffic surges in mobile apps

    Every time there's a major earthquake, the same thing happens. Millions of people grab their phones at the exact same moment and start searching, refreshing, texting, and opening apps. Traffic spikes 10x in minutes. And most apps that were running fine at 9 AM are throwing 500 errors by 9:03.


    If you're building anything with a real-time component, a location layer, or a social feed, this is your problem too. Emergency spikes are just the most dramatic version of a pattern that plays out at sports finals, news events, and product launches. The apps that survive those moments were built differently. Here's how to do it.


    1. Understand What an Emergency Spike Actually Looks Like


    It's not a gradual ramp. It's a vertical line on your traffic graph. The 2024 New Madrid tremors caused regional weather and map apps to see 15x their normal load in under four minutes.


    Your autoscaling policy almost certainly isn't configured to respond that fast. Most default settings assume you have five to ten minutes to scale up. You don't.


    2. Cache Aggressively at the Edge, Not Just at the Origin


    When thousands of users request the same "current earthquake data" or "shelter locations near me" simultaneously, the answer should never travel all the way to your database every time. Put a CDN in front of your API responses and set aggressive TTLs for content that updates on a predictable schedule.


    For genuinely real-time data, explore stale-while-revalidate patterns. Users get a response instantly, and the cache refreshes in the background. It's not perfect freshness, but it's infinitely better than a timeout.


    3. Design Your App to Degrade Gracefully


    When your backend is struggling, your app should still show something useful. Static fallback screens, cached local data, and clear messaging beat a blank white screen every time.


    Think through each feature and ask: what does this look like when the network call fails? If the answer is "nothing renders," that's the thing you fix first. A user in a stressful situation who sees your app show a helpful offline state will trust you more, not less.


    4. Treat Location Queries as a Bottleneck


    Emergency moments are location-heavy. Everyone wants to know what's happening near them. If your app fires a raw location query against your database on every request, you've just built a denial-of-service machine you'll aim at yourself.


    Geospatial queries are expensive. Cache them at a grid level, not at the exact coordinate. Rounding a user's location to the nearest kilometer before querying reduces your unique query count by orders of magnitude without meaningfully affecting the answer.


    5. Build a Read-Only Mode and Actually Test It


    Some operations can wait. Account updates, preference saves, and analytics events don't need to succeed in the first 60 seconds of a traffic surge. Build a circuit breaker that sheds write traffic when your system is under pressure, and keep reads alive.


    Then test it. Actually simulate the failure. Run a load test that hits twice your record traffic and watch what breaks. You want to find the weak points in staging, not at 9:03 AM on a Tuesday.


    6. Push Notifications Can Make the Spike Worse


    Here's one that surprises people. If your app sends a push notification to all users at the moment of a breaking event, you are personally scheduling a traffic spike. Every recipient who taps that notification becomes a simultaneous cold open.


    Stagger your sends. Batch by timezone, by user segment, or just by random cohort. Sending to 20% of your audience every two minutes produces a much smoother load curve than sending to 100% at once.


    7. Put Status Pages and Fallback URLs in Your App Itself


    When things go wrong, your users will look for information. If your app is down and your status page is hosted on the same infrastructure, you've solved nothing. Use a third-party status page provider that operates independently from your stack.


    Better yet, hardcode the URL in your app and surface it in your error state. A user who can check your status page feels informed. A user staring at a spinner feels abandoned.


    8. Log the Spike So You Can Learn From It


    Post-incident reviews are where resilient apps get built. After every major traffic event, pull your logs and find the first thing that broke, not the most dramatic thing.


    Usually it's something embarrassingly small. A single unindexed database column. A third-party SDK making synchronous network calls on the main thread. A rate limit you forgot to configure. Fix those things and you've done more good than any amount of theoretical architecture planning.


    9. Talk to Your Infrastructure Provider Before the Event, Not After


    If you're on AWS, GCP, or Azure, you can call them. Seriously. Large cloud providers have solutions architects who will review your architecture and flag risks for free, because they want you to succeed on their platform.


    If you know a big event is coming, like a product launch or a partnership that will drive coverage, give your provider a heads-up. They can pre-warm capacity in ways that autoscaling alone cannot replicate.


    10. Resilience Is a Product Feature, Not Just an Ops Concern


    The apps people remember after a crisis are the ones that worked. Not the flashiest ones, not the ones with the best onboarding flow. The ones that were there when it mattered.


    That reputation compounds. It gets shared in group chats and community forums. It turns stressed-out first-time users into long-term loyalists. Building for the spike isn't just good engineering, it's good product strategy.


    If you want help stress-testing your mobile architecture before the next unexpected moment hits, the team at Luma Commons works through exactly these kinds of problems with founders and engineering leads.

    Did you find this useful?
    resilience
    mobile-architecture
    performance
    scalability
    incident-response
    NN

    Nikhil Nangia

    Founder & Seasoned iOS Expert

    Seasoned iOS expert with 9+ years of experience building fintech, regulated, and consumer mobile products. Nikhil specializes in Swift, app architecture, and technical due diligence for pre-acquisition reviews.