-
Notifications
You must be signed in to change notification settings - Fork 1
Event Bus Messages
Usually, the content of a message is a string of characters in a JSON format. Others, it may be an array of bytes to be serialized/deserialized in a specific way. Our event-bus allows use both formats.
The type of the event, i.e. the routing_key of the message, defines the format of the message to be understood by both producer and consumer.
Except special cases, the message is a JSON text string with only one field: uri
, that identifies the resource implied:
{
"uri": "...",
}
So, for example, the message associated to the creation of a new source, i.e. routing_key=source.new
, may be:
{
"uri": "http://epnoi.org/sources/2233-23238-212-23",
}
At present, no special cases exist.
work supported by the European Community's Seventh Framework Programme (FP7-ICT-2013-8.1) under grant agreement no: 611383. For further information please see http://DrInventor.eu