-
|
Hey Guys, I'm going to go over the code and look at a few things to really round off my thoughts here. Is there any reason we wouldn't want to be able to bulk Post to the outbox. Am I correct in thinking that the Point of Deposit Post is so that you can Pre-load messages in the outbox before Dispatch? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
I know we have had this conversation now, so you know about the intent of DepositPost, but just for anyone else. Deposit is intended for use within a database transaction that writes both entities to the backing store and any associated events as part of the Outbox pattern: https://www.kamilgrzybek.com/design/the-outbox-pattern/ You can then either explicitly Clear the Outbox to send any messages without delay, or use a Sweeper to flush any unsent messages on a timed basis. In principle we could write a whole set to DepositPost, if your changes required multiple downstream messages. Normally, I'd just iteratively add, but I don't see any reason why we couldn't have a bulk version if it was desirable. |
Beta Was this translation helpful? Give feedback.
-
|
This has been resolved in v9.1.x command there is now a bulk async message producer, and an implicit clear Async on the command processor that has a bulk flag (also plumbed through to the sweeper) |
Beta Was this translation helpful? Give feedback.
This has been resolved in v9.1.x command there is now a bulk async message producer, and an implicit clear Async on the command processor that has a bulk flag (also plumbed through to the sweeper)