DBAL Support
Transactions, Asynchronous, Dead Letter Queue PHP DBAL
Installation
Module Powered By
Powered by powerful database abstraction layer Doctrine/Dbal and Enqueue for asynchronous communication
Configuration
To configure Connection follow instruction for given integration
Message Channel
To create Dbal Backed Message Channel, we need to create Service Context.
Now orders
channel will be available in our Messaging System.
Message Channel Configuration
Transactions
By default Ecotone
enables transactions for all Asynchronous Endpoints and Command Bus. You may use of Service Context
to turn off this configuration. You may also add more connections to be handled.
If we disable global transactions, it make sense to enable transactions on specific endpoint.
To do it all we need to do is to mark it with Ecotone\Dbal\DbalTransaction\DbalTransaction
attribute.
Document Store
DBAL provides support for Document Store, which is enabled by default.
Every document is stored inside the "ecotone_document_store
" table.
Standard Aggregate Repository
You may enable support for storing standard aggregates.
In Memory Document Store
For testing purposes you may want to enable In Memory implementation
.
Document Store related Aggregates
To enable specific Aggregates for Document Store Repository:
Table initialization
Table will be create for you, however this comes with extra SQL cost, to verify before adding new document, if table exists. After releasing you may want to disable the check, as you know, that the table already exists.
Last updated