archim / messaging
Messaging between ArchIM modules: public events, transactional outbox, reply address
v0.1.0
2026-12-03 19:05 UTC
Requires
- php: ^8.5
- beberlei/assert: ^3.3.2
- ecotone/dbal: ^1.328.3
- ecotone/ecotone: ^1.328.3
Requires (Dev)
- archim/common: ^0.1
- doctrine/dbal: ^4.0
- ecotone/amqp: ^1.328.3
- ecotone/pdo-event-sourcing: ^1.328.3
- enqueue/amqp-ext: ^0.10.20
- phpunit/phpunit: ^13.0
- queue-interop/amqp-interop: ^0.8.2
- ramsey/uuid: ^4.9
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 19:10:50 UTC
README
How ArchIM modules talk to each other across deployments, on top of Ecotone's Distributed Bus over AMQP. Every module uses it; it knows none of them.
What it provides
- Public events: the
PublicEventcontract, their payload rules and thepublic.*message headers. - A transactional outbox (
Outbox\OutboxConfig,Outbox\PublicEventOutbox): a public event is written in the transaction of the change that caused it and forwarded to the broker afterwards, retried until the broker is back;OutboxConfig::durable()andOutboxConfig::forwarding()do the same for a module's own channels. - Error handling (
Recoverability\ErrorHandlingConfig): retries, then a dead letter in the module's database. - Replies across deployments (
Reply\ReplyTo,Reply\ReplySender): a command carries the address its outcome is sent to. - Re-publication (
Republication): an owner's history of public events sent again to one consumer deployed later.
Documentation
- Public events and outbox.
- Using a module: how a deployment wires it.
- Decisions: public events over AMQP with an outbox, ordering across deployments, initial state of a new consumer.
License
Apache License 2.0: see the LICENSE file.