Skip to main content

Using Delta Subscribe

Since a client must process delta subscriptions using substantially different logic than regular subscriptions, delta subscription is implemented as a separate set of AMPS commands rather than simply as an option on subscribe commands. AMPS supports two different ways to request a delta subscription:

CommandResult
delta_subscribeRegister a delta subscription, starting with newly received messages.
sow_and_delta_subscribeReplay the state of the SOW and atomically register a delta subscription.

Applications most commonly use sow_and_delta_subscribe to receive the current state of messages in the SOW before they begin receiving deltas.