简体   繁体   English

Windows Azure中的node.js应用程序部署

[英]node.js application deployment in Windows Azure

I have built my application using node.js, mongodb, redis, express, socket.io and planning to deploy it in azure. 我使用node.js,mongodb,redis,express,socket.io构建了我的应用程序,并计划在azure中部署它。 I have seen that azure has a good support for node.js and it also supports mongo. 我已经看到azure对node.js有很好的支持,它也支持mongo。 But I am not very sure if it supports redis as well. 但我不太确定它是否也支持redis。 redis seems to be production ready in unix/linux, but not yet ready for windows, though it works there. redis似乎已经在unix / linux中准备就绪,但还没有为windows做好准备,尽管它可以在那里运行。

So can we take a linux VM in azure and install redis there ? 那么我们可以在azure中使用linux VM并在其中安装redis吗? is it possible ? 可能吗 ?

Can I take 1 VM for node, 1 for mongo and 1 for redis ? 我可以将1个VM用于节点,将1个用于mongo和1个用于redis吗?

If I have a clustered node, will there be any problem with socket.io ? 如果我有一个集群节点,socket.io会有任何问题吗? Is Nginx required ? 是否需要Nginx?

Please treat this as a first timer's question for deploying node.js application in Azure. 请将此作为在Azure中部署node.js应用程序的第一个计时器问题。

You can now install Linux VM on Azure and you can allocate VMs as much as you want. 现在,您可以在Azure上安装Linux VM,并且可以根据需要分配任意数量的VM。

But, Windows Azure also supports now Node.js as a Website. 但是,Windows Azure现在也支持Node.js作为网站。 Last, you can use mongo as a service like MongoLab and Redis as a service like Redislabs . 最后,您可以将mongo用作MongoLab之类的服务,并将Redis用作Redislabs之类的服务。

But, Socket.io is an issue, since Windows Azure LB supports only Round-Robin, which means you might need to set Nginx in front of the app. 但是,Socket.io是一个问题,因为Windows Azure LB仅支持Round-Robin,这意味着您可能需要在应用程序前面设置Nginx。

You cannot deploy Linux VMs into Windows Azure...yet. 您无法将Linux VM部署到Windows Azure中。 This may change with the next Azure SDK. 这可能会随着下一个Azure SDK而改变。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM