# Running in parallel

> Run Braze and Herald side by side during a migration, with separate audiences or a holdout, without double sends, with aligned identities and a fair measurement.

A parallel run lets your team move users to Herald in stages while Braze keeps serving everyone else. It lowers the risk of the migration and gives you a measured comparison before cutover. This page covers how to split the audience, how to avoid sending twice, how to keep identities aligned and how to measure.

## What runs where

During the run, your app ships with both SDKs. Each one does its own job:

| | Braze SDK | Herald SDK |
|---|---|---|
| Identity | `changeUser` with your External ID | `identify` with the same External ID, plus `setUserToken` |
| Events | As today | The same calls, sent to Herald |
| Push tokens | Registered with Braze | Registered with Herald |
| Push display and taps | Braze pushes | Herald pushes |
| Content cards and in-app messages | Braze messages | Herald messages |

Both SDKs can register the same APNs or FCM token: a token belongs to your app, and each platform sends to it independently. That is also why you must decide, per user, which platform sends.

## 1. Split the audience

Pick one of two designs.

**Separate audiences.** Assign each user to Braze or to Herald for each message type. Build the split as a warehouse segment, for example a stable hash of the External ID, and load it into both platforms: into Braze as an attribute, and into Herald as a user attribute through `/api/v1/users`, then build the Herald segment from it in the console. Target Braze campaigns at one side and Herald agents at the other.

**Holdout.** Herald serves most users, and a fixed holdout, typically a stable 10 to 15 percent, stays on your current Braze program or receives nothing. Sync the holdout as a segment and exclude it from every Herald agent. The gap between the two groups is the incremental effect.

Whichever you choose, keep the assignment stable for the whole run. A user who moves between groups weakens the comparison.

## 2. Avoid double sends

| Risk | Prevention |
|---|---|
| Both platforms push the same user | Each user is in exactly one audience per channel. Exclude the Herald segment from Braze campaigns and Canvases, and the Braze segment from Herald agents. |
| Both platforms show an in-app message in one session | The same split applies to in-app messages. If a user can still get both, set an `InAppMessageDelegate` in the Herald SDK that holds messages while a Braze message is on screen. |
| A content card appears in two feeds | Show only one feed per user, chosen by the same assignment. |
| Push taps are counted by the wrong SDK | Pass every notification response to both SDKs. Each recognizes only its own pushes: `handleNotificationResponse` and `handleNotificationIntent` return `false` for pushes that are not from Herald. |
| Two FCM services in one Android app | Android delivers to one `FirebaseMessagingService`. Subclass `HeraldMessagingService`, override `onNonHeraldMessage` and pass those messages to Braze's handler there. |

## 3. Keep identities aligned

- Call `identify` and `changeUser` with the same External ID at the same point in your sign-in flow, and `reset()` at sign-out.
- Use the ID your warehouse uses, so segments, attributes and conversion events line up in both platforms.
- Set the user token right after `identify`. With verification **Required**, identified traffic without a token is rejected.
- Check a sample: look up a few test users in **Audience > Search users** in Herald and in Braze, and compare attributes.

## 4. Measure

- **Pick the metric before you start.** Use the conversion your agents' goals measure, not opens or clicks alone. Both platforms should be judged on the same event, from the same warehouse source.
- **Compare like for like.** Compare the two groups over the same dates, on the same channels.
- **Give agents time.** An agent spreads sends across variants at first, then shifts toward what works. Judge after it has had several weeks of sends.
- **Watch delivery health.** Track push send failures, opt-out rates and in-app impressions per group, so a setup problem does not pass as a result.

## 5. Expand in stages

Move a small share first, confirm delivery and measurement, then widen the Herald audience step by step. Keep the holdout, if you use one, until cutover.

## Next

- [Cutover checklist](/docs/migration/cutover-checklist)
- [Sync from your warehouse](/docs/migration/warehouse-sync)
