Handling Deactivated Customers

Overview

Concept should solve the following problems

  • Handling of temporarily deactivated customers. Avoiding deleting segment data

  • Outage or bad behaviour in communication with segmentation service

HTTP Status 401 with ReplyCode 1

is returned when the customer is inactive or does not exist. An inactive customer can get active again, i.e. no data should be deleted.

But the sync has to be paused for some time otherwise the syncer will pick up the same segment again. There is already the column last_segment_evaluation_error_at which can pause a sync. That column can be renamed to pause_sync_until and used for the segment evaluation error and inactive customers.

pause_sync_until has to be updated to null after a successful sync.

The current implementation already avoid creating a segment row when the customer or the segment does not exist.

Customer Deletion

When receiving a customer deletion message via PubSub SDS can remove all snapshots and diffs for that customer.

Segment Life Cycle

Segment Life Cycle