Production monitoring

Synthetic vs real-user (RUM) monitoring: what is the difference?

Two approaches are often combined when monitoring user experience. Synthetic monitoring runs predefined tests that follow key journeys through the system at regular intervals, even when no one is currently shopping. Real-user monitoring (RUM) measures how the website behaved for actual visitors using data from their browsers. The RUM result depends on the implementation, sampling and quality of the data collected. Each approach answers a different question and captures different phenomena.

A common problem: one type of monitoring shows only part of the picture

A business has analytics or an uptime check installed and believes that “monitoring is covered”. Those tools may not verify the correct completion of an entire user journey.

RUM may show that some visitors experienced a payment problem, but only after real traffic has passed through the monitored journey. The breadth of the picture also depends on sampling, consent and the data the implementation actually collects. If no one shops at night, RUM may have no new data for the purchase journey during that period, even though a version that breaks the basket was deployed at that very time.

How synthetic monitoring and RUM complement each other

Synthetic monitoring is proactive. It does not wait for a customer. A browser follows the agreed journey at regular intervals. If a step fails, an alert can arrive even when there is no traffic. Detection time depends on the interval, confirmation runs and service configuration. It also captures situations that server-availability monitoring alone may miss.

RUM is based on real traffic. It measures real performance and behaviour on actual devices and networks. These are figures that synthetic checks from a handful of monitoring runs cannot provide. It can show trends and monitored visitors’ experiences and, depending on configuration, alert on changes. It requires a user to encounter the monitored situation and the measurement to be collected successfully.

We provide synthetic monitoring. A production run can reuse an adapted part of the regression scenarios, but requires dedicated accounts, controlled data and clean-up, as well as security rules for the particular integrations. RUM complements it well: a synthetic scenario verifies the agreed journey, while RUM describes the experience of actual visitors according to the available data.

Which approach do you need first?

Start with the question you cannot currently answer. For an internal system with little traffic, a regular sign-in check may be more important. For a public shop used on different devices, you may need to explain why some customers experience slow checkout even though the monitoring scenario passes.

Need Suitable starting point What to add
Detect a known journey failing even without traffic Synthetic scenario with an outcome assertion Verification that runs and notifications work
Investigate performance for different visitors RUM with suitable data and sampling Segmentation by device, browser and monitored page
Explain a server error Application logs, metrics or tracing User context from a synthetic scenario or RUM
Verify correct order contents Agreed data and outcome assertions Measuring speed alone is insufficient

RUM is not automatically a record of every click or proof that an order is correct. For example, CloudWatch RUM distinguishes performance data, JavaScript errors and interactions according to the collection options enabled. Check the measurements collected before expecting a particular answer from the tool.

Why results can differ

A green synthetic scenario and worse performance in RUM are not necessarily contradictory. The monitoring account may have different content, a faster connection or a different journey from a visitor. In its comparison of lab and field data, Google also explains the effects of devices, networks, caching and user interactions. A single monitoring-run value therefore does not represent all traffic.

A procedure for an illustrative situation where the purchase check passes but RUM shows a deterioration:

  1. Verify that you are measuring the same page and period. The duration of an entire purchase is not the same metric as a single page’s load time.
  2. Identify which visitors are affected. Separate mobile browsers from desktop browsers, for example, and check the measurement count.
  3. Compare the monitored journey, authentication state and content with the monitoring account. A difference is a basis for another scenario, not a reason to ignore RUM.
  4. Investigate related errors or slow responses in the application. A change coinciding with a release does not establish the cause on its own.
  5. After the fix, repeat the monitoring scenario and observe a comparable group of real-user measurements.

The reverse situation is also possible: the monitoring account failed but most visitors have no problem. Investigate the account, data and execution location. Also establish whether a smaller group of customers has the same problem. A favourable overall average may hide it.

How to interpret sampling and the time period

Alongside a RUM value, you need the measurement count, period and collection conditions. A change in sampling or traffic after a campaign may change the composition of the data. Compare equivalent groups and state when data is limited. Missing data means you have no new measurement, not that everything works.

RUM results may also differ from the values in PageSpeed Insights. In its guidance on differences between CrUX and RUM, Google highlights different users, sampling and aggregation. For a comparison with CrUX, align the supported visitor population, metric, percentile and 28-day period. Your own shorter-period view may help investigate a current change, but it does not mean the same thing as that aggregate.

If you are interested in yesterday’s release, do not expect a broader monthly view to isolate its effect precisely. Mark the deployment on the timeline and examine available data before and after it. With few visits, label the conclusion as preliminary.

What to resolve when collecting visitor data

Before enabling RUM, define the data you need, where it is sent, who can access it and how long it is stored. Assess visitor information and any necessary consent according to the deployment and applicable requirements. This assessment does not depend only on whether the tool uses cookies.

The CloudWatch RUM privacy documentation states that certain information is collected even without identification cookies enabled. It also warns against personal data in free-form fields. Review URLs, error messages and additional events in your configuration. Do not send payment-form contents or secret authentication values into monitoring.

Verify the collection scope using controlled data. Do not confuse performance RUM with session recording. If you also record sessions, assess its configuration and sensitive-content masking separately.

How to introduce both without unnecessary alerts

Choose one important journey, define the synthetic check’s outcome and a suitable RUM question alongside it. For an illustrative purchase, the synthetic scenario can verify an agreed checkout step, while RUM observes that page’s performance and available errors on real devices. State the check boundary explicitly, particularly when the scenario stops before payment.

For each signal, define severity, a recipient and the response procedure. A performance deterioration does not always need the same alert as a failed purchase. Cause a known problem in a controlled environment and verify that the relevant check records it and correctly delivers a notification. After the fix, verify the outcome and resumed data collection. This gives the team two complementary answers it can understand.

What the right combination gives you

Next step

Do you have analytics but no alert when checkout fails? During a no-obligation consultation, we will propose scenarios, an interval and alerting rules for your key journeys.

Related topics

You might also be interested in

Detect an outage before a customer reports it

We write scripts that validate purchase, login and payment in production and plug them into your pipeline or scheduler - you run them.