Commit ba2c9452 authored by charankumar's avatar charankumar

Update assignment2.md

parent c62840f6
......@@ -98,3 +98,40 @@ Sample Document:
https://kairosdb.github.io/docs/restapi/QueryMetrics.html
https://pypi.org/project/kairosdb-python/
## Task 3: Working with MQTT & REDIS
# Description
In a theatre, Tickets are to be given to people in queue, There are 2 counters for Gold and Silver class.
Gold Class has 10 rows with 30 seats per row, Silver class has 5 rows with 25 seats per row
Store the information of booking, Maximum 5 tickets allowed in a booking.
- Publish message to a MQTT topic
- Subscribe message, Assign seats per requirement and store information to redis db.
Patient details sample format:
```json
{
"mobile_no" : "9876543210",
"preferred_class" :"Gold/Silver",
"no_of_tickets" : 5
}
```
Use Redis for caching/storing information
create consumer's which consumes data from these topics and store to a redis db
### Tools to use:
1. Pycharm / VSCode
2. MQTT - (paho-mqtt)
3. REDIS - (redis)
### Reference:
https://www.emqx.com/en/blog/how-to-use-mqtt-in-python
https://docs.redis.com/latest/rs/references/client_references/client_python/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment