|
@@ -262,8 +262,8 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False): |
|
|
from urllib.request import urlretrieve |
|
|
from urllib.request import urlretrieve |
|
|
|
|
|
|
|
|
from diagrams import Cluster, Diagram |
|
|
from diagrams import Cluster, Diagram |
|
|
from diagrams.custom import Custom |
|
|
|
|
|
from diagrams.aws.database import Aurora |
|
|
from diagrams.aws.database import Aurora |
|
|
|
|
|
from diagrams.custom import Custom |
|
|
from diagrams.k8s.compute import Pod |
|
|
from diagrams.k8s.compute import Pod |
|
|
|
|
|
|
|
|
# Download an image to be used into a Custom Node class |
|
|
# Download an image to be used into a Custom Node class |
|
@@ -271,14 +271,12 @@ rabbitmq_url = "https://jpadilla.github.io/rabbitmqapp/assets/img/icon.png" |
|
|
rabbitmq_icon = "rabbitmq.png" |
|
|
rabbitmq_icon = "rabbitmq.png" |
|
|
urlretrieve(rabbitmq_url, rabbitmq_icon) |
|
|
urlretrieve(rabbitmq_url, rabbitmq_icon) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with Diagram("Broker Consumers", show=False): |
|
|
with Diagram("Broker Consumers", show=False): |
|
|
with Cluster("Consumers"): |
|
|
with Cluster("Consumers"): |
|
|
consumers = [ |
|
|
consumers = [ |
|
|
Pod("worker"), |
|
|
Pod("worker"), |
|
|
Pod("worker"), |
|
|
Pod("worker"), |
|
|
Pod("worker") |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
Pod("worker")] |
|
|
|
|
|
|
|
|
queue = Custom("Message queue", rabbitmq_icon) |
|
|
queue = Custom("Message queue", rabbitmq_icon) |
|
|
|
|
|
|
|
|