linux - Zero downtime deploy with node.js and mongodb? -



linux - Zero downtime deploy with node.js and mongodb? -

i'm looking after building global app ground can updated , scaled transparently user.

the architecture far easy, each part of application has own process , talk other trough sockets.

this way can spawn many instances want each part of application , distribute them across globe accordingly needs.

in front end of scheme i'll have load balancer, them route users closest instance, , when new code spawned instances spawn new processes new code , route new requests , gracefully shutdown.

thank much advice.

edit:

the question is: best ( , simplest ) solution achieving 0 downtime when deploying node multiple instances ?

about app:

https://github.com/raynos/boot "socket" connections, http http requests, mongo database

solutions i'm trying @ moment:

https://www.npmjs.org/package/thalassa ( managed haproxy configuration files , app instances ), if don't know it, watch talk: https://www.youtube.com/watch?v=k6qknt4hzwq , aware crowsnest beingness replaced https://github.com/pearsoneducation/thalassa-consul

deployment 0 downtime possible if info share between old , new nodes compatible.

so in case alter structure, have build intermediate release, can handle old , new info construction without utilizing new construction until have replaced nodes intermediate version. roll out new version.

taking nodes in , out of production can done loadbalancer (and grace time until sessions expired on nodes) (don't know plenty application).

linux node.js mongodb deployment

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

model view controller - MVC Rails Planning -