@ -5,7 +5,7 @@ title: Examples
Here are some more examples.
Here are some more examples.
## Grouped Workers
## Grouped Workers on AWS
```python
```python
from diagrams import Diagram
from diagrams import Diagram
@ -54,7 +54,7 @@ with Diagram("Clustered Web Services", show=False):


## Event Processing
## Event Processing on AWS
```python
```python
from diagrams import Cluster, Diagram
from diagrams import Cluster, Diagram
@ -89,7 +89,7 @@ with Diagram("Event Processing", show=False):


## Message Collecting System
## Message Collecting System on GCP
```python
```python
from diagrams import Cluster, Diagram
from diagrams import Cluster, Diagram
@ -127,7 +127,7 @@ with Diagram("Message Collecting", show=False):


## Exposed Pod with 3 Replicas on k8 s
## Exposed Pod with 3 Replicas on Kubernete s
```python
```python
from diagrams import Diagram
from diagrams import Diagram
@ -145,7 +145,7 @@ with Diagram("Exposed Pod with 3 Replicas", show=False):


## Stateful Architecture on k8 s
## Stateful Architecture on Kubernete s
```python
```python
from diagrams import Cluster, Diagram
from diagrams import Cluster, Diagram
@ -170,37 +170,6 @@ with Diagram("Stateful Architecture", show=False):


## RabbitMQ Consumers with custom nodes
```python
from urllib.request import urlretrieve
from diagrams import Cluster, Diagram
from diagrams.custom import Custom
from diagrams.aws.database import Aurora
from diagrams.k8s.compute import Pod
# Download an image to be used into a Custom Node class
rabbitmq_url = "https://jpadilla.github.io/rabbitmqapp/assets/img/icon.png"
rabbitmq_icon = "rabbitmq.png"
urlretrieve(rabbitmq_url, rabbitmq_icon)
with Diagram("Broker Consumers", show=False):
with Cluster("Consumers"):
consumers = [
Pod("worker"),
Pod("worker"),
Pod("worker")
]
queue = Custom("Message queue", rabbitmq_icon)
queue >> consumers >> Aurora("Database")
````

## Advanced Web Service with On-Premise
## Advanced Web Service with On-Premise
```python
```python
@ -243,3 +212,34 @@ with Diagram("Advanced Web Service with On-Premise", show=False):
```
```


## RabbitMQ Consumers with Custom Nodes
```python
from urllib.request import urlretrieve
from diagrams import Cluster, Diagram
from diagrams.custom import Custom
from diagrams.aws.database import Aurora
from diagrams.k8s.compute import Pod
# Download an image to be used into a Custom Node class
rabbitmq_url = "https://jpadilla.github.io/rabbitmqapp/assets/img/icon.png"
rabbitmq_icon = "rabbitmq.png"
urlretrieve(rabbitmq_url, rabbitmq_icon)
with Diagram("Broker Consumers", show=False):
with Cluster("Consumers"):
consumers = [
Pod("worker"),
Pod("worker"),
Pod("worker")
]
queue = Custom("Message queue", rabbitmq_icon)
queue >> consumers >> Aurora("Database")
````
