【问题标题】:node.js application deployment in Windows Azure在 Windows Azure 中部署 node.js 应用程序
【发布时间】:2014-02-21 04:15:22
【问题描述】:

我已经使用 node.js、mongodb、redis、express、socket.io 构建了我的应用程序,并计划在 azure 中部署它。我已经看到 azure 对 node.js 有很好的支持,它也支持 mongo。但我不太确定它是否也支持redis。 redis 似乎在 unix/linux 中已准备好生产,但尚未为 windows 准备好,尽管它在那里工作。

那么我们可以在 azure 中使用 linux VM 并在那里安装 redis 吗?有可能吗?

我可以为 node 使用 1 个 VM,为 mongo 使用 1 个,为 redis 使用 1 个吗?

如果我有一个集群节点,socket.io 会有什么问题吗?需要 Nginx 吗?

请将此视为在 Azure 中部署 node.js 应用程序的初学者的问题。

【问题讨论】:

标签: node.js mongodb azure redis socket.io


【解决方案1】:

您现在可以在 Azure 上安装 Linux VM,并且可以根据需要分配 VM。

但是,Windows Azure 现在也支持将 Node.js 作为网站。 最后,您可以将 mongo 用作MongoLab 之类的服务,将 Redis 用作Redislabs 之类的服务。

但是,Socket.io 是个问题,因为Windows Azure LB 仅支持 Round-Robin,这意味着您可能需要在应用程序前面设置 Nginx。

【讨论】:

    【解决方案2】:

    您还不能将 Linux VM 部署到 Windows Azure...。这可能会随着下一个 Azure SDK 而改变。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-07
    • 2023-03-08
    • 1970-01-01
    • 2016-10-24
    • 1970-01-01
    • 2013-09-15
    • 1970-01-01
    相关资源
    最近更新 更多