subject

In this assignment you will need to install erlang and the rabbitmq server for your operating system. finally, for protocol support you will need to install the pika module. from pycharm inside your project go to file > settings > project settings > project interpreter. from there click on the green “+” to add a package to the project. enter pika in the search field at the top and select add package. now, you will need three python source files. one sender (send. py) and two receivers (receive. py). the sender will need establish a connection, channel and declare a queue. it will then need to send a message to the message queue once per second. you may use a while loop and the time. sleep function for this. the message should be something unique, like “my name is john doe and i love python! #” where is # is a running counter so you can see the message number. each of the receivers, will need to establish a connection to the same queue, register a call back, and start consuming any messages received. when a message is received it should be output to standard out. this assignment is not very realistic when implemented on a single computer but recognize that “localhost” need not be the address. the message queue could be located on one server with dozens of senders and receivers each located anywhere. as you are running your code, noticed that you can start the server. it will begin sending messages. wait a few seconds and start the receiver. notice that all messages are received even though some were sent before the receiver was started. this is one of the benefits of message queues, i. e. it maintains the message history and can deliver messages to clients even if they momentarily lose connectivity.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
You know the right answer?
In this assignment you will need to install erlang and the rabbitmq server for your operating system...
Questions
question
Mathematics, 01.12.2020 18:20
question
English, 01.12.2020 18:20
Questions on the website: 13722363