I currently have an ALB that forwards all http/s requests to a target group. Inside the target group I have 3 EC2 instances each running the same NodeJS application.
If I want to break up my application into microservices with a "gateway service" that handles authorization of all incoming client requests and performs routing to the other microservices, how can I achieve this using ALB?
My initial thought is to implement the following:
Internet -> ALB -> Target group with gateway microservices (auth happens here) -> ALB -> Target group with other microservices
Is this kind of architecture possible / recommended?