Today i want to show you how to use The Messenger Component of Symfony. Very useful when your project implements the CQRS pattern. With an example, simplicity of use and practicality will be evident. Let’s assume that we have a service like this one: <?php namespace App\Domain\Service\Customer; use App\Domain\Command\Customer\DeleteCustomerCommand; use App\Domain\CommandHandler\Customer\DeleteCustomerCommandHandlerInterface; use App\Domain\Exception\Customer\CriteriaNotAllowedException; use App\Domain\Query\Customer\GetCustomerListQuery; use… Read More CQRS is easy with Symfony 4 and his Messenger Component
I have a stack with many entities like microservices, BDD, ecc…, and i want use RabbitMQ for notify a change to every entities of my stack. For do that i want use a single producer but n queues that are consumed by n consumers. Every consumer will notify the related entity. I am not be… Read More RabbitMQ and Symfony, how use multiple consumers.
We often have to use different micro-services who write in many log files. Use utilities like Kibana is a good thing, but in order to take full advantage of its features we have to try to standardize and normalize the logs. The company where I work having introduced Kibana recently, he asked me to implement… Read More Symfony and Monolog, how use Processor in your project: a practical example
PHP is one of the most popular programming languages around the world, and the recent PHP 7 release made this server-side programming language better and more stable than ever. PHP is widely used in major projects. Facebook, for example, utilizes PHP for maintaining and creating their internal systems. WordPress uses PHP to power its internals,… Read More How to choose a PHP framework