Closed ro0NL closed 3 years ago
https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus
split the write ops in https://github.com/msgphp/symfony-demo-app/blob/master/src/Api/Projection/UserProjection.php in dedicated API resources
change many controllers for endpoints to a single a message handler, serving as a proxy (route all projections as such). For generic purpose it could leverage a ApiProjectionMessageToDomainMessgage conversion, and re-dispatch.
ApiProjectionMessageToDomainMessgage
https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus
split the write ops in https://github.com/msgphp/symfony-demo-app/blob/master/src/Api/Projection/UserProjection.php in dedicated API resources
change many controllers for endpoints to a single a message handler, serving as a proxy (route all projections as such). For generic purpose it could leverage a
ApiProjectionMessageToDomainMessgage
conversion, and re-dispatch.