How to create AWS Network Load Balancer

Prashant Lakhera
3 min readNov 10, 2022

--

📖 To view the complete course https://www.101daysofdevops.com/courses/100-days-of-aws/

➡️ You can contact me via https://linktr.ee/prashant.lakhera

What is an AWS Network Load Balancer?

  • Its high performance and is a great option if you need to serve millions of requests per second.
  • Works at Layer4
  • Supports static IP per availability zone(You only need to whitelist single IP)
  • Ideal for applications with long-running connections.
  • Extremely low latencies
  • Preserves source IP as it’s a pass-through load balancer.
  • Uses flow hash of 5-tuple(Source IP, Destination IP, Protocol, Source Port, and Destination Port) and seq id as routing algorithm
  • Same API as Application Load Balancer
  • Load Balancer API Deletion protection

How to create Network Load Balancer

  • On the next page, click on Create Load Balancer
  • In the next screen, click on Network Load Balancer
  1. Give your Load balancer some meaningful name e.g., my-demo-nlb
  2. You need to select Scheme(it can be Internet-facing(An internet-facing load balancer routes requests from clients over the internet to targets. Requires a public subnet) or Internal(An internal load balancer routes requests from clients to targets using private IP addresses))
  3. IP address type(Can be IPv4 or Dualstack(Includes IPv4 and IPv6 addresses))

Static IP: Under Network Mapping, it Automatically gets assigned a single IP per Availability zone. If you don’t want this IP to be changed for the life of the load balancer, you can also pick your own EIP from your own EIP pool and assign it to NLB. Helps with whitelisting for firewalls.

  • Under Listeners and routing, define the port and protocol on which the load balancer must listen. Each Network Load Balancer needs at least one listener to accept traffic.
  • Click on the Target group. Target group defines the logical grouping of the targets.
  • Click on Include as pending below. Click on create target group.
  • Go back to the NLB console and select the newly created target group.
  • Click on Create load balancer at the bottom of the screen

--

--

Prashant Lakhera
Prashant Lakhera

Written by Prashant Lakhera

AWS Community Builder, Ex-Redhat, Author, Blogger, YouTuber, RHCA, RHCDS, RHCE, Docker Certified,4XAWS, CCNA, MCP, Certified Jenkins, Terraform Certified, 1XGCP

No responses yet