
Key takeaways
- Past about one second of waiting, users lose their flow. Past 10 seconds, you’ve lost their attention. Dashboards live or die inside that window.
- Never compute a dashboard number from raw events at page load. Pre-aggregate into rollups and read those instead.
- Keep the path that records events separate from the path that serves the dashboard, so a traffic spike on one doesn’t slow the other.
- Load the two or three headline numbers first and let the charts fill in after. Perceived speed is a design decision.
- Every metric on screen should sit next to the action it suggests. A number without a next step is just a report.
In 2022 I worked at Twitter, now X, as a software engineer on ad conversion, using AI and machine learning. The data systems I built there processed over 100 million events a day. That’s a scale where you stop thinking of performance as a nice-to-have, because any shortcut you take shows up immediately.
I’m not going to describe Twitter’s internal systems here, and you don’t need them. The patterns that keep a real-time analytics dashboard fast are well known and well documented. What that job gave me was a strong sense of which ones matter most, and they apply just as much to a SaaS product with a few thousand users as to an ad platform. Here’s what I’d tell any founder building one.
Why does dashboard speed matter so much?
Because people judge whether they can trust your numbers by how fast they show up. A dashboard that takes five seconds to load reads as a system that might be wrong.
Delays longer than about one second interrupt a user’s flow of thought, and past 10 seconds you lose their attention to the task.
Those limits from Nielsen Norman Group aren’t new, and they’re still the right frame for dashboard performance. Under a tenth of a second feels instant. Under a second, users notice the delay but keep going. Past that, they need a loading indicator, and past 10 seconds they’re in another tab.
For analytics users the stakes are higher than for a content page. Someone checking a dashboard is usually about to make a decision: move budget, pause something, call a customer. If the number is slow, they either wait and get annoyed or act without it. Neither is what you built the dashboard for.
Should a dashboard query raw events?
No. Raw events are for storage and reprocessing. The dashboard should read pre-aggregated rollups, summaries that are computed ahead of time, so each number on screen is a lookup instead of a calculation.
This is the single biggest lever in dashboard performance. If a chart shows clicks per day for the last 90 days, the slow way is to count millions of click rows every time someone opens the page. The fast way is a rollup table with one row per customer per day, updated as events arrive. The chart reads 90 rows.
A few things make rollups work well in practice:
- Roll up at the grain people actually view. Hourly and daily rollups cover most dashboards. You don’t need every possible slice precomputed.
- Watch which metrics combine cleanly. Sums and counts add up across days. Unique users don’t, so you need a different approach (such as storing sketches or recomputing) for distinct counts.
- Decide how fresh “real time” needs to be. Most users are happy with numbers that are a minute old. Seconds-fresh data costs more to build and run, so ask what decision depends on it before you pay for it.
- Keep the raw data. When you find a bug in a rollup, and you will, you need the raw events to rebuild it.
In a typical SaaS stack this can be as simple as summary tables in PostgreSQL updated by a background job. At larger volumes teams reach for streaming pipelines or columnar databases, but the principle doesn’t change. In a multi-tenant product, build those summaries per tenant, so one large customer never slows down everyone else’s charts. Our multi-tenant SaaS architecture guide covers that side.
How do you keep a dashboard fast during a traffic spike?
Separate the system that records activity from the system that displays it. Writes go into a queue and get processed in the background, and the dashboard reads from its own store, so a flood of incoming events doesn’t touch page load times.
When both paths share one database, a spike in incoming data and a spike in people checking their dashboards compete for the same resources, and they tend to happen at the same moment. Splitting them means:
- Incoming events land in a queue first, so bursts get absorbed instead of hitting the database all at once.
- Background workers process that queue and update the rollups at their own pace.
- The read side serves dashboards from a store tuned for reads, whether that’s a replica, a separate analytics database, or a cache.
Where caching fits
Caching sits on the read path. Popular views, like the default dashboard for an account, get stored ready to serve for a short time instead of being rebuilt on every request. Redis is a common choice. The rule I’d hold to is that every cached number needs a clear expiry, and the screen should show when the data was last updated so nobody mistakes a cached value for a live one.
What should a dashboard load first?
The two or three numbers the user opened it for. Load those in the first request, then let secondary charts and tables fill in after.
A dashboard doesn’t have to arrive all at once. Splitting it into a fast headline request and slower follow-up requests means the user sees something useful almost immediately, even if a detailed breakdown takes another second. Skeleton placeholders for the pending charts keep the layout from jumping around while they load.
Two habits help here. Paginate or lazy-load long tables instead of shipping every row to the browser. And measure dashboard performance per widget, not just per page, because one slow query can hide inside an average that looks fine.
How do you turn dashboard data into action?
Put the action next to the metric that triggers it. If a number tells the user something needs to change, the control to change it should be one click away on the same screen.
Ad platforms are a clear example of this pattern in public: a campaign that’s running low on budget shows the status and a way to add budget in the same place. The same idea applies anywhere. A churn-risk score next to a “contact customer” button. A failed payment next to “retry.” A spike in errors next to a link to the logs.
It also forces discipline about what goes on screen. If you can’t name the action a metric should prompt, it probably belongs in a report, not on the main dashboard. Real-time data earns its cost when someone acts on it in the next few minutes. That’s the same reason the KYC compliance platform we built does risk scoring in real time: the score matters at the moment someone decides whether to onboard a client. The same rule shapes client portal dashboards: answer one question first, and put the action right next to it.
The bottom line
A fast real-time analytics dashboard comes from a handful of choices made early: read from rollups instead of raw events, keep writes and reads apart, cache with clear expiry, load the headline numbers first, and pair every metric with an action. None of it is exotic. It just has to be designed in rather than patched on after users start complaining.
If you’re planning a dashboard or fixing a slow one, book a free 30-minute call and we’ll talk through where the time is going. You can also read about our custom SaaS development process or meet the team behind the work.
Common questions
What is real-time analytics?
Real-time analytics is the practice of collecting, processing, and reporting data within seconds or minutes of it happening, instead of in a nightly or weekly batch. It lets teams react to what is happening now, such as a spike in sign-ups, a failing payment flow, or ad spend running ahead of budget.
What is a real-time dashboard?
A real-time dashboard is a screen that updates as new data arrives, usually within seconds or a minute, so users see current activity like sales, usage, or ad spend without waiting for a report. How fresh it needs to be depends on the decisions people make with it.
How fast should a dashboard load?
Aim for the headline numbers in under a second. Nielsen Norman Group’s research puts one second as the limit for keeping a user’s flow of thought uninterrupted, and 10 seconds as the point where you lose their attention. Secondary charts can load a moment later as long as the main numbers arrive first.
What database is best for real-time analytics?
For most SaaS products, PostgreSQL with well-designed summary tables and a cache like Redis is enough. Columnar databases built for analytics make sense once you’re querying very large event volumes. Pick based on your actual data size and freshness needs, not on what the largest platforms use.