Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.48 KB

writer-route.md

File metadata and controls

31 lines (20 loc) · 1.48 KB

Writer Route

From To Note
RabbitMQ ingress-q queue (any of the inbound RESTRoute, MQTTRoute, PullRoute) Raw Data Table

writer route

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.

Database and Collection

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