
β‘οΈ Guides: https://teapawt.org/t.co/XnyCOz3kgs π Demo/Features: https://teapawt.org/t.co/4WPqWeQZqk π§ Cloud Quizzes: https://teapawt.org/t.co/IB96Vy7kO3 π§πΌβ Founder: @CSJcode
Joined October 2024
- Tweets2.4K
- Following3.4K
- Followers1.9K
- Likes3.5K
Pinned Tweet
π‘οΈDisaster Recovery (DR) - Cloud Systems Design (Core)
youtube.com/watch?v=rZ8HMbJfβ¦
This video walks through seven key things every cloud engineer should know about disaster recovery:
β
RTO, RPO, and MTD - how long service may stay down, how much data you can lose measured in time, and the point past which the business itself is damaged, so keep RTO well inside MTD and set all three per workload
β
The four recovery strategies - Backup and Restore rebuilds from snapshots over hours, Pilot Light keeps a minimal core ready, Warm Standby runs a scaled-down stack, and Multi-Site Active/Active gives near-zero RTO for roughly double the bill
β
Backups that survive an attacker - write-once retention locks like S3 Object Lock and Azure Blob immutability policies, air-gapped copies under different credentials, and Point-in-Time Recovery replaying transaction logs to any second
and more!!!
youtube.com/watch?v=rZ8HMbJfβ¦
2
292
SystemsArchitect.io retweeted
Amazon Says Cloud Infrastructure In Bahrain, UAE 'Beyond Saving' zerohedge.com/technology/amaβ¦
π Zero Trust AI Agents - Never Trust, Always Verify for AI Agents in the Cloud!
βΆ youtube.com/watch?v=TGvoQmJ1β¦
This video walks through seven key things every cloud engineer should know about Zero Trust Agents:
β
Per-agent authentication and identity federation - SPIFFE/SPIRE workload identity, AWS OIDC role assumption and IAM Roles Anywhere, Azure and Google Workload Identity Federation, and Bedrock AgentCore Identity
β
Short-lived credentials and secrets management - AWS STS, Azure Managed Identities and Google service account impersonation, with Vault, Secrets Manager, Key Vault or Secret Manager injecting the rest
β
Least privilege and capability-based access control - scope to the task rather than the job title, unforgeable per-action tokens, and the MCP Authorization spec's audience-bound tokens that block token replay
β
Policy as Code and runtime enforcement - Open Policy Agent with Rego, AWS Cedar and Azure Policy as reviewable code, enforced at the tool gateway before anything executes
and a lot more...!!!
youtube.com/watch?v=TGvoQmJ1β¦
3
5
263
π Zero Trust AI Agents - Never Trust, Always Verify for AI Agents in the Cloud!
βΆ youtube.com/watch?v=TGvoQmJ1β¦
3
57
(VIDEO, 8m) π AI Agent Self-Healing Clouds That Detect, Diagnose, and Repair Your Infrastructure!
βΆ youtube.com/watch?v=5UaDFObBβ¦
This video walks through seven key things every cloud engineer should know about Self-Healing Clouds:
β
Closed-loop automation - traditional monitoring ends at an alert and waits for a person, while a closed loop carries the same signal through diagnosis into an action
β
Observability-driven agents - metrics, logs, traces, and events from Prometheus, CloudWatch, and Azure Monitor, instrumented with OpenTelemetry first
β
Anomaly detection and predictive failure detection - learning each service's baseline instead of firing on fixed thresholds, and spotting disk wear or certificate expiry days ahead
β
Root cause analysis agents - pulling change logs, deploy history, topology, and failing signals into one view, then ranking and testing hypotheses against evidence
... and more! youtube.com/watch?v=5UaDFObBβ¦
1
5
197
SystemsArchitect.io retweeted
System Design -Day 64 - Database Internals: How a Database Actually Works
We have completed Phase 2 - Messaging & Event-Driven Architecture.
Now we are starting:
Phase 3 - Database & Data-System Design
You write INSERT, SELECT, UPDATE, and DELETE.
But what actually happens inside the database after you execute that SQL?
Understanding the internals helps explain indexes, query performance, transactions, locks, caching, and scaling.
-------------------------------
The High-Level Picture
A database is much more than a collection of tables.
Application
β
SQL Query
β
Query Processor
β
Storage Engine
β
Buffer / Cache
β
Disk
Every layer has a different responsibility.
----------------------
SQL Doesn't Go Directly to Disk
When you execute:
SELECT * FROM orders
WHERE customer_id = 101;
The database doesn't simply search the disk row by row.
It first parses and analyzes the query.
SQL
β
Parser
β
Query Planner
β
Execution Plan
β
Execution
------------------
Query Parser
The parser checks whether the SQL is valid.
SELECT
FROM
WHERE
It builds an internal representation of the query.
For example:
SELECT
β
orders
β
customer_id = 101
Syntax errors are detected at this stage.
---------------------------
Query Planner / Optimizer
The database may have several ways to execute the same query.
For example:
Option A β Full Table Scan
Option B β Index Scan
Option C β Index + Table Lookup
The optimizer estimates the cost of each option and chooses a plan.
Query
β
Optimizer
β
Best Available Plan
This is why the same SQL can perform very differently depending on indexes and statistics.
----------------------------
Storage Engine
The storage engine is responsible for actually storing and retrieving data.
It handles things like:
- Data pages
- Indexes
- Reads
- Writes
- Caching
- Concurrency
- Durability
Conceptually:
Query
β
Storage Engine
β
Pages
β
Disk
Different databases use different storage-engine designs.
------------------------
Data Is Stored in Pages
Databases usually don't read one row from disk at a time.
They work with pages/blocks.
Disk
ββββββββββββββββββββββ
β Page 1 β
β Row Row Row Row β
ββββββββββββββββββββββ€
β Page 2 β
β Row Row Row Row β
ββββββββββββββββββββββ€
β Page 3 β
β Row Row Row Row β
ββββββββββββββββββββββ
A page is the basic unit of many database I/O operations.
------------------------------
Buffer Pool / Cache
Disk is much slower than memory.
So databases keep frequently used pages in memory.
Query
β
Buffer Pool
β
Page Found? ββ YES β Use Memory
β
NO
β
Read From Disk
β
Put Page In Memory
This is one of the biggest reasons database memory matters.
-------------------
What Happens During an INSERT?
Suppose:
INSERT INTO orders
VALUES (101, 500);
Conceptually:
INSERT
β
Parse
β
Plan
β
Modify Page in Memory
β
Write Log
β
Eventually Flush Page
The database doesn't necessarily write the complete data page to disk immediately.
This is where write-ahead logging becomes important.
---------------------------
Write-Ahead Log (WAL)
Before modifying durable database state, the database records the change in a log.
Transaction
β
WAL
β
Data Pages
If the database crashes:
Crash
β
Read WAL
β
Recover Changes
WAL is a fundamental building block for durability and crash recovery.
------------------
What Happens During SELECT?
For:
SELECT * FROM orders
WHERE id = 101;
The database may:
Query
β
Query Plan
β
Index Lookup
β
Find Page
β
Buffer Pool
β
Read Row
β
Return Result
If there is no useful index:
Query
β
Full Table Scan
β
Read Many Pages
β
Find Matching Row
This is why indexing matters.
--------------------
Why Database Internals Matter
These concepts explain many production problems.
Slow query?
Could be:
Bad Query Plan
Missing Index
Large Table Scan
Poor Statistics
Disk I/O
Database suddenly slow?
Could be:
Buffer Pool Misses
High Disk I/O
Lock Contention
Connection Exhaustion
Data after crash?
Think:
WAL
Recovery
Durability
Understanding the internals helps you diagnose the why, not just apply random fixes.
---------------------
The Complete Picture
Application
β
SQL Query
β
βββββββββββββββββ
β Query Parser β
βββββββββ¬ββββββββ
β
βββββββββββββββββ
β Query Planner β
βββββββββ¬ββββββββ
β
βββββββββββββββββ
βStorage Engine β
βββββββββ¬ββββββββ
β
Buffer Pool
β β
Memory WAL
β β
ββββ Disk
----------------------
Key Takeaway
When you execute SQL, the database goes through a chain of systems:
SQL
β
Parse
β
Plan
β
Execute
β
Buffer / Cache
β
Pages
β
Disk + WAL
The important mental model is:
A database is a query processor sitting on top of a sophisticated storage system.
Once you understand that, concepts like indexes, query plans, transactions, MVCC, locks, replication, and sharding become much easier to reason about..
(VIDEO, 8m) π10 OWASP Vulnerability Myths - The WAF is not enough!
youtube.com/watch?v=Boxry-bNβ¦
βΆ (1) Subscribe to the channel. (2) Like the video. (3) Follow the playlist.
β‘οΈA WAF, an ORM, and a strong login all look like they close the OWASP Top 10. They catch the common case. They fail once the request leaves that one path - metadata SSRF, object-level authorization, or a library you did not patch.
This video walks through ten OWASP vulnerability myths so you can tell a real control from a checkbox:
β
Treat every external input as untrusted - injection still lands in NoSQL, shells, templates, LDAP, and prompts
β
Restrict outbound fetches and require a metadata token - cloud SSRF steals instance credentials
β
Keep the WAF as one layer only - signatures miss business-logic flaws and skipped authorization checks
β
Enforce object-level and function-level authorization in the backend - a gateway is coarse-grained
β
Check authorization on every object - BOLA, IDOR, and multi-tenant privilege escalation are cloud-native
... and A LOT MORE!!!
youtube.com/watch?v=Boxry-bNβ¦
2
210
π The AI Agent Mesh - A Network of Cooperating Specialists, Not a Monolith (AI Cloud Architecture)
youtube.com/watch?v=CDPlmLIzβ¦
(1) Subscribe to the channel. (2) Like the video. (3) Follow the playlist.
The Agent Mesh is an architecture where specialized AI agents discover each other, communicate, and collaborate through standardized protocols - across teams, accounts, and cloud providers.
βΆ A single agent holding fifty tools degrades fast. Splitting the work gives each agent a narrow toolset, a smaller prompt, and a clearer evaluation target.
This video walks through seven key things every cloud engineer should know about the Agent Mesh:
β
Finding agents you didn't write - discovery through A2A Agent Cards and registries, with Amazon Bedrock AgentCore, Azure AI Foundry and Google Vertex AI Agent Engine as managed options
β
The two protocols that matter - MCP connects an agent downward to tools and data, A2A connects agents sideways as peers, both now under Linux Foundation governance
β
Who directs and who works - orchestrator and supervisor agents decomposing goals, and the hierarchical versus peer-to-peer topology decision
β
What every agent needs to remember - shared memory on pgvector, Redis or Azure Cosmos DB, plus coordination with leases, idempotency keys and an event log on Kafka
and ... MORE!
youtube.com/watch?v=CDPlmLIzβ¦
178
(VIDEO, 7m) β‘οΈDatabase Sharding - Scale Writes Past the Biggest Machine You Can Buy (Cloud Systems Design series)
youtube.com/watch?v=ZV9sfDMMβ¦
(1) Subscribe to the channel. (2) Like the video. (3) Follow the playlist.
Sharding, also called horizontal partitioning, splits one logical database across many independent databases, each shard holding a distinct slice of the rows. Together they serve one dataset that no single machine could hold. This is where scaling stops being a purchase and becomes an architecture decision - vertical scaling buys a bigger machine, and eventually there is no bigger machine to buy.
This video walks through seven key things every cloud engineer should know about database sharding:
β
Choosing a shard key (partition key) - high cardinality so rows spread widely, present in most queries so they can route to one shard, and composite keys when neither column is enough
β
Hash-based sharding - close to uniform distribution as the common default, why naive modulo hashing breaks the moment you add a node, and how consistent hashing moves only a fraction of keys
β
Range-based and directory-based (lookup) sharding - fast range scans on one shard, the sequential-key trap, and freedom to move any tenant at the cost of a lookup on the hot path
β
Geo-sharding - European rows in Frankfurt, Asian rows in Singapore, data locality applied to a map, plus residency rules that make the split mandatory.
... AND MORE!
1
2
219
(VIDEO, 7m) πContainerization in Cloud Systems Design - Package Once, Run Anywhere!
youtube.com/watch?v=OBEU63Fjβ¦
This video walks through seven key things every cloud engineer should know about in an overview of containerization, whether you are exploring Docker, Kubernetes or related tools:
β
Kernel features doing the work - namespace isolation gives each container its own view of process IDs, network, and mounts, while cgroups cap CPU, memory, and I/O, wired by an OCI runtime like containerd or CRI-O
β
Images built from layers - a Docker image is a stack of content-addressed layers merged by a layered filesystem like UnionFS, so a shared base downloads once
β
Keeping images small and clean - multi-stage builds leave the compiler and caches behind, and a distroless or Alpine base cuts a gigabyte-plus image to megabytes with far fewer vulnerabilities
β
Registries as the distribution layer - Docker Hub, Amazon ECR, Azure Container Registry, and Google Artifact Registry are live production dependencies, so sign your images and replicate per region
1
3
258
Containerization in Cloud Systems Design Video: youtube.com/watch?v=OBEU63Fjβ¦
2
38
π‘οΈ 10 Myths About Distributed Systems That Trick Cloud Professionals
youtube.com/watch?v=KjKEsBJUβ¦
(1) Subscribe to the channel. (2) Like the video. (3) Follow the playlist.
β
Cap retries as a share of traffic - add jitter, and notify when they spike
β
Keep health checks local to the instance - alert on shared dependencies separately
β
Hold warm capacity for known peaks - a real spike is over before new instances boot
β
Cap the queue and drop work past its deadline - a backlog is still failed work
β
Serve stale values when a cache refresh fails - a cold cache can send 20x database traffic
β
Shorten connection lifetimes and test failover-aware endpoints - clients hold the old address for minutes
... and more!!!
youtube.com/watch?v=KjKEsBJUβ¦
1
2
189
SystemsArchitect VIDEO Playlists (daily updates)
πWatch! SUBSCRIBE! π₯+ more planned!
βΆ Cloud Systems Design (Core)
youtube.com/playlist?list=PLβ¦
βΆ AI Cloud Architecture
youtube.com/playlist?list=PLβ¦
βΆ Cloud Strategies (AWS)
youtube.com/playlist?list=PLβ¦
βΆ Cloud Microstacks (AWS)
youtube.com/playlist?list=PLβ¦
βΆ Cloud Decisions
youtube.com/playlist?list=PLβ¦
βΆ Cloud Security Checklists
youtube.com/playlist?list=PLβ¦
βΆ SystemsArchitect VIDEO Channel
youtube.com/@systemsarchitecβ¦
(VIDEO, 10m) π€ Infrastructure as Agents - Autonomous AI Agents Behind Your Infrastructure as Code!
youtube.com/watch?v=JRM6PQClβ¦
(1) Subscribe to the channel. (2) Like the video. (3) Save the playlist.
β
From executor to approver - the agent plans its own steps and previews impact, while oversight, permission scoping, and review stay with you
β
Model, harness, and tools - Claude Code, OpenAI Codex, LangChain, Kagent and Cline, with tool use, memory, and MCP wiring real commands into the loop
β
The code the agent writes - Terraform, CloudFormation, Bicep and Pulumi as reviewable artifacts, HCP Terraform, Pulumi Neo, and GitOps pull-request-first change control
β
Specialists under a conductor - multi-agent systems and orchestration, with Kagent on Kubernetes as a concrete CNCF example
β
Goals instead of tickets - intent-driven provisioning, and a human-in-the-loop approval gate in front of every production account
β
Guardrails around every plan - Policy as Code with Open Policy Agent, Sentinel, Conftest and tfpolicy, sandboxed execution, and blast radius control
See more (VIDEO, 10m): Infrastructure as Agents
youtube.com/watch?v=JRM6PQClβ¦
1
35











