... | @@ -137,7 +137,26 @@ The well known and observed (using default configuration of CloudAMQP) behaviour |
... | @@ -137,7 +137,26 @@ The well known and observed (using default configuration of CloudAMQP) behaviour |
|
Next time a consumer connects these messages will be available again for the process to be consumed.
|
|
Next time a consumer connects these messages will be available again for the process to be consumed.
|
|
|
|
|
|
|
|
|
|
# Scenario 5 - Queue instance not available
|
|
# Scenario 5 - [RPC](https://en.wikipedia.org/wiki/Remote_procedure_call) Example
|
|
|
|
|
|
|
|
* Scope: Test basic RPC
|
|
|
|
* Out of scope:
|
|
|
|
* Multiple servers or multiple clients
|
|
|
|
* Verification if the server sent the correct result
|
|
|
|
|
|
|
|
Is is basically a replication of [AMQP tutorial 6](https://www.rabbitmq.com/tutorials/tutorial-six-python.html)
|
|
|
|
|
|
|
|
## Client
|
|
|
|
|
|
|
|
In an endless loop, keep increasing a number (starting at 1) and, via RPC over AMQP, ask if it is a [prime number](https://en.wikipedia.org/wiki/Prime_number) (or not), skipping all even numbers, since this is a very cheap calculation.
|
|
|
|
|
|
|
|
## Server
|
|
|
|
|
|
|
|
Return to the client if the number it sent is a prime number or not (True/False).
|
|
|
|
|
|
|
|
## RPC server
|
|
|
|
|
|
|
|
# Scenario 6 - Queue instance not available
|
|
|
|
|
|
Questions:
|
|
Questions:
|
|
* What happens if the queue is not available?
|
|
* What happens if the queue is not available?
|
... | @@ -151,7 +170,7 @@ Testing: |
... | @@ -151,7 +170,7 @@ Testing: |
|
|
|
|
|
TBD: Shall the script keep trying to send messages or not?
|
|
TBD: Shall the script keep trying to send messages or not?
|
|
|
|
|
|
# Scenario 6 - Message producer/consumer not available
|
|
# Scenario 7 - Message producer/consumer not available
|
|
|
|
|
|
Questions:
|
|
Questions:
|
|
* Which information is stored in the message queue if subscribers have not been able to pick up messages?
|
|
* Which information is stored in the message queue if subscribers have not been able to pick up messages?
|
... | | ... | |