Skip to content

Yumble Architecture & Design

parfei edited this page Apr 12, 2021 · 13 revisions

Diagram of Yumble architecture


Architecture-Architecture

Database - MongoDB

VERY IMPORTANT NOTES

  • The MongoDB Session document will expire after 1 week after it has been created, developer can change the expiry from .env's SESSION_EXPIRY. This is to avoid running out of lobby ids, as we will save a lobby and its data in MongoDB, so users can review it even after the game has ended.
  • Every-time you restart the app, you can redefine the expiry for Session documents via .env's SESSION_EXPIRY. Therefore, PLEASE change the ATLAS_URI to testDatabase or something similar, as you do not want to be working with the production database when testing. This is because MongoDB synchronously creates/drops indexes, which will block all other operations on the database.
  • You should be setting SESSION_EXPIRY in .env to 604800, unless you are testing with NOT the production database.

Detailed views

For an in-depth view into the design creation process refer to this:

Clone this wiki locally