How to scale backend Firebase service

408
January 22, 2017, at 2:36 PM

I am building an application with a decent amount of Firebase service code running in the backend. It is possible that this App will end up reaching thousands and possibly hundreds of thousands of users. Should the code running in the backend be prepared to scale horizontally?

My idea is to run my Firebase service in NodeJS and prepare it to scale using Elastic Beanstalk.

Is this necessary?

Will there be conflicts in database listeners

If I have database listeners of the form...

someRef.on('child_added', function(snapshot) {
    archieveReference.push({
        value: snapshot.val(),
        timestamp: Date.now()
    }).then(function() {
        return snapshot.ref.remove();
    });
});

And my elastic beanstalk scales, will this listener get triggered multiple times and I will run into errors?

Rent Charter Buses Company
READ ALSO
Rails server command JavaScript runtime error

Rails server command JavaScript runtime error

I just started learning Ruby on rails and everything works fine until when I run the server also I reinstalled Nodejs and no locki'm on windows 10

588
Layout is called with express-partials even when layout:false

Layout is called with express-partials even when layout:false

In my layoutejs, I use the variable user as follows:

315
Meteor Deploy Error

Meteor Deploy Error

Hi there I am trying to deploy my meteor app, I am using meteor upMeteor setup works fine

493
Why is a second then returned before the first? [duplicate]

Why is a second then returned before the first? [duplicate]

This question already has an answer here:

394