Closed dazinator closed 6 months ago
I definitely understand where you are going with this idea, but I am reluctant to make any changes to the outbox, because it is complex enough as it is. In fact, I am contemplating building "outbox" as a separate project, because the whole outbox concept is much more closely tied to the type of persistence, you're using, than to Rebus.
So.... I hope it's OK with you that I am closing this for now. 🙂
Imagine a scenario in which an application sends a message in the ordinary way via the bus, but Sql Outbox is enabled. You expect the message to be saved to the outbox table, and then picked up in the background and dispatched to recipient queue. However in the scenario where the recipient is the same application as the sender, I think it would be desirable (as an option) to avoid sending the message to the queue and back and instead directly process it from the outbox. In other words skip the queue from the equation.