vanilla-rtb / rapid-bidder

Real Time Bidding (RTB) - Demand Side Platform ( DSP ) application based on vanilla-rtb stack
74 stars 15 forks source link

Reproduction Help: Cache data #4

Open ptx9363 opened 7 years ago

ptx9363 commented 7 years ago

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.

venediktov commented 7 years ago

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 commented 7 years ago

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

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.