- Home
- Skills
- Agents & Orchestration
- Platform Architecture Blueprint
Platform Architecture Blueprint
by Jeremy Ume
Architectural guidance for scaling websites, APIs, and distributed systems using pragmatic, measurement-based patterns.
$3
Platform Architecture Blueprint
Example session with this skill installed
We are building a real-time collaborative dashboard. We have about 500 concurrent users. We use React and Python. Should we use polling or WebSockets, and how do we handle reconnections?
- Read your context and instructions
- Compiled the platform architecture blueprint
I have analyzed your requirements for a real-time collaborative dashboard with 500 concurrent users. Given the need for user-visible live data and a React/Python stack, a persistent connection is preferred over polling to minimize latency and unnecessary overhead.
Architecture Recommendation: Real-Time Sync
For 500 concurrent users, WebSockets provide the necessary two-way high-frequency interaction. Below is the architectural approach for implementation and reconnection logic.
| Component | Strategy | Recommendation |
|---|---|---|
| Protocol | WebSockets (WSS) | Use for two-way updates; avoids high-frequency polling overhead. |
| Backend | FastAPI + Redis Pub/Sub | Use Redis to broadcast events across multiple FastAPI worker instances. |
| Auth | Connection-time JWT | Authorize the subscription on the initial handshake; scope to tenant ID. |
| Reconnection | Exponential Backoff | Client-side logic with jitter to prevent thundering herd on server restart. |
| State Recovery | Versioned Fetch | Client must refresh state from the REST API source of truth after reconnecting. |
Implementation Detail (Python/FastAPI)
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
from typing import List
class ConnectionManager:
def __init__(self):
self.active_connections: List[WebSocket] = []
async def connect(self, websocket: WebSocket):
await websocket.accept()
self.active_connections.append(websocket)
def disconnect(self, websocket: WebSocket):
self.active_connections.remove(websocket)
async def broadcast(self, message: str):
for connection in self.active_connections:
await connection.send_text(message)
manager = ConnectionManager()
Next steps
- Determine if managed services like AWS AppSync or Azure Web PubSub fit the budget to offload connection management.
- Implement a client-side heartbeat (ping/pong) to detect silent connection drops.
- Define the message schema for partial state updates to minimize egress costs.
Connects securely to your tools. The creator never sees your data.
About this skill
Modern system design often defaults to over-engineering, leading to ballooning cloud costs and unmanageable complexity. This skill enforces a pragmatic, measurement-driven approach to platform architecture, ensuring infrastructure choices solve actual product needs rather than hypothetical scaling issues. It provides structured guidance on system boundaries, traffic management, and data consistency for applications, APIs, and AI services.
What it does
- Architectural selection identifies the smallest viable infrastructure that meets measured workload, latency, and cost constraints.
- Traffic management defines strategies for reverse proxies, load balancers, API gateways, and CDN edge policies.
- Reliability engineering implements circuit breakers, exponential backoff, jitter, and dead-letter queues for asynchronous work.
- Data consistency guides tradeoffs between CAP theorem properties, replication lag, and distributed locking mechanisms.
- Operations and delivery structures CI/CD pipelines, Infrastructure as Code (Terraform/Helm), and container orchestration via Kubernetes or managed services.
How it works
- Define constraints by establishing workload patterns, data sensitivity, and recovery objectives (RTO/RPO) before selecting services.
- Evaluate protocols by choosing between WebSockets, SSE, gRPC, or HTTP/3 based on client support and measured performance.
- Optimize data flow by selecting consistency models and partitioning strategies specific to the database workload.
- Scale pragmatically by measuring P99 latency and throughput to determine if vertical or horizontal scaling is required.
Frameworks & tools
Primary recommendations focus on React, TypeScript, and Tailwind for frontend, with Python, FastAPI, and PostgreSQL for backends. It supports AWS, GCP, Azure, Docker, Kubernetes, Terraform, and specialized tools like Convex or Firecrawl for extraction.
Why this beats prompting it yourself
Generic AI prompts often suggest "best practices" like microservices or sharding by default, which can kill early-stage projects. This skill specifically guards against resume-driven development by requiring evidence of constraints before adding complexity. It ensures consistency across protocol choices, retry logic, and concurrency controls that are often overlooked in standard prompts.
Use cases
- Designing a multi-tenant API with rate limiting and edge caching policies.
- Transitioning a monolithic backend to an event-driven architecture using message queues.
- Establishing disaster recovery and backup restoration procedures for mission-critical data.
- Auditing tail latency issues and implementing connection pooling for high-traffic services.
Known limitations
Does not perform account creation or credential management. Requires specific authorization before recommending paid resources. Focuses on current supported paths rather than backward compatibility for hypothetical clients.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.