Switching and Binding Realtime Graphs
Your workspace’s realtime identity graph decides who is one person for every realtime audience, sync, Store and Site. This page shows how to replace it with a graph that has different rules, how to try that graph against real traffic before anyone reads it, and how to let a second graph serve a particular parent model, such as an account graph for your Accounts model.
Roles a graph can have
Every graph that links events has one role, shown on its Realtime tab and in the Realtime column of the Identity Resolution list:
| Role | What it means |
|---|---|
| Primary realtime | Serves the SDK, the identity API, Sites, and every parent model no other graph serves. A workspace has exactly one. |
| Realtime: Accounts | Serves the parent models listed, here Accounts. Everything else reads the primary graph. |
| Candidate for Event identity | Receives the same events as the graph named and starts from its people, but nothing reads it yet. |
| Warm | Was replaced by a switch. It is still updated, so you can switch back until the date shown. |
| Events only | Links events but serves nothing. |
A workspace can have up to four graphs serving at once, and each serving graph can have one candidate.
Audiences, syncs, Stores and Sites never choose a graph themselves. Each reads the graph that serves its parent model, and the primary graph otherwise. A realtime sync follows its audience, and a Store keyed by profile ID follows the model that feeds it.
Replacing a graph: Prepare, Compare, Switch
Every change of role uses the same three steps, so you always see what will change before it does.
1. Prepare
Open the serving graph’s Realtime tab and select Prepare a replacement. Name the new graph; it starts with the same rules and the same people as the graph it replaces, so each person keeps their profile ID. Change its rules on its own page, for example a stricter limit on how many devices one person can have.
To prepare an existing graph instead, open its Realtime tab and select Prepare as a candidate. A graph built only in your warehouse first needs a realtime half: select Link events in real time on its Configuration tab (see Setting Up Realtime Identity).
The candidate receives the same events from now on. It serves nothing until you switch it in, so preparing one never changes what an audience or a destination sees.
2. Compare
When the candidate is ready, select Compare and switch. The comparison shows:
- how many people would get another profile ID, and how many the candidate joins or splits;
- the rule differences in plain words, for example “Shared devices: latest owner → first owner”;
- the realtime audiences that would read another graph;
- the checks the switch has to pass.
A switch waits until the candidate has caught up with the events the current graph has linked, and until event sources read by more than one serving graph read user IDs and anonymous IDs from the same fields.
3. Switch
Type the candidate’s name and select Switch. Roles move in one step. Before you confirm, the comparison tells you what the switch sends:
- Destination merges caused by the switch wait until it is finalized, so switching back costs nothing at the destination.
- Audience entries and exits are delivered as they happen. They are not undone by switching back.
Switching back and finalizing
After a switch, the replaced graph stays warm for its warm period, seven days by default. You can change it on the graph’s realtime settings.
- Switch back restores the roles from before the switch. The candidate becomes a candidate again, so you can adjust it and switch once more.
- Finalize now ends the warm period: merges waiting for the switch are sent and the replaced graph stops being updated.
A switch is finalized on its own when the warm period ends. Two days before, everyone who can manage realtime graphs is emailed.
Graphs for particular parent models
Some parent models describe something other than one human. An Accounts model groups everyone in a household or a company, so its audiences should count the whole account together, while everything else keeps counting individuals. Give the Accounts model a graph of its own, and the rest of the workspace keeps the primary graph.
A graph can serve a parent model it holds: the model of its golden record, or a user model of its warehouse half. Serving a parent model appears in Prepare as a candidate once your workspace has a second parent model with a golden record. Choose Only these parent models and tick them, then compare and switch as usual.
When a graph builds a parent model’s golden record but another graph serves it, the Realtime identity card recommends serving it with the graph that builds it. Until then, that model’s realtime audiences match people by their own identifiers, exactly as before.
When a switch is blocked
Moving a parent model away from the graph that builds its golden record would change who its realtime audiences count, so the switch is blocked while realtime audiences read it. The block offers one click: Keep Event identity serving Customers. The graph you are replacing then keeps serving that model, and the rest of the switch goes ahead.
To return a parent model to the primary graph, open the graph that serves it and select Serve with the primary instead. That too waits until no realtime audience depends on the graph that builds the model.
Deleting a graph with a role
A graph that has a realtime role cannot be deleted until it gives the role up, and its Delete action says what to do first:
| The graph is | Do this first |
|---|---|
| The primary graph | Promote another graph to primary |
| Serving, with a candidate | Stop or switch its candidate |
| Serving a parent model | Replace it with a candidate and switch |
| A candidate | Stop the candidate |
| Warm after a switch | Finalize the switch, or wait until it finalizes on its own |
Preparing, switching, switching back and finalizing need the Manage realtime identity permission, which owners and admins have. Every change is recorded in the workspace audit log. Zeotap Agent can prepare and compare candidates for you; a person approves every switch, switch back and finalize it proposes.