How to use the mock exchange - datacratic/rtbkit GitHub Wiki
In this document, we'll show how the configure and extend the mock exchange to generate synthetic bids that can be useful in the context of a test environment for staging changes, test stability and performance.
Components
As it names implies, the mock exchange simulate an actual exchange. It relies on a BidSource
to produce bids and on a WinSource
to produce wins and other optional events. Thus, both bid serving and ad serving part of the stack were merged into a single unique entity. This seems like a reasonable simplification in this situation.
Bid and win sources comes in many flavour and mirror the available exchange and adserver connector that are present in RTBkit. In most cases, authoring a connector should include its corresponding source to enable its usage with the mock exchange.
For example, the OpenRTBExchangeConnector
has a corresponding OpenRTBBidSource
to produce bids in a format that match the protocol expected by the exchange connector.
Bid Source
Writing a bid source is pretty straitforward and is tied to the.