From | To | Note |
---|---|---|
RabbitMQ ingress-q queue (any of the inbound RESTRoute, MQTTRoute, PullRoute) |
Raw Data Table |
Writer Route has the task to pull messages from RabbitMQ, more precisely from the queue bounded to the ingress
exchange using ingress.#
as Routing Key, and write them in the Raw Data Table.
To do so it uses Camel RabbitMQ Component to read, and Camel MongoDB Component to write.
One key feature of Writer Route is to choose the right database
and collection
where to store the data, given a Provider URI.
To do that, it uses the first segment of Provider URIs path as database
, and the second as collection
if present.
If the Provider URI has only one segment in the path, it will be used for the collection
as well.
Provider URI | Database | Collection |
---|---|---|
skidata/ortisei/easy?fastline=true | skidata | ortisei |
skidata/ortisei | skidata | ortisei |
skidata?fastline=true | skidata | skidata |