Idempotency (Deduplication)
Installation
Default Idempotent Message Consumer
Custom Deduplication
$this->commandBus->send($command, metadata: ["paymentId" => $paymentId]);final class PaymentHandler
{
#[Deduplicated('paymentId')]
#[CommandHandler(endpointId: "receivePaymentEndpoint")]
public function receivePayment(ReceivePayment $command): void
{
// handle
}
}Custom Deduplication across Handlers
Deduplication with Expression language
Deduplication with Command Bus
Command Bus name
Deduplication clean up
Disable Deduplication
Last updated
Was this helpful?