rapid-bidder icon indicating copy to clipboard operation
rapid-bidder copied to clipboard

Reproduction Help: Cache data

Open ptx9363 opened this issue 7 years ago • 2 comments

I'm a beginnner for DSP and RTB and i'm trying to construct this bidder system. After successfully compiling the code, i can't running the examples as following:

~/rapid-bidder$ ./Debug/bidders/http_bidder --config etc/config.cfg

10:48:06.365672: <error> could not open file data/ads exiting...

I have tried mkdir the data folder and created an empty 'ads' file, yet the http_bidder still can not response correctlly. I would appreciate it if the cache data(or format) can be published, Looking forward for your help, thanks very much.

ptx9363 avatar Jul 04 '17 02:07 ptx9363

hi ptx9363 , presumably it's your ads we did not provide those flat text files with this model project. You can look at examples how we generate mock files while building vanilla-rtb examples https://github.com/venediktov/vanilla-rtb/blob/master/examples/bidder/CMakeLists.txt#L45 In vanilla-rtb examples we have python sample data generator . In the real world you normally keep this data in Database or other central store . The assumption is that you have complete campaign management system and you have your data in database. You pull the data from the database into each machine's stack , the data is identical on each machine for simple http-bidder , however for multi-bidder when you run 1M+ campaigns you can segregate / segment it therefore each bidder maybe bidding only on the segment of clients. Multi-bidder is an afterthought ... for small shops not very useful .

venediktov avatar Jul 04 '17 19:07 venediktov

Ideally your system will have campaign management system with UI and DB . Our loaders is a good example how data can be pushed from text files into the IPC cache used by DSP for campaign selection by bidder. There is a million ways to implement it. One way is

  • loader can become an agent running on each machine
  • The file gets dropped to network mounted drive and loader picks it up and reloads IPC cache on the machine it runs.

Please refer to vanilla-rtb repository and try building examples there, it builds automatically but it is only a framework with examples. I hope it helps. Vlad.

venediktov avatar Jul 04 '17 19:07 venediktov