Skip to content

Postgres on ECS Behind an ALB

1

I want to create an postgres instance on ecs for test purpose. Could I access the postgres by ALB.

1 Answer
1
Accepted Answer

Hi,

No, unfortunately not, since PostgreSQL uses a message-based protocol for communication supported over TCP/IP protocol, and the ALB it is a Layer 7 load balancer type, and that means that it only supports communication HTTP, HTTPS and gRPC protocols.

Thus, an NLB would be a most appropriate option, as it is a Layer 4 load balancer type, and supports TCP, UDP and TLS protocols.

EXPERT
answered 3 years ago
EXPERT
reviewed 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.