If you've avoided dynamic config because the options were an expression string or a middleware class, there is a third way now.
PHP 8.5 closures in attributes work in Ecotone: dynamic delays, dedup keys, SQL parameters. One typed closure exactly where the value is needed.
You no longer need to create middlewares per use case, just simply type your function, state what you want to achieve and the rest will be handled by Ecotone.
#PHP #Ecotone #SoftwareArchitecture
Remote
Dariusz Gafka
@dgafka@phpc.social
I am sharing knowledge and experience about Software Design, DDD, Event Sourcing and Message-Driven Systems. And making them effortless to follow with Ecotone Framework in PHP.
23 Followers
9 Following
2 Posts
Joined May 31, 2022
Articles:
Ecotone Framework:
Open post
CQRS, async with retries and dead-lettering, event sourcing, projections, workflows. That feature list usually means a platform team.
I built it as an e-commerce shop on Tempest + Ecotone. The entire messaging layer: about a dozen small classes of business logic. No worker command, no repository, no queue wiring.
The Order aggregate IS the Tempest database model. One class, both frameworks.
https://github.com/ecotoneframework/tempest-ecotone-demo
#PHP #CQRS #EventSourcing
0
0
0
0