GithubHelp home page GithubHelp logo

ranking_service's Introduction

Ranking Service

Service allows to create/update a player's score in a given category (metric). Service allows to retrieve a list of top x/all scores for a given category and/or player.

Docs

Relative URL of the serivce is '/rankings/'. For API description, please see the docstrings in rankings/views.py

Discussion

  • How would you test this?

Tests are in ./tests folder. See below how to run them.

  • What would you do if you were told this needs to handle 1 million players?
  1. Integrate a proven REST framework (i.e. Django REST / Tastypie) to get caching, authentication, pagination, ...
  2. Run the service on a number of Apache instances behind a load balancer
  3. Use a (possibly NoSQL) distributed database that allows masterless replication (Cassandra).
  4. Monitor the load
  5. Alternatively, I'd consider Erlang-based stack with CouchDB and Yaws :)

Installation

1. Create and/or activate virtualenv

. activate_venv

2. Install dependencies

./install_dependencies

3. Synchronize database

./manage.py syncdb --noinput

4. Run the application

./run_server

Tests

Analyze source code

./analyze

Run tests

./run_tests [ unit | integration | system ]

ranking_service's People

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.