Delaying Messages
In case of Ecotone we don't delay whole Message, but specific Message Handler. This helps in scenarios when we have multiple Event Handler and we would like to configure the delay differently. For example may we have a case, where as a result of Order being placed, we would want to delay notification, yet to call Payment Service right away.
Static Delay
You may delay handling given asynchronous message by adding #[Delayed]
attribute.
The delay is defined in milliseconds.
Dynamic Delay
We may send an Message and tell Ecotone to delay it using deliveryDelay Message Header:
Asynchronous Message Channel need to support this option to be used
Last updated