Download the PHP package mrandmrssmith/idempotent-consumer-bundle without Composer
On this page you can find all versions of the php package mrandmrssmith/idempotent-consumer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrandmrssmith/idempotent-consumer-bundle
More information about mrandmrssmith/idempotent-consumer-bundle
Files in mrandmrssmith/idempotent-consumer-bundle
Download mrandmrssmith/idempotent-consumer-bundle
More information about mrandmrssmith/idempotent-consumer-bundle
Files in mrandmrssmith/idempotent-consumer-bundle
Vendor mrandmrssmith
Package idempotent-consumer-bundle
Short Description idempotent-consumer-bundle
License MIT
Package idempotent-consumer-bundle
Short Description idempotent-consumer-bundle
License MIT
Please rate this library. Is it a good library?
Informations about the package idempotent-consumer-bundle
Symfony idempotent consumer core bundle
This is core bundle for idempotent consumer. It provides basic functionality to make your consumer idempotent.
Installation
Add this package to your project
Usage
- Structure:
Persistance
- Provide interfaces for persistanceResolver
- Interface which should be use to retrive idempotent key from message and register of these resolversChecker
- main service which will handle idempotent logic on message entry you should use this checker before message processing and based on result of check you should decide to process message or notFinalizer
- main service which will handle idempotent logic on message exit you should use this finalizer after message processing to mark message as processed or when message failed.
- Implement
Persistance
interface- you can implement you own persistence by implement these interfaces and register them in services.
- there is one ready persistence provided by
mrandmrssmith/idempotent-consumer-doctrine-persistence-bundle
which provide persistence layer using doctrine
- Resolvers:
- you have to implement key resolvers for your consumers.
- it works as strategy pattern. You have to register your resolver and add tag
idempotent.key_resolver
- Checker and Finalizer
- you have to use these services with your consumer checker on entry of message and finalizer after message processing
- you can use package for symfony messenger
mrandmrssmith/idempotent-symfony-messenger-consumer-bundle
-
Settings
- By default failed messages which have status failed are skipped but it may be possible that you may want to try handle again message with status failed so there are 2 options for this
- first option is in your configuration for this bundle set
process_failed_messages
to true
that will change default value (false) of
$wantToProcessFailedMessage
inDefaultProcessFailedMessageVoter
to value which you set here- second option is implement own voter - that may be solution when you want to implement own logic which tell if we should handle this message again or not for that you should
you can replace default voter to your own implementation of
ProcessFailedMessageVoter
what's provide you full control over processing failed messages.
All versions of idempotent-consumer-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-json Version *
symfony/dependency-injection Version >=3.4
symfony/http-kernel Version >=3.4
symfony/config Version >=3.4
ext-json Version *
symfony/dependency-injection Version >=3.4
symfony/http-kernel Version >=3.4
symfony/config Version >=3.4
The package mrandmrssmith/idempotent-consumer-bundle contains the following files
Loading the files please wait ....