Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
interns2022
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ayush.choudhary
interns2022
Commits
ba2c9452
Commit
ba2c9452
authored
Apr 04, 2022
by
charankumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update assignment2.md
parent
c62840f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
assignments/assignment2.md
assignments/assignment2.md
+37
-0
No files found.
assignments/assignment2.md
View file @
ba2c9452
...
@@ -98,3 +98,40 @@ Sample Document:
...
@@ -98,3 +98,40 @@ Sample Document:
https://kairosdb.github.io/docs/restapi/QueryMetrics.html
https://kairosdb.github.io/docs/restapi/QueryMetrics.html
https://pypi.org/project/kairosdb-python/
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/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment