Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

305 mg of C6H12O6 in 55.2 mL of solution whats the molarity

Answered: 1 week ago

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago