Claim Check, Sync Over Async, And Other Tactics
Tactics are approved deviations from the ideal architecture. Use them when reality demands it, and manage the debt they create.
Claim Check
Use claim check when the payload is too large or too binary for the broker.
Instead of putting the full file on Pulsar, store it in object storage and publish a CloudEvent containing a reference.
Use for large XML, PDFs, images, binary exports, or bulk files where event payload transport is inefficient.
Chunked Hybrid
Split a huge file into logical chunks, not necessarily one event per business row. This balances event-driven processing with broker and target system limits.
Sync Over Async
Use sync bridge when a caller truly requires an immediate response. It sets up request-reply behavior over an asynchronous core.
Rules:
- Use sparingly.
- Set aggressive timeouts.
- Monitor latency and timeout rate.
- Document why asynchronous status polling was not acceptable.
Key-Shared Ordering
Use key-shared processing when strict ordering is required per entity, such as per order ID. Do not promise strict global ordering with horizontal scaling.
Transparent Tunnel
A transparent tunnel wraps raw payload in a generic model when mapping cannot be done yet. This is technical debt. Name it honestly, tag it, and review it.
Micro-Aggregator
Use micro-aggregation when downstream cost, rate limits, or batch semantics matter more than immediate per-event delivery.
Debt Rules
- Tag tactical patterns in the solution documentation.
- Make the operational risk visible.
- Create review or retirement criteria.
- Track repeated failures in an issue of the owning project, so that someone reviews them.