How can I set up Web Sockets on AWS and log incoming messages to s3 (elastic beanstalk project) mysql db

ⅰ亾dé卋堺 提交于 2019-12-11 17:38:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!