DEV Community

Cover image for Part-66: 🚦 Google Cloud Networking: Cloud Load Balancing (Global & Regional)
Latchu@DevOps
Latchu@DevOps

Posted on

Part-66: 🚦 Google Cloud Networking: Cloud Load Balancing (Global & Regional)

Load balancing is the backbone of highly available, scalable applications. In Google Cloud, Cloud Load Balancing is a fully managed service that automatically distributes traffic to your backend services, ensuring performance, reliability, and global reach.


🌍 Global vs Regional Load Balancing

Global Load Balancing

  • Distributes traffic across multiple regions.
  • Uses a single anycast IP to route users to the closest healthy backend.
  • Supports automatic failover between regions.

Regional Load Balancing

  • Distributes traffic within a single region across zones.
  • Ensures availability at the regional level.

βœ… Both are software-defined β†’ no hardware, no manual scaling. Traffic handling grows from zero to full throttle in seconds.


Google Cloud Load Balancing - Types

Application Load Balancer (HTTP / HTTPS)

l1

Network Load Balancer (TCP / UDP / Other IP Protocols)

l2


⚑ Protocols Supported

l3

Layer 7 (Application Load Balancer)

  • HTTP / HTTPS

Layer 4 (Network Load Balancer - Proxy Mode)

  • TCP Proxy
  • SSL Proxy (with SSL offloading)

Layer 4 (Network Load Balancer - Pass-through Mode)

  • TCP, UDP, ICMP, ICMPv6, SCTP, ESP, AH, GRE

πŸ’‘ Reminder: Each OSI layer builds on the ones below (Layer 7 uses Layers 1–6).


🧩 Key Terminology

l4

πŸ”Ή Backend

Services that receive traffic:

  • Instance Groups
  • Cloud Storage
  • App Engine
  • Cloud Run
  • GKE
  • Cloud Functions
  • Even external backends

πŸ”Ή Frontend

  • Defines IP, port, and protocol (HTTP, HTTPS, TCP, UDP, etc.)
  • This is the entry point users access.

πŸ”Ή Routing Rules (Application LB)

l5

Path-based routing

  • stacksimplify.com/app1 β†’ App1
  • stacksimplify.com/app2 β†’ App2

Host-based routing

  • app1.stacksimplify.com β†’ App1
  • app2.stacksimplify.com β†’ App2

Rewrites

  • Host Rewrite: app1.stacksimplify.com β†’ app1.terraformguru.com
  • Path Rewrite: /app1 β†’ /app1new

Redirects, header manipulation, URL rewrites and more!


πŸš€ Why Use Google Cloud Load Balancing?

  • High availability across zones, regions, and globally
  • Scales seamlessly with demand
  • Low latency with Anycast IP routing
  • Integrates natively with all major Google Cloud services

🌟 Thanks for reading! If this post added value, a like ❀️, follow, or share would encourage me to keep creating more content.


β€” Latchu | Senior DevOps & Cloud Engineer

☁️ AWS | GCP | ☸️ Kubernetes | πŸ” Security | ⚑ Automation
πŸ“Œ Sharing hands-on guides, best practices & real-world cloud solutions

Top comments (0)