Campaign refresh
- Follow suppression, eligibility recheck and injection through an overlapping partner file window.
Diagram phase
Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.
- CP means Customer Power. Suppression withdraws a campaign there. Injection publishes a campaign using the offers that still qualify when the injection consumer runs.
- Queue egress controls delivery of waiting messages to workers. File processing can pause egress while eligible offer changes continue to accumulate.
Reading
- The report/webhook controls suppression-queue delivery while CP processes a file. Changes can accumulate during the hold.
- Direct suppression finishes with suppression and audit. The lower steps show the conditional refresh branch. A utilization/reversal staging failure interrupts this handoff.
- The refresh producer schedules injection before its audit write. The effective commit and delivery order depends on DB/JMS enlistment.
- Hold overlapping windows by queue scope. Resume after every applicable window completes and the broker state is reconciled.
- Preserve the utilization/reversal update prerequisite. Persist a staging failure as pending recovery and hold injection until that update succeeds.
- Commit the outcome and next required action together. Refreshes without the external-update stage may create the injection intent immediately.
- Direct suppression finishes at confirmation. Refresh checks the current offer again before sending an injection.
Campaign refresh
Campaign refresh
Customer Power suppression, external updates and eligible injections
Current suppression and refresh
- LCM owns loan offers. Customer Power (CP) displays campaigns. A PAN-scoped trigger can resolve to several customers and active offers.
- Direct suppression can finish after CP suppression and its audit. A refresh adds injection work for applicable campaigns.
- For utilization/reversal, LCM stages an external offer update after suppression. A staging failure interrupts the path before injection handoff.
- The refresh producer publishes injection work before writing the suppression audit. The injection consumer reads that audit, re-inquires offers, checks per-record injection audit and calls CP for eligible records.
Where a refresh can stop halfway
| Event | Consequence | Acceptance check |
|---|---|---|
| CP withdraws a banner and the worker dies before recording the result | Delivery may return while the remote outcome is ambiguous | Drop the reply after CP accepts a synthetic suppression |
| Injection is published while the suppression audit remains invisible | A consumer can encounter a missing prerequisite if transactions permit that ordering | Trace actual commit, acknowledgement and redelivery under the deployed resource adapter |
| Offer eligibility changes during CP processing | A late request can restore an obsolete banner | Deliver a version change while the earlier request remains in flight |
- The refresh producer can enqueue work before its audit commits. DB/JMS transaction enlistment determines when the consumer can see those changes.
Proposed authoritative handoff
- Record confirmed suppression and its next required action in one local transaction. Direct suppression ends there. A refresh can record an injection intent, or a pending external-update step when utilization/reversal requires it.
- A worker resuming a pending external update keeps the confirmed suppression. Commit the injection intent only after required staging succeeds. Verify the staging owner’s idempotency and transaction scope before automating this path.
- First test the existing dispatcher and transaction boundary. Reuse an existing durable handoff if it survives a crash between stage completion and message delivery. Otherwise publish pending intents with a restartable dispatcher and deduplicate repeated consumption.
- For each customer/product/campaign target, re-read eligibility at dispatch. Track source version and serialize conflicting effects at that business scope. A crash or an ambiguous remote call requires reconciliation before overlapping work proceeds.
- Stage rollout by comparing proposed decisions with observed audit outcomes. Move one operation family to the new writer. Before reverting, drain or transfer pending intents and retain their identity mapping.
File windows and backlog
File windows and backlog
AutoSys file completion and Solace queue egress
Current pause and resume
- Report generation checks suppression-queue egress and pauses it through SEMP. New changes can continue to queue. The operating mechanism leaves consumers in place.
- AutoSys signals external file completion. The webhook checks the broker state, resumes egress when needed and records the transition.
- A broker pause governs delivery from the named queue. Verify how already-dispatched requests, injection and retry consumers behave before declaring a quiet CP file window.
Two files complete out of order
- If A and B can overlap, disable/enable prechecks alone cannot tell whether B still owns the hold when A completes. First establish whether the scheduling contract already enforces a single active window.
- If overlap is possible, store distinct window identities under a queue-scoped owner. A repeated callback closes the same window once. Reconcile the latest desired state with actual broker state after a management timeout or controller restart.
- Agree the business timezone, file generation and callback identity with the scheduler. Use a clock deadline to alert on a missing completion. Reopening egress needs evidence that the relevant file finished.
- If CP also requires in-flight attempts to finish before file processing starts, coordinate admission across every applicable worker and acknowledge quiescence explicitly. Disabling egress alone cannot provide this handshake.
Illustrative overlapping file windowsjson
{
"fixture": "Proposed queue-control acceptance scenario",
"queueScope": "campaign-suppression",
"initialOpenWindows": [],
"events": [
{"event": "reportReady", "window": "A", "openAfter": ["A"], "desiredEgress": "disabled"},
{"event": "reportReady", "window": "B", "openAfter": ["A", "B"], "desiredEgress": "disabled"},
{"event": "fileComplete", "window": "A", "openAfter": ["B"], "desiredEgress": "disabled"},
{"event": "fileComplete", "window": "A", "openAfter": ["B"], "desiredEgress": "disabled"},
{"event": "fileComplete", "window": "B", "openAfter": [], "desiredEgress": "enabled"}
],
"acceptance": [
"Persist window membership and desired egress under one queue-scoped serialization rule.",
"Serialize management writes, then read the broker state back. Reconcile the latest desired state after a crash or uncertain reply.",
"Hold an unmatched early completion for investigation. Dispatch to CP only when the applicable windows are closed and normal plus retry capacity permits."
]
}
Bound the release wave
- Illustrative hold: 10 changes/s for 30 minutes adds 18,000 queued changes. At 25 completed changes/s and 10 new arrivals/s, clearing the extra backlog takes about 20 minutes. This assumes stable rates, no expiry and comparable work per change.
- Budget CP attempts separately. A single change can fan out across customers or require both suppression and injection. Limit normal plus retry attempts together and track oldest pending age, headroom, expirations and unknown outcomes.
- Exercise overlapping windows, repeated completions, delayed callbacks and an unavailable broker controller. Verify the old controller can take ownership without reopening a still-active window before rolling back.
Retry and reconciliation
JMS 2.0 · Stage identity and retry ownership
Current retry ownership
- Normal CP work and retry messages use separate paths. A retry MDB checks delivery count and current eligibility before attempting the business stage again.
- The normal and retry envelopes carry different identity fields. Match the target and stage, then check the recorded outcome. An audit row can also represent a failed attempt.
- A custom JMS consumer can delay redelivery under local transaction control. Before adopting this approach, check who owns acknowledgement and delay in the container-managed path.
Use the previous stage outcome
| Observation | Proposed action | Recovery boundary |
|---|---|---|
| Confirmed suppression, eligible successor | Resume the pending injection for that target | Direct suppression ends here |
| Proven transient failure before send | Retry the same stage within the shared attempt and deadline budget | Preserve the original operation and target |
| Timeout after a possible send | Record UNKNOWN and reconcile with CP | A remote receipt, authoritative query or documented provider deduplication contract is required for automatic resolution |
| Permanent rejection, missing target or malformed identity | Park with evidence and an owner | Repair/review before any further send |
- Each lease or transaction protects only its local scope. Once an old request has reached CP, a newer LCM version cannot cancel its remote effect. Resolve ordering or reconcile desired versus observed campaign state.
Illustrative timeout and redelivery recordjson
{
"fixture": "Proposed refresh recovery after an ambiguous CP reply",
"operationId": "offer-change-42",
"target": {"customerRef": "customer-A", "productRef": "product-X", "campaignRef": "banner-1"},
"sourceVersion": 7,
"stages": [
{"name": "SUPPRESS", "confirmed": true, "remoteReceipt": "demo-sup-1"},
{"name": "INJECT", "attempt": 1, "correlationId": "demo-attempt-1", "observed": "timeout_after_send", "outcome": "UNKNOWN"}
],
"redelivery": {"attempt": 2, "correlationId": "demo-attempt-2", "operationId": "offer-change-42", "stage": "INJECT"},
"expected": [
"Preserve the confirmed suppression result and the uncertain injection attempt.",
"Reconcile that same target, version and stage with CP before choosing a replay.",
"If the original effect is confirmed, record completion without sending again.",
"If CP cannot identify the outcome or deduplicate this stage, park the case for controlled resolution.",
"If version 8 arrived meanwhile, retain the version 7 evidence. Recompute the desired version 8 campaign after resolving the older in-flight effect."
]
}
Adopt in reversible stages
- Start with envelope compatibility, explicit audit success predicates and a bounded combined retry/normal admission budget. Verify whether current durable intent already closes the local handoff gap before introducing another table.
- Keep one durable business operation ID across redelivery. Store the target and stage separately. Each send gets its own attempt/correlation ID. Two customers sharing a PAN can have different pending operations.
- Shadow the classifier on known outcomes, then exercise duplicate deliveries and a lost SOAP response in a controlled environment. Gain provider agreement on deduplication scope, retention and outcome-query authority before enabling automatic replay of unknowns.
- Budget reconciliation staff/time, persistent history, retention and writer ownership. On rollback stop new dispatch, preserve unknowns and stage IDs, and transfer unfinished cases. A compensating inverse CP call needs its own business contract.