问题
I have an existing LAMP project on AWS (Elastic-beanstalk). I now what to set up web sockets on AWS too. According to AWS documentation, the way to do that is via AWS API Gateway. I don't know how this all works but there's documentation I found for setting up WebSockets.
Does the Gateway API connect to another service? If so, what service is this? What am I missing?
I mostly just want to make a Web Socket service to look incoming messages to the MySQL database on my Elastic-beanstalk project. I am totally confused about how to do this. Can anyone advise me about what steps I need to take?
回答1:
Just because api gateway supports web sockets, doesn't mean you need to use it. ALBs do as well and are a more exact fit for elastic beanstalk.
Does an Application Load Balancer support WebSockets?
回答2:
I have posted a new question here: Setting up Ratchet on AWS
I don't think that Gateway API or the load balancer alone will get me up and going to Web Sockets. I think that I need to install a Ratchet server in my application to do this. I am pursuing both of these questions as possible solutions. If/when I get my Web Sockets going, I will answer/ close both question.
来源:https://stackoverflow.com/questions/58896529/how-can-i-set-up-web-sockets-on-aws-and-log-incoming-messages-to-s3-elastic-bea