Giter VIP home page Giter VIP logo

chuggle-server's Introduction

chuggle-server

Server for chuggle app

chuggle-server's People

Contributors

surajx avatar

chuggle-server's Issues

Implement Logging

Implement a logging module with following properties:

  • Log levels should be externally controllable
  • No over the top logging frameworks needed, KISS
  • Separate module so that it can be used in all servers.

Game Server Health checker.

A Interval routine to check the health of available game servers is required to make sure the users coming to lounge and not fed with broken game server links.

High Scores

Update the high scores collection after the consolidation request with a specified delay. If another consolidation request is received during the delay time then the delay is reset.

Refactor Game Server

Game Server is a spaghetti with meat ball bowl: refactor and modularize. Add comments where ever necessary.

Randomize the request and emitting of leaderboard

Randomize the request of leaderboard so that the consolidation server is not overwhelmed at a single point of time. This randomization also implies that emission of leaderboard via socket does not stress the game server.

Make connection to game server pluggable

Use the strategy pattern to define the connection algorithm between user and game server. Existing implementation could become detrimental to swapping out websocket connection type with a more available and scalable solution.

Compress Leaderboard before emitting

Leaderboard data is huge compared to other data being emitted. Find out a way to compress the leaderboard data before emitting through the socket.

Authentication System

Implement an authentication system between

User<->Lounge
User<->Game Server

Can be access token based with user/pass.

Flush Redis Server after each game loop

The scores from a single game loop is stored in the local redis db. Once the score is sent for consolidation it is not needed by the game server. Flush the local db after the current batch of scores are sent for consolidation.

Write Tests

Even though time consuming and overhead - WRITE IT!!!

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.