Skip to content

Latest commit

 

History

History

message-endpoint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
description
Message Endpoint PHP

Message Endpoints/Handlers

Message Endpoints/Handlers are consumers and producers of messages. Consumer are not necessary asynchronous, as you may build synchronous flow, compound of multiple endpoints.
You will not have to implement them directly, as you should not even have to build messages and invoke or receive message directly from the Message channel. Instead you will be able to focus on your specific domain model with with an implementation based on plain PHP objects. By providing declarative configuration, you can "connect” your domain-specific code to the messaging infrastructure provided by Ecotone.

All Message Handlers follows simple low level interface

interface MessageHandler
{
    /**
     * Handles given message
     */
    public function handle(Message $message): void;
}

{% hint style="info" %} Command Handlers, Event Handlers, Query Handlers are also Endpoints. {% endhint %}