-
Notifications
You must be signed in to change notification settings - Fork 38
/
cassandra_queries.d2
executable file
·82 lines (67 loc) · 2.14 KB
/
cassandra_queries.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env d2 --theme 200
#
# vim:ts=2:sts=2:sw=2:et:filetype=d2
#
# Author: Hari Sekhon
# Date: 2024-08-25 04:26:26 +0200 (Sun, 25 Aug 2024)
#
# https///github.com/HariSekhon/Diagrams-as-Code
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# C a s s a n d r a Q u e r i e s
# ============================================================================ #
direction: right
title: {
label: Cassandra Queries
near: top-center
shape: text
style.font-size: 40
style.underline: true
}
classes: {
users: {
label: Users
icon: https://icons.terrastruct.com/essentials%2F359-users.svg
# icon: https://diagrams.mingrammer.com/img/resources/onprem/client/users.png
shape: image
}
cassandra: {
icon: https://diagrams.mingrammer.com/img/resources/onprem/database/cassandra.png
shape: image
}
}
# ============================================================================ #
# N o d e s
# ============================================================================ #
users.class: users
cassandra_node1: Cassandra Node 1\n(Query Coordinator) {
class: cassandra
}
cassandra_node2: Cassandra Node 2 {
class: cassandra
}
cassandra_node3: Cassandra Node 3 {
class: cassandra
}
cassandra_node3: Cassandra Node 3 {
class: cassandra
}
cassandra_node4: Cassandra Node 4 {
class: cassandra
}
# ============================================================================ #
# F l o w
# ============================================================================ #
users -> cassandra_node1: CQL\nquery
cassandra_node1 -> cassandra_node2: query
cassandra_node1 -> cassandra_node3: query
cassandra_node1 -> cassandra_node4: query
cassandra_node1 <- cassandra_node2: response
cassandra_node1 <- cassandra_node3: response
cassandra_node1 <- cassandra_node4: response