I am trying out Firebase and have seen that one of the limits is the number of concurrent connections. In my use case, I don't actually need real-time anything- I just want to be able to use Firebase as a back-end data store. Like traditional web apps, I would ideally open a connection to Firebase, grab data, then disconnect from Firebase and free up connections for other users.
Various answers here in SO have given me the impression that Firebase makes it difficult to support this kind of usage. See:
- How exactly are concurrent users determined for a Firebase app?
- Disconnecting a firebase socket without refresh or closing the page
Two questions:
- Is the creation of a new Firebase reference via
var ref = new Firebase('<url>');
the beginning of a long-polling connection to Firebase? - Is there built-in support/API for creating a short-lived connection to Firebase then being able to disconnect after data retrieval, so that users who idle on the page without doing anything won't eat up my concurrent connection limit?