Giter VIP home page Giter VIP logo

realtime-bidding-agent's Introduction

Real-time Bidding Agent

A real-time bidding agent is a simple HTTP server that accepts JSON requests, does some matching between advertising campaigns and the received bid request and responds with either a JSON response with a matched campaign (bid) or an empty response (no bid).

Scala

The project was developed using Scala 2.13.6 and sbt 1.4.3.

Clone

$ git clone https://github.com/mustaphamichael/realtime-bidding-agent.git
$ cd realtime-bidding-agent

Run application

  • Run sbt run to start the application (runs on PORT 8080 by default).

To run the application using a different dataset, update the data in src/main/scala/com/rtb/data/CampaignData#activeCampaigns. Ensure to restart the application after changing the data.

Tests

Unit test

  • Run sbt test to run unit tests.

HTTP test

  • Send a POST request to the endpoint http://localhost:8080/make-bid with a valid BidRequest as the body while the application is running.

The service returns a 200 OK response with a BidResponse JSON payload if a matched bid exists, else returns a 204 No Content response if there is no matched bid.

Assumption

  • Only the targetedSiteIds is used as a matching criteria for the Targeting option.

realtime-bidding-agent's People

Contributors

mustaphamichael avatar

Stargazers

MiloVentimiglia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.