Skip to content

[BE] Setting up a cache layer (low priority) #39

Description

@Bartavius

Because we want to read scores very quickly (pseudo-live viewing) we intend for user clients to poll our server and refetch the score history. If there are lots of clients spectating a game, we could be receiving a spike on our server/db reads. To make this as fast as possible without pub-sub architecture, we want users to be able to easily access the values from a cache.

Write the score history into our cache (rewrite value upon new score match writes; that's our condition to invalidating the cache) and our ensure that our client supports this new architecture (cache miss still goes to server)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions