Odds Feed Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

RabbitMQ Queue Setup

As discussed on the previous article, you will be receiving multiple message types from our Odds Feed and to avoid discrepancies when it comes to which of the messages should be processed first. We recommend this type of setup:

Queue Name: q.uof.<sportname>
Routing Key: uof.#.<sportname>

Note: for the value of the <sportname> see Sports table for the list of sports you want to subscribe. See screenshot for example

Sample queue setup for soccer

You would need to also create another queue that would able to receive OnBetStopGlobal and OnHeartbeat messages

Queue Name: q.uof.utility
Routing Keys: uof.onbetstopglobal | uof.onheartbeat

Sample queue setup for utility

Sports

Name Value
Soccer soccer

Take note you can use a different queue name, but the important thing here is the routing key it should be the same as the one that we’ve provided to be able to receive our payload messages.

Once the queue has been created, you would need to also create a consumer to be able to ingest the messages that we’re passing via the routing keys.