|
|
@ -22,11 +22,11 @@ with Diagram("Simple Web Service with DB Cluster", show=False):
|
|
|
|
web = ECS("service")
|
|
|
|
web = ECS("service")
|
|
|
|
|
|
|
|
|
|
|
|
with Cluster("DB Cluster"):
|
|
|
|
with Cluster("DB Cluster"):
|
|
|
|
db_master = RDS("master")
|
|
|
|
db_primary = RDS("primary")
|
|
|
|
db_master - [RDS("slave1"),
|
|
|
|
db_primary - [RDS("replica1"),
|
|
|
|
RDS("slave2")]
|
|
|
|
RDS("replica2")]
|
|
|
|
|
|
|
|
|
|
|
|
dns >> web >> db_master
|
|
|
|
dns >> web >> db_primary
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
@ -68,4 +68,4 @@ with Diagram("Event Processing", show=False):
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
> There is no depth limit of nesting. Feel free to create nested clusters as deep as you want.
|
|
|
|
> There is no depth limit of nesting. Feel free to create nested clusters as deep as you want.
|
|
|
|