Entities in the quiz app setup
To give you an idea of how our elements will work together, let’s quickly take a look at the following figure:
Figure 8.1 – Overview of the entities in the quiz app setup
The big change concerning our previous projects is that our client (CQA) is not directly communicating with the Supabase database anymore. Instead, it connects via the SQS, where it retrieves questions and scores and sends its answers back to the SQS. The SQS, in turn, communicates with the SQA to retrieve relevant quiz information and centralizes the session of a current active quiz between its clients (CQAs).
The SQA is used to manage the contents of quizzes and interact with the database.
A word beforehand
Since the setup is fairly complex, this chapter will not focus on, and instead leave out, security measures. It is good to realize the limitations of the project and don’t treat this as production-ready code. Where possible...