Because it’s hard to write idempotent code effectively, NServiceBus provides the outbox feature to make your business data transaction and any sent or received messages atomic. That way, you don’t get any ghost messages or zombie records polluting your system.
But the outbox can only be used inside a message handler. What about web applications and APIs? With the new NServiceBus.TransactionalSession package, you can use the outbox pattern outside of a message handler too.
💻 Blog post: Banish ghost messages and zombie records from your web tier
[ Ссылка ]
Build better microservices with NServiceBus!
------------------------------------------------------------------------
🚀 Get started here: [ Ссылка ]
🔔 Subscribe: [ Ссылка ]
👨🎓 Training: [ Ссылка ]
🌏 Webinars: [ Ссылка ]
👔 Consulting: [ Ссылка ]
📝 Blog: [ Ссылка ]
💙 Twitter: [ Ссылка ]
🤝 LinkedIn: [ Ссылка ]
🧵 Discuss: [ Ссылка ]
🔗 Website: [ Ссылка ]
#outbox #atomicity #softwarearchitecture #dotnet #microservices
![](https://s2.save4k.ru/pic/-UOyxjnlYXs/maxresdefault.jpg)