Socket.io云托管服务推荐 [英] Recommendations for Cloud Hosting Service for Socket.io

查看:21
本文介绍了Socket.io云托管服务推荐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在评估不同的云服务提供商,以确定哪个最适合将 NodeJS 后端与快速的 Socket.IO 实现一起使用.虽然我知道这真的取决于他们服务器的物理位置,但我希望东南亚有一个.

I'm currently evaluating the different cloud service providers to determine which is best for the use of NodeJS backend with Socket.IO implementation that is speedy. While i know that is really dependent on the physical location of their servers, i hope there is one in south-east asia.

我已经部署了以下内容:

I've already deployed on the following:

  • 亚马逊 EC2
  • Heroku
  • Appfog(似乎对它不起作用)

还有什么好的推荐吗?如果他们有一个像 AWS 工作方式一样的免费套餐就好了.

Any other good ones to recommend? Would be good if they have a free tier much like how AWS works.

期待您的意见!

推荐答案

注意此时 Heroku 不支持网络套接字,因此任何对 socket.io 的使用都必须降级为长轮询方法.

Note that at this time Heroku does not support web sockets, so any use of socket.io will have to degrade to a long-polling approach.

考虑到您使用 Socket.io,我建议您使用 Amazon EC2.过去许多其他托管选项的主要优点是它们易于部署和管理所有资源(想想 Heroku).亚马逊最近推出了 OpsWorks,您可以使用它来为您处理大部分工作.如果您没有任何复杂的自定义需求,那么基本的 Node 设置应该适合您.

With your use of Socket.io in mind, I would recommend using Amazon EC2. The main advantage of many other hosting options in the past has been their easy of deployment and management of all your resources (think Heroku). Amazon has recently launched OpsWorks, which you can use to take care of most of that for you. If you don't have any complex, custom requirements then the basic Node set up should work for you.

请记住,如果您使用的是 OpsWorks,则需要牢记一些小事.在这个问题中讨论了其中一些.是否有人成功部署了节点(express) 应用程序与 Amazon OpsWorks?

Keep in mind that if you are using OpsWorks there are a few small things to keep in mind. Some of them are discussed in this question. Has anyone been successful deploying a node (express) app with Amazon OpsWorks?

这篇关于Socket.io云托管服务推荐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆