📌FYI: What happens after both teams finalize

4 views

TLDR: We store scoresheets in a temporary area and then record it into a more permanent database when both teams finalize.

The scoresheet is stored in a fast area of memory on the server. While this "fast" memory is robust, it does not have the degree of permanence that a "slower" storage medium has.

Storing it in the "fast" memory allows for quicker updates and changes while a match is in progress. It is lighter on the system to retrieve, update, and write changes to the matches.

When both teams finalize, the system will check that the data is valid. If it is valid and both teams have valid signatures, the system:
\

  1. Retrieves all data from the "fast" memory.\
  2. Parses out each frame (who won, who played, frame number)\
  3. Records in a separate table the frame information (home or away win)\
  4. Records in a separate table the players of the frame\
  5. Tallys the score, determines a winner and...\
  6. Finally records the who won the match and how many points they are allotted.

0 replies

Oldest firstNewest first

Login to post a reply.