


It means that the message was not processed and is removed from the queue because it is unprocessable and will never become processable (e.g., a required parameter is missing or another permanent error appears). Message Processor will return ``self::REJECT`` in the following cases: It means that the message was processed successfully and is removed from the queue. If a message was processed successfully.Message Processor will return ``self::ACK`` in the following cases: The received message can be processed, rejected, and re-queued. Also, if we split a process into a set of parallel processes, jobs allow monitoring and controlling of the whole set. Jobs are created in the DB and allow monitoring of the processes status, start and end time, and interrupt processes. Job - A message processor can process a message directly or create a job.One processor can subscribe to several topics. The topic name indicates which processor should be executed for the message. Message Topic - A class that contains a topic name (identifier), description, the default priority, and message body structure rules.
#Message queue example code#

There can be more than one consumer and they can work on different servers. For each message, the consumer runs a message processor subscribed to the message topic (if one exists). It processes one message at a time: once one message has finished being processed, the next message follows.

Message Queue - A FIFO queue that holds queue messages until they are processed.Messages also contain a number of additional settings (see Message settings). When the message comes up to a consumer, its structure is validated, then passed to a message processor. Messages are validated and sent by a message producer and put to the “tail” of the message queue. Message - An information message which contains a message topic that indicates which message processor(s) will process it and a message body - an array of parameters required for the processing, for example, an entity id or a channel name.
