Index of every page on this site: llms.txt
All skills
proyecto26 avatar

/load-balancing

@228d57d
Run it yourself

This skill should be used when the user adds a "load balancer", asks about "L4 vs L7" (transport vs application layer), picks a balancing algorithm ("round robin", "least connections", "weighted", "IP hash"), configures "health checks", needs "sticky sessions" / "session affinity", adds a "reverse proxy", does "SSL/TLS termination", spreads "traffic distribution" across an "autoscaling group", or wants a stateless web tier behind a single entry point. Use it whenever a design has more than one server behind one address, or a single box is the entry-point bottleneck or SPOF, even if the user doesn't say "load balancer".

Use this Skill: https://skilld.dev/gh/proyecto26/system-design-skills/load-balancing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesprovidersgcp.md

≈602 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Load balancing — GCP

Service mapping

GCP unifies most options under Cloud Load Balancing, split by layer and scope:

  • Global external Application LB — L7, anycast single global IP, host/path routing, TLS termination, integrates with Cloud CDN at the edge (cross-region steering + caching, → content-delivery). The default for global HTTP(S).
  • Regional external Application LB — L7 scoped to one region when global/ anycast isn't needed.
  • External passthrough Network LB — L4 (TCP/UDP); preserves client IP, passthrough (no termination), very high throughput.
  • Proxy Network LB — L4 that terminates TCP (optionally TLS) and proxies.
  • Internal LBs — L4 and L7 variants for private VPC traffic between tiers.
  • Managed Instance Group (MIG) — the autoscaling fleet the LB balances over, with health-gated membership (the stateless-tier enabler).

When to pick which

Global external Application LB for global HTTP(S) with anycast + CDN; regional Application LB for single-region L7; passthrough Network LB for L4 throughput and source-IP preservation; internal LBs for tier-to-tier traffic inside the VPC.

Limits / things that bite (verify against current docs)

  • The global Application LB uses anycast with Google's edge — there's no single warm-up cliff like some per-region LBs, but backend MIG capacity and autoscaling still bound real throughput.
  • Health checks are central to membership and to autoscaling/autohealing — a too-aggressive or too-deep check can evict or recreate healthy instances; tune interval, thresholds, and check depth.
  • Backend service settings (connection draining timeout, balancing mode by RATE/UTILIZATION/CONNECTION, capacity scaler) directly shape distribution — set them deliberately.
  • Network LB is passthrough (no TLS termination / no L7 routing) — use an Application LB or Proxy LB when you need those.

Pitfalls

  • Picking a passthrough Network LB then needing path-based routing or TLS termination (wrong layer — use Application LB).
  • Leaving generated-cookie affinity on instead of externalizing session state.
  • Misconfigured balancing mode causing hot backends (e.g. CONNECTION mode for uneven request cost — prefer RATE/UTILIZATION).
  • Lock-in: backend-service config, URL maps, and global anycast IPs don't port to other clouds.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts24d3 checks · Risk SAFE
  • Gen Agent Trust Hub24d

    The skill is a set of architectural guidelines and reference materials for load balancing strategies. It contains no executable code, remote downloads, or dangerous commands.

  • Socket24d

    No alerts

  • Snyk24d

    Risk: LOW · No issues

Signed by skilld at 228d57d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 4 weeks ago

README badge

README badge for proyecto26/system-design-skills/load-balancing