Slow response from swarm service

### Expected behavior
I have a nextJS image that is running on a swarm service, I would like to get a fast response from it,
when I run ’ time cur -I 0.0.0.0:3000’ — > its take 10 seconds for 200

when I run the service on a freshly created micro ec2, request returns in a second.

### Additional Information
when I run the service on bridge network on all of my machines, service responds in a second.
on overlay 10 seconds.

Important to mention that I am creating my EC2 infra via Terraform.
Is there some EC2 configuration I am missing that will support a faster service response
from docker swarm?