Giter Club home page Giter Club logo

celtra-analytics-challenge's Introduction

Celtra Analytics Engineer Challenge

Challenge description is located here.

Requirements

  • docker (tested on v19.03.3)
  • docker-compose (tested on v1.24.1)
  • make (tested on GNU Make v4.2.1)

Commands

Start local environment

Start Apache Spark cluster, MySQL database (with fake data), dummy data generator (over TCP socket), Apache Spark driver program & REST API

NOTE: First run can take some time because dependant Docker images are pulled and build.

$ make up

Scale Apache Spark worker nodes

$ make scale n=3 

Stop local environment

$ make down

OPTIONAL: Data is still persisted in the named volume, remove it with following command:

$ make clean

Solution Architecture

arhitecture.drawop.png

Demo APIs

Question 1: How many impressions were trafficked each day for each campaign?

curl http://localhost:8080/api/campaigns/timeseries

Question 2: How many impressions, interactions and swipes were trafficked for each ad in the specific campaign?

curl http://localhost:8080/api/campaigns/1/ads

Question 3: How many unique users and impressions were trafficked each day for each ad in the last 7 days?

curl http://localhost:8080/api/campaigns/ads/lastweek

TODOs

  • Split driver program into smaller functions
  • Move hard coded configurations to environment variables
  • Add unit tests

celtra-analytics-challenge's People

Contributors

arruw 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.