administering-linux
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying…
When distributing traffic across multiple servers or regions, use this skill to select and configure the appropriate load balancing solution (L4/L7, cloud-managed, self-managed, or Kubernetes ingress) with proper health checks and session management.
$ npx -y skills add ancoleman/ai-design-components --skill load-balancing-patterns --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/load-balancing-patternsContext preview
The summary Claude sees to decide when to auto-load this skill.
When distributing traffic across multiple servers or regions, use this skill to select and configure the appropriate load balancing solution (L4/L7, cloud-managed, self-managed, or Kubernetes ingress) with proper health checks and session management.
name: load-balancing-patterns description: When distributing traffic across multiple servers or regions, use this skill to select and configure the appropriate load balancing solution (L4/L7, cloud-managed, self-managed, or Kubernetes ingress) with proper health checks and session management.
Distribute traffic across infrastructure using the appropriate load balancing approach, from simple round-robin to global multi-region failover.
Use load-balancing-patterns when:
**Layer 4 (L4) - Transport Layer:**
**Layer 7 (L7) - Application Layer:**
For detailed comparison including performance benchmarks and hybrid approaches, see `references/l4-vs-l7-comparison.md`.
| Algorithm | Distribution Method | Use Case | |-----------|-------------------|----------| | **Round Robin** | Sequential | Stateless, similar servers | | **Weighted Round Robin** | Capacity-based | Different server specs | | **Least Connections** | Fewest active connections | Long-lived connections | | **Least Response Time** | Fastest server | Performance-sensitive | | **IP Hash** | Client IP-based | Session persistence | | **Resource-Based** | CPU/memory metrics | Varying workloads |
**Shallow (Liveness):** Is the process alive?
**Deep (Readiness):** Can the service handle requests?
**Health Check Hysteresis:** Different thresholds for marking up vs down to prevent flapping
For complete health check implementation patterns, see `references/health-check-strategies.md`.
**Application Load Balancer (ALB) - Layer 7:**
**Network Load Balancer (NLB) - Layer 4:**
**Global Accelerator - Layer 4 Global:**
**Application LB (L7):** Global HTTPS LB, Cloud CDN integration, Cloud Armor (WAF/DDoS) **Network LB (L4):** Regional TCP/UDP, pass-through balancing, session affinity **Cloud Load Balancing:** Single anycast IP, global distribution, backend buckets
**Application Gateway (L7):** WAF integration, URL-based routing, SSL termination, autoscaling **Load Balancer (L4):** Basic and Standard SKUs, health probes, HA ports **Traffic Manager (Global):** DNS-based routing (priority, weighted, performance, geographic)
For complete cloud provider configurations and Terraform examples, see `references/cloud-load-balancers.md`.
**Best for:** General-purpose HTTP/HTTPS load balancing, web application stacks
**Capabilities:**
**Basic configuration:**
upstream backend {
least_conn;
server backend1.example.com:8080 weight=3;
server backend2.example.com:8080 weight=2;
keepalive 32;
}
server {
listen 80;
location / {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}For complete NGINX patterns and advanced configurations, see `references/nginx-patterns.md`.
**Best for:** Maximum performance, database load balancing, resource efficiency
**Capabilities:**
**Basic configuration:**
frontend http_front
bind *:80
default_backend web_servers
backend web_servers
balance roundrobin
option httpchk GET /health
server web1 192.168.1.101:8080 check
server web2 192.168.1.102:8080 checkFor complete HAProxy patterns, see `references/haproxy-patterns.md`.
**Best for:** Microservices, Kubernetes, service mesh integration
**Capabilities:**
For
Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude
Repo: ancoleman/ai-design-components
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and troubleshooting. Use when deploying…
Data pipelines, feature stores, and embedding generation for AI/ML systems. Use when building RAG pipelines, ML feature serving, or data transformations.…
Strategic guidance for designing modern data platforms, covering storage paradigms (data lake, warehouse, lakehouse), modeling approaches (dimensional,…
Design cloud network architectures with VPC patterns, subnet strategies, zero trust principles, and hybrid connectivity. Use when planning VPC topology,…
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and control frameworks (NIST CSF,…
Assembles component outputs from AI Design Components skills into unified, production-ready component systems with validated token integration, proper import…