Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproduction Help: Cache data #4

Open
ptx9363 opened this issue Jul 4, 2017 · 2 comments
Open

Reproduction Help: Cache data #4

ptx9363 opened this issue Jul 4, 2017 · 2 comments

Comments

@ptx9363
Copy link

ptx9363 commented Jul 4, 2017

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
Copy link
Member

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 venediktov reopened this Jul 4, 2017
@venediktov
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants