Segment Diff Service

The segment-diff-service is a companion service to the normal segmentation-service. The service can be used when you need to find out what contacts were added/removed to/from a segment on a regular basis. It was developed because the CRM Ads application needed a way to keep segments in sync with their remote audience counterparts.

See the list on the right for pages with more technical details of this service especially REST API page.

Segment Diff Service (SDS) is maintained by Mobile Engage In-app team. You contact us at Slack channel #team-mobile-inapp.

Basic Workflow

1. Segment is requested by client

The first time a client requests a segment it does not have a version to compare against and will therefore receive the full segment as a response. The current segment version is also part of the response so that the client can use this when requesting changes in the future.

2. Segment is automatically updated by service

On a regular interval it pulls all registered segments from the segment service, created a new version and compares it to the previous one and saves the diff in the local db.

3. Changes to Segment is requested by client

The client request differences compared to its current version. If the client has version 5 of the segment and the current version is 9 it will receive all differences between 5 and 9.