Max Hausner & Yves Fauser
gRPC Load Balancing Deep Dive
#1about 4 minutes
An overview of gRPC fundamentals and its trade-offs
gRPC is a high-performance framework using Protobuf for efficiency, but it has limitations in browser support and tooling maturity compared to REST.
#2about 4 minutes
How gRPC streaming and HTTP/2 affect load balancing
gRPC supports various streaming patterns over persistent HTTP/2 connections, which can cause traffic hotspots with traditional Layer 4 load balancing.
#3about 3 minutes
Client-side versus infrastructure-based load balancing strategies
Choose client-side load balancing for low-latency internal services and infrastructure-based load balancing for external APIs that require a clear demarcation point.
#4about 7 minutes
Exploring different types of load balancing algorithms
A review of basic, load-based, and hash-based algorithms reveals that options like "least outstanding requests" can outperform simple round robin for uneven loads.
#5about 2 minutes
Why autoscaling gRPC services can be challenging
Long-lived streaming connections can prevent traffic from being distributed to newly scaled instances, making traditional CPU-based autoscaling ineffective.
#6about 4 minutes
Tools for functional and performance testing of gRPC
Use tools like grpcurl for functional API testing with proto files and ghz for comprehensive performance and load testing of your gRPC services.
#7about 3 minutes
Case study: Separating unary and streaming calls
A practical example shows how separating unary and streaming gRPC calls into different Kubernetes services and target groups solves uneven load distribution.
#8about 1 minute
Key takeaways for effective gRPC load balancing
Successfully load balance gRPC by being mindful of long-lived sessions, understanding client traffic patterns, and selecting L7-based algorithms when possible.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
13:10 MIN
Exploring gRPC for high-performance communication
REST in Peace? What does the API protocol of the future look like? Or do we have it already?
32:22 MIN
Using a load balancer for multi-region deployments
Cloud Run- the rise of serverless and containerization
09:40 MIN
Why using GraphQL between services can be challenging
GraphQL Mesh – Why GraphQL between services is the worst idea and the best idea at the same time!
23:59 MIN
Live demo of automatic multi-cloud failover
Embracing the Hybrid Cloud: Unlocking Success with Open Source Technologies
00:14 MIN
Combining resource-oriented design with RPC in gRPC
Designing gRPC APIs - The things they don't tell you
03:41 MIN
Understanding traditional vs application networking on AWS
Demystifying application networking in the cloud
13:12 MIN
Building a load-balanced web app with CDK
Program your infrastructure with CDK and TypeScript
52:04 MIN
Q&A on GraalVM, Project Loom, and gRPC
Bootiful Spring Boot 3
Featured Partners
Related Videos
Designing gRPC APIs - The things they don't tell you
Bastian Eicher
The Great API Debate: REST, GraphQL, or gRPC?
Alexis Yushin
Fifty Shades of Kubernetes Autoscaling
Mario-Leander Reimer
A Deep Dive on How To Leverage the NVIDIA GB200 for Ultra-Fast Training and Inference on Kubernetes
Kevin Klues
REST in Peace? What does the API protocol of the future look like? Or do we have it already?
Simon Auer
Demystifying application networking in the cloud
Duan Lightfoot
Containers in the cloud - State of the Art in 2022
Federico Fregosi
In-depth .NET Azure Functions: Flex plan, Isolated mode and performance
Stanislav Lebedenko
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.
![Senior Software Engineer [TypeScript] (Prisma Postgres)](https://wearedevelopers.imgix.net/company/283ba9dbbab3649de02b9b49e6284fd9/cover/oKWz2s90Z218LE8pFthP.png?w=400&ar=3.55&fit=crop&crop=entropy&auto=compress,format)
Senior Software Engineer [TypeScript] (Prisma Postgres)
Prisma
Remote
Senior
Node.js
TypeScript
PostgreSQL

DevOps Engineer – Kubernetes & Cloud (m/w/d)
epostbox epb GmbH
Berlin, Germany
Intermediate
Senior
DevOps
Kubernetes
Cloud (AWS/Google/Azure)


SR Backend Python/GCP
Medium
Municipality of Madrid, Spain
API
Python
PostgreSQL
Kubernetes
Continuous Integration

DevSecOps Engineer (Kubernetes / GCP)
Rt Consulting
Tidworth, United Kingdom
£117-130K
Bash
Python
Gitlab
Ansible
+6

Golang & Kubernetes Software Engineer
K2 Partnering Solutions Ltd
Barcelona, Spain
Intermediate
Go
REST
Spark
Kafka
Kubernetes

Google Cloud Engineer (FinOps, Kubernetes)
adconova GmbH
Weiterstadt, Germany
Bash
Azure
Python
Docker
Terraform
+7

Senior Platform Engineer - Kubernetes & Hybrid Cloud
GULP Information Services GmbH
Wiesbaden, Germany
Senior
Azure
Linux
Ansible
Kubernetes
Amazon Web Services (AWS)
+1

Kubernetes Spezialist in Berlin
Grühn GmbH
Berlin, Germany
€60-85K
DevOps
Docker
Kubernetes
Configuration Management