Back to Resources
Case Study7 min read

How We Cut Healthcare App Load Time by 40% Using Edge Caching

SynticAI EngineeringPublished • Mar 10, 2026

The Challenge

In the healthcare sector, every second counts. A major Electronic Medical Records (EMR) provider approached us with a significant problem: their web application was taking upwards of 3.2 seconds to load critical patient data summaries. For medical professionals relying on rapid information retrieval during patient consultations, this delay was unacceptable and was leading to significant user frustration and task drop-offs.

The core of the issue lay in their legacy architecture. Every time a user requested a dashboard, the server had to process complex SQL queries across millions of rows of heavily encrypted relational data, construct the JSON payload, and serve it across the globe from a single centralized data center in Ohio. As their user base scaled past 50,000 daily active users across three continents, the database bottlenecks and geographic latency compounded.

The Architecture Redesign

To solve this without compromising the strict HIPAA compliance required for medical data, we implemented a sophisticated edge-caching architecture leveraging Next.js Incremental Static Regeneration (ISR) combined with Cloudflare's Edge Network.

First, we decoupled the public-facing and non-sensitive metadata (like hospital structural data, taxonomies, and anonymized aggregate statistics) from the highly sensitive Protected Health Information (PHI). We aggressively cached the non-sensitive data at the edge nodes closest to the users, cutting out the database round-trip entirely for 40% of the initial page load payload.

  • API Gateway Proxy: Implemented a secure gateway that intelligently routed calls, serving cached data from the edge while proxying PHI calls securely to the central secure server.
  • Next.js ISR: We utilized Next.js ISR to keep the semi-dynamic dashboards up to date. This meant the first user to request a newly updated view might wait 1 second, but the next 1,000 users would receive a sub-100ms response.
  • Optimistic UI Updates: We rewrote the React frontend to use optimistic UI updates and skeleton loaders, completely eliminating the perceived waiting time for users querying complex patient histories.

The Results

The impact was immediate and profound. Average Time to Interactive (TTI) dropped from 3.2 seconds to consistently under 400 milliseconds globally. The database load was reduced by 65%, freeing up resources for complex analytic queries, and user satisfaction surveys score shot up by 42%.