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
435 stars 744 forks source link

Refactor Prebid-Server to be a more flexible platform #3961

Open scr-oath opened 1 month ago

scr-oath commented 1 month ago

Context

Companies who host their own prebid server may need to configure, customize, and extend it for their own needs.

At the moment, the main method and its helpers are all private, and every adapter, module, analytics is decided by PBS.

This proposal (a placeholder requested during the Server PMC) would be to refactor the code to be used a as a library. Some reference libraries/examples are http.Server, or for the powerful function options pattern, the open-telemetry library (TracerProvider, e.g.)

The end result and goals are that hosting providers be able to:

  1. Configure the server
  2. Launch the server
  3. Mock the launch for testing
  4. Add modules
  5. Add adapters
  6. Add analytics
  7. Add MetricsEngines and choose them
  8. Add more endpoints - or just get the configured httprouter and use that.
bretg commented 1 month ago

Discussed in committee

Next steps: