prebid / prebid-server

Open-source solution for running real-time advertising auctions in the cloud.
https://prebid.org/product-suite/prebid-server/
Apache License 2.0
433 stars 741 forks source link

stored requests: multiple fetchers with filesystem: true #1144

Closed afsheenb closed 4 years ago

afsheenb commented 4 years ago

In the Stored Requests documentation (https://github.com/prebid/prebid-server/blob/master/docs/developers/stored-requests.md), it states:

"If more than one Fetcher is defined, they will be ordered and used as fallback data sources. This isn't a great idea for Prod in the long-term, but may be useful temporarily if you're trying to transition from one backend to another."

I see examples for how to do this with e.g. HTTP and DB fetchers; I'm wondering whether it's possible to configure prebid-server to use an HTTP or DB fetcher as the primary fetcher and then use stored requests defined in the filesystem (setting filesystem: true under stored_requests) as a fallback data source, in case the HTTP endpoint or database is unavailable.

I suspect it's not, both from the syntax in pbs.yaml and from some basic testing, but official confirmation / any additional insights you can provide would be appreciated.

Cheers,

--afsheenb

afsheenb commented 4 years ago

Update: after fiddling with pbs.yaml a bit, it seems this is in fact supported; e.g. a DB fetcher can be set as primary, with an in-memory cache and filesystem: true set.