Lets create a Queue System: Queue system are heavily used in Goverment institutions, airports, banks and many other venues looking to organize the incoming traffic. Queue systems can also be used to load balancing for different applications like: - Stablishing priorities in web servers incoming requests. - Inmigration and visa applicantions that need to be prioritized. - Network packages. - etc.
Do not clone this repository.
The first step to start coding is cloning the python boilerplate on your local computer or opening it using gitpod.
a) If using Gitpod (recommended) you can clone the boilerplate by clicking here.
b) If working locally type the following command from your command line:
💡 Important: Remember to create a new repository, update the remote (
git remote set-url origin <your new url>), and upload the code to your new repository using
POST /new) with any particular priority (FIFO or LIFO).
GET /nextgets executed to process the person on the queue.
GET /nextrequest is received, the next person on the queue gets processed until it is Bob's turn.
You have to create 3 endpoints for your API:
/new: Will recive information about a user and ad him into the queue.
/next: Will process one spot of the queue.
/all: Will return a list with everyone that is pending to be processed (the current queue) .
This exercise will make you practice the following fundamentals:
All rights reserved, 4Geeks LLC 2021. Read more about 4Geeks and what we are going here.