DevOpsLesson
DevOpsLesson

Free, comprehensive DevOps tutorials and learning roadmaps. Master Docker, Kubernetes, CI/CD, and more.

Stay Updated

Get notified about new tutorials and features.

Tutorials

  • What is DevOps?
  • Docker Tutorial
  • Terraform Tutorial
  • CI/CD Pipeline
  • All Tutorials

Roadmaps

  • DevOps Engineer
  • Cloud Engineer
  • SRE Path
  • All Roadmaps

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 DevOpsLesson. All rights reserved.

DOCKERKUBERNETESTERRAFORMAWSCI/CDLINUXGITDEVOPS ROADMAPCLOUD ROADMAPSRE ROADMAPGIT CHEATSHEETDOCKER CHEATSHEETK8S CHEATSHEETTF CHEATSHEETLINUX CHEATSHEETDOCKERFILE LINTERYAML VALIDATORCRON PARSERREGEX TESTER

Aws Tutorial

Introduction to AWS
AWS Global Infrastructure
Setting Up AWS
AWS IAM
AWS EC2
AWS VPC
AWS S3
AWS RDS
AWS Lambda
AWS ECS and EKS
AWS CloudWatch
AWS CodePipeline
AWS Cost Optimization
AWS Elastic Load Balancing
AWS Auto Scaling
AWS CloudFront
AWS Route 53
AWS DynamoDB
AWS ElastiCache
AWS SQS
AWS SNS
AWS EventBridge
AWS Step Functions
AWS API Gateway
AWS ECR
AWS EKS
AWS CloudFormation
AWS Elastic Beanstalk
AWS KMS
AWS Secrets Manager
AWS WAF and Shield
AWS CloudTrail
AWS Config
AWS Systems Manager
AWS Organizations
AWS EFS
AWS EBS Deep Dive
AWS Kinesis
AWS Athena
AWS CodeDeploy
AWS CodeCommit
AWS CDK
AWS SAM

AWS Network Load Balancer

PreviousPrev
Next

Learn when to use a Network Load Balancer for TCP or UDP traffic, static IP needs, and very low latency AWS services.

AWS Network Load Balancer handles traffic at layer 4 and is built for workloads that need high throughput, low latency, and stable endpoints. For DevOps teams, it matters because it is useful when clients speak TCP or UDP, when source IP preservation matters, or when you need static IP addresses for allow lists. Instead of relying on one fragile manual configuration, you can design a repeatable service boundary that stays stable while the workload behind it changes.

Core ideas

The main ideas to understand are NLB works with TCP, TLS, UDP, and TCP_UDP listeners instead of application-layer HTTP rules; each Availability Zone can expose static IP addresses that are easier to place behind firewall rules; TLS termination on the balancer can offload certificates while still keeping a fast network path; and you usually choose NLB over ALB when protocol performance and source IP preservation matter more than content-aware routing. These details shape architecture decisions, but they also shape day-to-day operations. When a team chooses defaults without understanding how the service behaves under failure, scale, or security review, the platform often becomes harder to debug than the application itself.

NeedBetter choiceReason
Host or path routingALBRequires layer 7 awareness
TCP or UDP performanceNLBOptimised for layer 4 traffic
Legacy web appsCLBOnly if you are tied to old designs

From an operations perspective, the goal is to align the listener protocol and target group protocol with the application so the balancer does not become a hidden bottleneck. The comparison below highlights the choices that usually matter first. It is often better to start with a simpler design and add sophistication only after metrics, incidents, or delivery requirements prove the change is necessary.

Practical commands

aws elbv2 describe-load-balancers --names my-nlb
aws elbv2 describe-listeners --load-balancer-arn arn:aws:elasticloadbalancing:REGION:ACCOUNT:loadbalancer/net/my-nlb/1234567890abcdef
aws elbv2 describe-target-health --target-group-arn arn:aws:elasticloadbalancing:REGION:ACCOUNT:targetgroup/tcp-tg/abcdef1234567890

Practical CLI checks make the service easier to support in real environments. Use the commands below to inspect the current state and confirm that automation matches intent. Before you promote a change, verify source connectivity, TLS listener settings, and whether target health checks succeed from every enabled zone. A safe default is cross-zone awareness and clearly documented port ownership so platform and application teams know who owns each endpoint. That discipline makes later troubleshooting, scaling, and security reviews far less painful.

Exercise

NLB protocols

Which traffic type is a primary fit for a Network Load Balancer?

Exercise

When to choose NLB

Which requirement most strongly points to using NLB instead of ALB?

PreviousPrev
Next

Continue Learning

AWS Cost Optimization

Learn practical AWS cost optimization techniques with Cost Explorer, Budgets, Trusted Advisor, Savings Plans, and workload right-sizing.

12 min·Intermediate

AWS Elastic Load Balancing

Learn how Elastic Load Balancing spreads traffic across healthy targets and how to choose ALB, NLB, or legacy CLB for AWS workloads.

18 min·Intermediate

AWS Application Load Balancer

Understand how an Application Load Balancer handles HTTP and HTTPS routing with listener rules for modern AWS applications.

12 min·Intermediate

Explore Related Topics

Te

Terraform Tutorials

Manage AWS infrastructure as code

Li

Linux Tutorials

Essential Linux skills for working with EC2

On This Page

Core ideasPractical commands