Problem with connecting frontend and backend services through internal load balancer

0 votes

I'm new to deploying web applications on AWS, but my co-workers are unable to solve the problem so if anyone can help with our problem, it'd be great.

Frontend and backend service seem to be working fine separately on its own, but when I try to communicate between frontend and backend I keep getting ERR_NAME_NOT_RESOLVED error.

  • Service discovery are all connected
  • All security groups are open

my AWS architecture

It only works if we change the internal load balancer to public load balancer allow internet traffic and allow 0.0.0.0/0.

  • Status of health check are all 'healthy'
Feb 16, 2023 in AWS by Ashwini
• 5,430 points
858 views

1 answer to this question.

0 votes

It sounds like the communication between the frontend and backend services is being blocked by the internal load balancer. Here are a few things you can check to troubleshoot the issue:

  1. Check the DNS settings: The ERR_NAME_NOT_RESOLVED error could indicate that the frontend service is unable to resolve the DNS name of the backend service. Make sure that the DNS settings are correct and that the frontend service is configured to use the DNS name of the backend service.

  2. Check the security group rules: Even though you mentioned that the security groups are open, double-check to make sure that the security group rules are configured to allow traffic between the frontend and backend services. You should also make sure that the security group associated with the internal load balancer is allowing traffic from both the frontend and backend services.

  3. Check the routing configuration: Make sure that the routing configuration for the internal load balancer is set up correctly to route traffic between the frontend and backend services. Check that the target groups associated with the frontend and backend services are correctly associated with the load balancer.

  4. Check the logs: Check the logs of both the frontend and backend services to see if there are any error messages or other information that could help diagnose the issue.

  5. Test the communication between the services: Use tools like curl or telnet to test the communication between the frontend and backend services directly. This can help you isolate where the issue is occurring.

Hopefully, one of these suggestions will help you resolve the issue.

Propel Your Skills with Comprehensive Microservices Training!

answered Feb 17, 2023 by sarit
• 1,830 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,925 views
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,715 views
0 votes
1 answer

Delivering live streaming video with CloudFront and AWS Media Services

To connect your MediaPackage channel to CloudFront, ...READ MORE

answered Feb 17, 2023 in AWS by sarit
• 1,830 points
903 views
0 votes
1 answer

Extending auto-generated Amplify Datastore classes with factory constructors

it seems like the issue is that ...READ MORE

answered Feb 17, 2023 in AWS by sarit
• 1,830 points
767 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP