The solution is,
Meteor is a framework that elegantly updates HTML in real time. Meteor is need to create the templates and the data models. The rest of the usual boilerplate code is hidden away.
The key pieces of Meteor could be built yourself using these pieces:
- It offers templating that updates automatically when data models do. This is normally done using Backbone.js, Ember.js, Knockout.js.
- The client/server messaging is done via web sockets using something like socks.js or socket.io.
- The client side connection to MongoDB is really cool. It replicates the MongoDB-server driver into the client. Since it was checked, it is still working on securing this database connection.
- The latency period is simply updating the client-side model first, then sending the update to the server-server.
The following methods to use,
- The update from the server comes faster, because the connection is persistent. The connection is established by client, as in AJAX, but the server does not respond until it has some update.
- Meteor is an implementation of Comet. Comet in turn is a counterpart of AJAX.In case of AJAX, to make a request when the client displays necessary to do that. To pull updates from the server, it will needs to call the server eg. every 5 seconds.
- To get constant stream of data that needs some specific server-side code like Meteor Server and appropriate code on the client in this case it looks like it is Meteor class.