Skip to content
walterorando.com /
Search

Stop the “Upstream” Lag: The Power of Event Isolation

I have once hunted down a error that manifests differently during debugging or fails to manifest in other scenarios. This would cause the actual process to fail. Certain functionality would only fail like 5% of the time. The error comes from a different extension event subscriber. Because their code was part of my transaction, my users could not proceed with their function. One bad subscriber in someone else’s app brought our core process to a halt.


⚠️ The problem: The Linked Fate of Subscribers
By default, AL event subscribers are synchronous and run within the same transaction. If a subscriber fails, the whole process rolls back. If a subscriber is slow, your process is slow.
In a world of multiple extensions (ISV + Internal), you are essentially letting every other developer on the tenant hold the “handle” to your transaction’s success.


🛠️ The Fix: Isolated Events
Introduced to help stabilize core processes, Isolated Events allow the publisher to ensure that each subscriber runs in its own “error pocket.” If a subscriber fails, the platform catches it, logs it to telemetry, and moves on to the next one. Your transaction stays alive.


✔️ Technical Grounding:
▫️ SaaS Available: Yes.
▫️ Runtime/Upgrade: Runtime.
▫️ Bypasses Triggers: No, it changes how the hooks are executed.


❇️ Why It Matters
✅ Process Resilience: Core business logic (like Posting) becomes immune to “side-effect” failures from non-critical integrations.
✅ Cleaner Telemetry: The platform automatically emits a trace when an isolated event fails, making it easy to spot bad-actor extensions without debugging.
✅ Reduced Support Burden: No more “Why did the order fail?” tickets that turn out to be caused by a completely unrelated app.


☣️ The Trap
Do not use this if the subscriber must modify the data for the process to be valid (e.g., tax calculation). Only isolate side effects like logging, telemetry, or external notifications.


✴️ The Bottom Line
Don’t let someone else’s fragile code hold your core processes hostage.
Use Isolated Events to shield your transactions: if a subscriber fails, your business logic survives. That’s how you stop the upstream lag and keep posting resilient, fast, and drama‑free.

Leave a Reply

Your email address will not be published. Required fields are marked *