brata-hsdc / brata

Automatically exported from code.google.com/p/brata
2 stars 0 forks source link

Simplify and Enhance MS Design #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I may be making assumptions from circumstantial evidence, so disregard if I am 
off base.

Simplify the MS design and operation as follows:

1.  Capture simple transactions in the database.  Rather than update state 
(such as accumulating scores) as you go, just capture the "raw" events as they 
come in as individual database records.  If something goes wrong, you will have 
a better chance of being able to correct it or reconstruct it from the raw 
events.

2.  Use SQL queries against the database of raw events to total up scores, 
etc., compute the current state of the competition on-the-fly, and display the 
results as web pages.

3.  Use a Python-based framework such as Django.  Using Python would have made 
it easier for more people to help, and using Django would provide much of the 
infrastructure needed to make a REST-style, MySQL-backed, web application.

Enhance as follows:

4.  I thought the leader board was great.  Make it more readable, and possibly 
more entertaining.  It is a focal point of the competition.

5.  Make a mobile version of the leader board, and maybe an individual team 
status board, that a team can access from their mobile device.

Original issue reported on code.google.com by @ellerychan on 3 Mar 2015 at 4:15

jawaad-ahmad commented 8 years ago

For Part 3 only:

I don’t remember the architecture of the current Master Server, but I wonder if we should break it down into the following this time around:

Not all of these have to be implemented to get the job done, but we can still lay out the plan up-front.

One Django project

move existing code to archive subfolder and create new area in same repository.

DragonmasterJ commented 8 years ago

For part 4: An idea we had was to make the 'phone leaderboard' just have the team status. This will give all the teams the status they would need without requesting an admin to get it manually from the master server (if an app crashes, they can check # of retries to know if data was sent to the server)

ellerychan commented 8 years ago

Continuing this issue as brata-hsdc/brata.masterserver#4.

jawaad-ahmad commented 8 years ago

Created:

Part 3 will continue on brata-hsdc/brata.masterserver#4.