-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added leaderless replication write conflict example.
- Loading branch information
1 parent
8a20f64
commit 1e5b56e
Showing
35 changed files
with
196 additions
and
23 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions
67
slides/distributed2/diagrams/LeaderlessExampleWriteConflict1.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@startuml LeaderlessExampleWriteConflict1 | ||
|
||
left to right direction | ||
|
||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml | ||
|
||
!define DEVICONS https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/devicons | ||
!include DEVICONS/laravel.puml | ||
!include DEVICONS/javascript.puml | ||
!include DEVICONS/mysql.puml | ||
!include DEVICONS/chrome.puml | ||
|
||
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v11.1/dist | ||
!includeurl AWSPuml/AWSCommon.puml | ||
!includeurl AWSPuml/Database/RDS.puml | ||
!includeurl AWSPuml/Compute/EC2.puml | ||
!includeurl AWSPuml/Compute/EC2AutoScaling.puml | ||
!includeurl AWSPuml/NetworkingContentDelivery/ElasticLoadBalancing.puml | ||
!includeurl AWSPuml/Storage/SimpleStorageService.puml | ||
' make orange | ||
AddContainerTag("AWS", $borderColor="#ff9900", $bgColor="#ffffff", $fontColor="#000000") | ||
|
||
AddContainerTag("browser", $bgColor="#bcddfc", $fontColor="#000000") | ||
AddContainerTag("database", $bgColor="#ccfddd", $fontColor="#000000", $borderColor="#cccccc") | ||
|
||
skinparam roundcorner 20 | ||
skinparam Padding 20 | ||
skinparam NoteBorderColor transparent | ||
skinparam NoteBackgroundColor #FDDDCC | ||
' skinparam NoteFontColor white | ||
|
||
UpdateElementStyle(node, $borderColor="#cccccc", $fontColor="#5c5c5c") | ||
UpdateElementStyle(container, $bgColor="#5388cb") | ||
|
||
hide stereotype | ||
|
||
Container(client1, "Customer", "") | ||
Container(client2, "Fulfillment Centre", "") | ||
|
||
ContainerDb(db, "Replica 1", "Container: Cassandra", $tags="database") | ||
note right of db | ||
|= product_id |= name |= stock |= price | | ||
| 1234 | Nicholas Cage Reversable Pillow | 20 | $10.00 | | ||
| 4321 | Lifelike Inflatable Elephant | 5 | $50.00 | | ||
end note | ||
|
||
ContainerDb(db2, "Replica 2", "Container: Cassandra", $tags="database") | ||
note right of db2 | ||
|= product_id |= name |= stock |= price | | ||
| 1234 | Nicholas Cage Reversable Pillow | 20 | $10.00 | | ||
| 4321 | Lifelike Inflatable Elephant | 5 | $50.00 | | ||
end note | ||
|
||
ContainerDb(db3, "Replica 3", "Container: Cassandra", $tags="database") | ||
note right of db3 | ||
|= product_id |= name |= stock |= price | | ||
| 1234 | Nicholas Cage Reversable Pillow | 20 | $10.00 | | ||
| 4321 | Lifelike Inflatable Elephant | 5 | $50.00 | | ||
end note | ||
|
||
Rel(client1, db2, "Query Product 1234", $tags="browser") | ||
Rel_D(client1, db, "Query Product 1234", $tags="browser") | ||
|
||
Lay_L(db2, db3) | ||
Lay_U(db3, client2) | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions
73
slides/distributed2/diagrams/LeaderlessExampleWriteConflict2.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
@startuml LeaderlessExampleWriteConflict2 | ||
|
||
left to right direction | ||
|
||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Dynamic.puml | ||
|
||
!define DEVICONS https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/devicons | ||
!include DEVICONS/laravel.puml | ||
!include DEVICONS/javascript.puml | ||
!include DEVICONS/mysql.puml | ||
!include DEVICONS/chrome.puml | ||
|
||
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v11.1/dist | ||
!includeurl AWSPuml/AWSCommon.puml | ||
!includeurl AWSPuml/Database/RDS.puml | ||
!includeurl AWSPuml/Compute/EC2.puml | ||
!includeurl AWSPuml/Compute/EC2AutoScaling.puml | ||
!includeurl AWSPuml/NetworkingContentDelivery/ElasticLoadBalancing.puml | ||
!includeurl AWSPuml/Storage/SimpleStorageService.puml | ||
' make orange | ||
AddContainerTag("AWS", $borderColor="#ff9900", $bgColor="#ffffff", $fontColor="#000000") | ||
|
||
AddContainerTag("browser", $bgColor="#bcddfc", $fontColor="#000000") | ||
AddContainerTag("database", $bgColor="#ccfddd", $fontColor="#000000", $borderColor="#cccccc") | ||
|
||
skinparam roundcorner 20 | ||
skinparam Padding 20 | ||
skinparam NoteBorderColor transparent | ||
skinparam NoteBackgroundColor #FDDDCC | ||
' skinparam NoteFontColor white | ||
|
||
UpdateElementStyle(node, $borderColor="#cccccc", $fontColor="#5c5c5c") | ||
UpdateElementStyle(container, $bgColor="#5388cb") | ||
|
||
hide stereotype | ||
|
||
Container(client1, "Customer", "") | ||
Container(client2, "Fulfillment Centre", "") | ||
|
||
ContainerDb(db, "Replica 1", "Container: Cassandra", $tags="database") | ||
note right of db | ||
|= product_id |= name |= stock |= price | | ||
| 1234 | Nicholas Cage Reversable Pillow | 20 | $10.00 | | ||
| 4321 | Lifelike Inflatable Elephant | 5 | $50.00 | | ||
end note | ||
|
||
ContainerDb(db2, "Replica 2", "Container: Cassandra", $tags="database") | ||
note right of db2 | ||
|= product_id |= name |= stock |= price | | ||
| 1234 | Nicholas Cage Reversable Pillow | <color:red>19</color> | $10.00 | | ||
| 4321 | Lifelike Inflatable Elephant | 5 | $50.00 | | ||
end note | ||
|
||
ContainerDb(db3, "Replica 3", "Container: Cassandra", $tags="database") | ||
note right of db3 | ||
|= product_id |= name |= stock |= price | | ||
| 1234 | Nicholas Cage Reversable Pillow | 19 | $10.00 | | ||
| 4321 | Lifelike Inflatable Elephant | 5 | $50.00 | | ||
end note | ||
|
||
' Rel_D(client1, db2, "Query Product 1234", $tags="browser") | ||
' Rel_D(client1, db, "Query Product 1234", $tags="browser") | ||
|
||
Rel_D(client2, db3, "Decrease Stock of Product 1234", $tags="browser") | ||
Rel_D(client2, db2, "Decrease Stock of Product 1234", $tags="browser") | ||
|
||
Rel_D(client1, db2, "Order 20 Items of 1234", $tags="browser") | ||
Rel_D(client1, db, "Order 20 Items of 1234", $tags="browser") | ||
Rel_U(db2, client1, "Error", $tags="browser") | ||
|
||
Lay_L(db2, db3) | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters