Answered step by step
Verified Expert Solution
Question
1 Approved Answer
you'll be working with Redis and Event Driven Architecture Read the input from the file, each message is seperated by an empty line. Read the
you'll be working with Redis and Event Driven Architecture Read the input from the file, each message is seperated by an empty line. Read the lines until you reach an empty line publish the sum to the channel sum. Repeat this until you reach the end of the file. Subscribe to the channel sum and if sum is greate than 30k, publish the sum to channel high_sum. If sum is less than 30k, publish the sum to channel low_sum. Subscribe to the channel high_sum, if current unix timestamp even and current sum is greater than previous one set redis key max_sum to the current sum. Subscribe to the channel low_sum, if current unix timestamp odd and current sum is lower than previous one set redis key min_sum to the current sum. Use the python files provided to help you with the assignment. A Github action will execute all your python code and check if it works. You can find examples of how to use redis library in the check_redis.py file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started