Skip to content

Instantly share code, notes, and snippets.

@tzach
Created June 9, 2026 13:37
Show Gist options
  • Select an option

  • Save tzach/d94ccf520a9a115e7cf690ffe13b7551 to your computer and use it in GitHub Desktop.

Select an option

Save tzach/d94ccf520a9a115e7cf690ffe13b7551 to your computer and use it in GitHub Desktop.
```mermaid
flowchart TD
A["πŸ”Œ TCP server accepts connection
Routes to appropriate shard"]
A --> B{TLS enabled?}
B -- Yes --> C["πŸ”’ TLS handshake
Certificate exchange & encryption"]
B -- No --> D
C --> D["🀝 CQL version negotiation
Client & server agree on protocol version"]
D --> E["βš™οΈ Protocol OPTIONS exchanged
Capabilities & features advertised"]
E --> F{Auth enabled?}
F -- No --> H
F -- Yes --> G["πŸ”‘ Authentication begins
Credentials presented by client"]
G --> G2["#️⃣ Password hash computed
Verified against stored role hash"]
G2 --> H["πŸ‘₯ Role memberships determined
Effective service level calculated"]
H --> I["πŸ–₯️ Assigned to CPU scheduling group
Based on effective service level"]
style A fill:#E6F1FB,stroke:#185FA5,color:#0C447C
style C fill:#E1F5EE,stroke:#0F6E56,color:#085041
style D fill:#EEEDFE,stroke:#534AB7,color:#3C3489
style E fill:#EEEDFE,stroke:#534AB7,color:#3C3489
style G fill:#FAECE7,stroke:#993C1D,color:#712B13
style G2 fill:#FAECE7,stroke:#993C1D,color:#712B13
style H fill:#FAEEDA,stroke:#854F0B,color:#633806
style I fill:#E1F5EE,stroke:#0F6E56,color:#085041
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment