In AWS, a target group is how Elastic Load Balancing knows which backends should receive forwarded traffic—for example Amazon EC2 instances, IP addresses, or (with an Application Load Balancer) AWS Lambda functions.
What problem does a target group solve?
A load balancer needs a named pool of backends, a protocol and port to reach them, and health checks so unhealthy hosts stop getting new requests. The target group is that pool; listener rules on an ALB (or NLB) choose which group receives each request.
When should you use a target group?
Anytime you create an ALB or Network Load Balancer that forwards to EC2, containers, IPs, or Lambda. Use multiple groups for blue/green capacity, microservices, or path-based routing behind one DNS name.
What you will configure
Target type, name, protocol and port, VPC, health check path and matcher, then registered targets. Optional attributes include stickiness, deregistration delay, and slow start.
How it connects to the rest of ELB
Client → load balancer listener → listener rules → target group → healthy targets. For a diagram-focused ALB walkthrough, see Target groups and ALB; for creating the balancer itself, see Create an ALB.
Balancer type matters.
Path- and host-based routing are ALB-specific. Static IP and extreme TCP throughput are common NLB reasons. Pick the load balancer first, then create matching target groups.
No public DNS on the group.
Clients use the load balancer DNS name (or a Route 53 alias). The target group is an internal routing construct only.
Deregistration delay.
When you deregister a target or it fails checks, existing connections can drain briefly. Tune that value so long-lived connections finish without surprising drops.
Reference
Core Concepts
Ideas that show up across ALB and NLB target groups:
Concept
Meaning
Target group
Named set of registered backends plus health checks and routing algorithm
Target type
Instances, IP addresses, or Lambda (ALB); container integrations via ECS/EKS
Health check
Periodic probe path, port, interval, thresholds, and success codes
Listener rule
On the load balancer; forwards (or redirects) to a target group
Round robin
Default ALB algorithm; least outstanding requests is an alternative
Stickiness
Optional cookie affinity so a client returns to the same target
Weighted forward
ALB can split traffic across groups (blue/green style cutovers)
Auto Scaling
ASG can register/deregister instances on the group automatically
Before you start
Prerequisites
Have these ready before you create a group in the console:
An AWS account with permission to manage Elastic Load Balancing and EC2 in your Region.
At least one runningEC2 instance (for the instance target type) in the VPC you will select, with your app listening on the planned port.
The group exists independently until a listener rule references it.
Unused often means no load balancer is attached yet.
Healthy means checks succeeded; only then trust production traffic.
DNS last: prove the ALB hostname, then map a domain with Route 53.
Edge Cases & Pitfalls
Most target group issues are health checks, security groups, or missing listener rules.
health
Targets stuck unhealthy
Wrong path, matcher, or port; or the instance security group blocks the load balancer.
unused
Status shows unused
No listener rule forwards to this group yet. Attach a default action or conditional rule on the ALB.
vpc
Cannot find instances to register
They are in a different VPC or Region than the target group.
type
Wrong target type for the workload
Lambda and IP targets have different limits than instances. Match type to how the app is deployed.
drain
Connections drop during deploy
Increase deregistration delay and drain before terminating instances in a rolling update.
mix
Expecting NLB features on an ALB group
Protocol and attribute options differ by load balancer type. Create the group for the balancer you actually use.
Remember
Key Takeaways
Target groups define where traffic goes and how AWS decides a backend is usable.
Health checks should reflect readiness—prefer a cheap /health over a heavy page.
Listeners reference groups; the group alone has no public hostname.
Next: attach the group to an ALB listener, then map DNS when the ALB hostname works.
One line: create group → health check → register targets → forward from a listener → verify healthy.
Frequently Asked Questions
A target group is a logical set of backends (such as EC2 instance IDs, IP addresses, or Lambda functions) registered with Elastic Load Balancing. An Application or Network Load Balancer forwards traffic to a group based on listener rules, using the group protocol, port, and health check settings.
The load balancer marks the target unhealthy and stops sending new connections to it until checks pass again. Existing connections may persist until they close or until deregistration and connection draining settings apply.
Yes. You register targets in different AZs within the same VPC. Application Load Balancers require subnets in at least two AZs, and spreading targets across zones improves fault tolerance.
No. Clients connect to the load balancer DNS name (or a Route 53 alias to it). The target group is an internal routing construct referenced by listener rules.
You can edit many health check settings in place. Tightening thresholds may briefly flip targets to unhealthy if the new criteria are harder to satisfy—plan changes during low traffic.
HTTP/2 is an application protocol version. HTTPS means HTTP over TLS. An ALB can terminate HTTPS on a listener while still forwarding HTTP/1.1 or HTTP/2 to targets, depending on your configuration.