A processor is a vital definition that processes messages that it receives. There are many kinds of processors in RIDDL:
An inlet provides the name and data type for an input to the processor. There can be multiple inlets to the processor or none. A processor with no inlets defined is called a source since it originates data by itself.
An outlet provides the name and data type for an output from the processor. There can be multiple outlets defined by the processor or none. A processor with no outlets is called a sink since it terminates data flow.
RIDDL supports six kinds of processors. The kind of processor depends solely on the number of inlets and outlets that are defined by the processor, as shown in the table:
|Sources originate their data, and publish it to an outlet
|Sinks terminate their data, and consume it from their inlet
|Flows transform their data from inlet to outlet
|Splits their data from one inlet to multiple outlets
|Merges their data from multiple intles to a single outlet
|Any other combination is a many-to-many flow
A processor contains handlers that specify how the business logic should proceed. For sources, sinks, and flows, this is trivial. But for splits, merges and multis, there is a need to specify how the messages received on inlets are processed (transformed) and then put out to the outlets.