|
Voiced by Amazon Polly |
Introduction
Many teams previously built private APIs on AWS using an internal NLB in front of an internal ALB so Amazon API Gateway or other Amazon VPCs could connect through Private Link or Amazon VPC Link. This was necessary when these services supported only NLBs, but it added extra hops, configuration overhead, and cost. With the latest VPC Link enhancements, you can now connect directly to ALBs, eliminating the NLB layer and simplifying your architecture.
This blog walks through what changed, why this matters, and how to think about the migration from “NLB attached to ALB” to “VPC Link endpoint directly to ALB.”
Pioneers in Cloud Consulting & Migration Services
- Reduced infrastructural costs
- Accelerated application deployment
What is the old NLB + ALB pattern?
In the traditional setup, Amazon API Gateway REST APIs or other producer VPCs connect privately to your services via an interface endpoint or Amazon VPC Link that targets an internal NLB.
This pattern existed mainly because:
- Private integrations for REST APIs and Private Link endpoint services historically required NLBs as the integration target, not ALBs.
- ALB provides rich Layer 7 routing, so combining both allows for Private Link connectivity plus Advanced HTTP routing behind it.
The trade-off was a more complex and layered data path: Amazon API Gateway → Amazon VPC Link/Private Link → NLB → ALB → targets.
What is an Amazon VPC Link endpoint to ALB?
Amazon VPC Link is a managed networking construct that lets Amazon API Gateway send traffic directly into your Amazon VPC over private connectivity. Recent enhancements allow a single Amazon VPC Link (especially VPC Link v2 for REST and the standard VPC Link for HTTP APIs) to integrate directly with multiple ALBs or NLBs in your Amazon VPC instead of being tied to a single NLB.
In this new model:
– Amazon API Gateway connects to an Amazon VPC Link that terminates inside your Amazon VPC.
– That Amazon VPC Link can target one or more internal ALBs, without requiring an NLB layer in front.
This effectively turns the ALB into the first load balancer seen after the API Gateway, reducing hops and taking full advantage of ALB’s Layer‑7 feature.
Why do we need this change?
Replacing an NLB attached to an ALB with a VPC Link endpoint that directly addresses the ALB eliminates several pain points.
Key reasons:
- Simplified architecture: Removing the NLB hop reduces configuration complexity (listeners, target groups, health checks) and lowers the number of components required for operation.
- Cost and latency: Fewer load balancers result in lower costs and a slightly shorter code path, which can reduce latency for each request.
- Better use of ALB capabilities: Direct integration with ALB makes it easier to utilize host/path-based routing, HTTP headers, and features such as authentication at the ALB layer.
- Improved scalability: A single VPC Link v2 can now integrate with multiple ALBs or NLBs, supporting more microservices without complex NLB listener workarounds.
For teams running many microservices behind multiple ALBs, this change can significantly simplify private API integration patterns with Amazon API Gateway.
How the new architecture looks?
Conceptually, the diagram changes from:
– Old: Amazon API Gateway → Amazon VPC Link (or Private Link) → NLB → ALB → targets.
– New: Amazon API Gateway → Amazon VPC Link → ALB → targets.
In the new pattern:
- Amazon API Gateway (HTTP APIs or REST APIs with VPC Link v2) utilizes a single Amazon VPC Link that resides in your VPC subnets and is associated with security groups, providing fine-grained access control.
- The Amazon VPC Link is configured with one or more ALBs as integration endpoints, and the ALBs themselves handle routing to services based on host, path, or other HTTP
You still get the ALB’s mature routing and observability features, but you avoid having two separate load balancers in the call path for each request.
Migration approach (high level)
Every environment is different, but at a high level, a typical migration from NLB + ALB to Amazon VPC Link → ALB looks like this:
1) Plan and map traffic
- Identify which APIs or consumers currently depend on the NLB in front of the ALB and which are coming specifically via Amazon API Gateway.
- Decide which integrations can be migrated to a direct VPC Link → ALB and which still require NLB + Private Link (for example, cross-account VPC endpoint service consumers).
2) Introduce the VPC Link and new integrations
- Create a new VPC Link in appropriate subnets and attach security groups that permit traffic to your internal ALB.
- Configure Amazon API Gateway routes or methods to use the VPC Link integration that points directly to the ALB, including correct hostnames and paths.
3) Gradual traffic shifting
- Use staged deployments in API Gateway or routing changes to shift a portion of traffic to the new VPC Link → ALB path while monitoring metrics and logs.
- Once stable, increase the traffic percentage until all API Gateway calls are using the new integration.
4) Decommission the old NLB path
- After confirming there are no remaining dependencies on the NLB (for API Gateway traffic), remove the NLB from that specific path.
- Keep NLBs where they still serve specific needs, such as AWS Private Link endpoint services for partner VPCs or TCP-only workloads.
This phased approach reduces risk and provides roll-back options throughout the migrations.
Conclusion
Adopting VPC Link endpoints streamlines private integrations, reducing complexity and simplifying operations without compromising security or performance.
Drop a query if you have any questions regarding ALB and we will get back to you quickly.
Empowering organizations to become ‘data driven’ enterprises with our Cloud experts.
- Reduced infrastructure costs
- Timely data-driven decisions
About CloudThat
CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.
FAQs
1. Do I still need NLBs anywhere?
ANS: – Yes, NLBs remain important in several scenarios. You still need NLBs when:
- Exposing services over AWS Private Link as an endpoint service to many external or cross‑account consumers.
- Handling pure TCP/UDP traffic or protocols that don’t need Layer‑7 HTTP features.
- Requiring static IP addresses directly on the load balancer.
2. Will this impact latency or performance?
ANS: – In most cases, removing a redundant load balancer layer reduces end-to-end latency slightly because one fewer hop is involved in processing each request. Performance and scalability should remain strong because ALBs are designed to handle large volumes of HTTP/HTTPS traffic across multiple Availability Zones.
3. Can one VPC Link connect to multiple ALBs?
ANS: – Yes, newer Amazon VPC Link capabilities (for HTTP APIs and REST APIs with VPC Link v2) allow a single VPC Link to target multiple ALBs or NLBs in the same Amazon VPC. This is particularly useful for microservice architectures where different paths or routes in Amazon API Gateway correspond to different ALBs or services behind them.
WRITTEN BY subhashree
Subhashree is a Cloud Support Engineer at CloudThat with expertise in AWS, where she manages and optimizes cloud infrastructure to ensure security, scalability, and efficiency. She holds 4x AWS and Azure certifications. Driven by curiosity and a passion for continuous learning, she actively explores new technologies to deepen her knowledge of cloud computing. She thrives on solving complex challenges and is dedicated to deliver reliable solutions while growing her skills in the ever-evolving world of cloud technology.
Login

December 8, 2025
PREV
Comments