awslabs / ecs-refarch-service-discovery

An EC2 Container Service Reference Architecture for providing Service Discovery to containers using CloudWatch Events, Lambda and Route 53 private hosted zones.
Apache License 2.0
445 stars 81 forks source link

too many load balancers required? #8

Closed mindnuts closed 7 years ago

mindnuts commented 8 years ago

Hi...if i understood it correctly for this reference architecture, one would require one ELB infront of each microservice. Imagine if you have stack with around 20 microservices. You would end up with fixed costs of $216 x 20 = $4320 plus any data transfer charges for ELB alone!

Is this correct, if yes can the number of ELBs be somehow reduced?

mindnuts commented 7 years ago

@all If anyone is following this thread, there is another approach from AWS labs.

TLDR; You would need one ALB/ELB per internet facing microservice in this approach. Its still high but its something.

--M

GJaminon commented 7 years ago

Why not using Consul for Service Discovery ? No LB needed internaly.