Internal Commands #119
-
Hi, First of all, thank you for your work with this repository. I can't properly understand the purpose of the Internal Commands. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi, The other point is ability to control the rate at which messages are processed. Application now are not to process a message as soon as it is delivered but application is able to choose the pace of processing. |
Beta Was this translation helpful? Give feedback.
-
I agree with @AndreiGanichev . Background processing with persistence (durability) gives you reliability. I observed that without such a mechanism developers choose strong consistency instead of eventual consistency because without durable jobs there is a risk that the system will lose consistency at all. Strong consistency means bigger transactions and performance problems. So, finally, it is a matter of architectural decision:
|
Beta Was this translation helpful? Give feedback.
-
Thank you guys for the explanations. I appreciate it. |
Beta Was this translation helpful? Give feedback.
Hi,
the main benifit is reliability.
ProcessInternalCommandsCommandHandler
configures retry policy to handle exceptions and even if a command wasn't finally processed the command and the error won't be lost. Later you can analize errors and can easily try to handle the command again.The other point is ability to control the rate at which messages are processed. Application now are not to process a message as soon as it is delivered but application is able to choose the pace of processing.