0
I have a system running on aws Beanstalk, is a Java application with architecture Tomcat + Spring. I’m finding it difficult to make the websocket work, that locally is functional. The websocket receiver meets at the url dominio/socket
, and the client connection is done in javascript as follows:
new WebSocket("wss://dominio/socket");
In aws the app runs on Elastic Beanstalk, with a application load balancer.I tried several ways to make it work, however I have the following feedback:
Some information about current environment:
- Doors 80, 8080 and 443 are open in the load;
- I created a target groups, enabled Stickiness and associated to load Alancer on path
/socket
http and https protocols; - https is configured with certificate generated by aws;
- Load balancer manages 2 instances.
I’m running out of alternatives, I’ve done a lot of research and tried to replicate some ideas, however unsuccessful so far. I don’t know if the fact that there is a load balancer with two instances invalidates the current architecture.
I ask for some suggestion for the question and/or sharing of using websocket in aws with similiar artquitetura.
Thank you.