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.

profile picture
EXPERT
answered 10 months ago
profile picture
EXPERT
reviewed 10 months 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.

Guidelines for Answering Questions