Server side Firebase listeners with load balancing -
Server side Firebase listeners with load balancing -
if want utilize firebase on server side, in place of rest routes using express , node.js, how go dealing scaling , load balancing? example, if have express app uses firebase on server side, every single server spins contain these listeners , react them? there scale-able solution using firebase on server-side elastic load balancing in mind?
i think question broad in current form, give @ to the lowest degree few (equally broad) options.
there dozens of solutions possible, of them variations on these 2 broad scenarios: centralized vs decentralized.
you can utilize centralized authority, assigns each task 1 of worker nodes. load balancer does, might want search load balancing algorithms.
alternatively can have each node seek claim work. nodes should utilize transaction update "work queue", 1 node ends doing work.
related: https://github.com/firebase/firebase-work-queue
firebase load-balancing amazon-elb
Comments
Post a Comment