.template-image-preloader img{opacity: 1;}

[ NodeXperts Meteor AMA ] — Live Video Platform, Real Time Questions, Crowdfunding

DWQA QuestionsCategory: Questions[ NodeXperts Meteor AMA ] — Live Video Platform, Real Time Questions, Crowdfunding
admin Staff asked 1 year ago

1. What do you think is the best framework for this project and why?

 

For real time communication between client and server, I would prefer to nodes language, there are various framework built top of the nodejs like MEAN.js, meteor, sails.js. I would like to choose Meteor as framework for this app, Meteor has a feature for pushing data between client and server called DDP, which is built on top of WebSockets.Meteor is a open source platform for building real-time web apps in minimum time. It has a very different philosophy compared to traditional frameworks like Ruby On Rails, Zend , JavaScript frameworks like AngularJS, BackboneJS, etc.

Nodejs itself support event-driven, non-blocking I/O mode. Handling all incoming requests in a single process(Event Loop) at server side makes nodejs a best candidates for real time apps.
2. How would you go about coding the real-time question and voting component. Just give me some brief steps, don’t need to write too much
Step 1. Set up the meteor basic architecture
Step 2. Render a list of question to the client side from server. if we use meteor then user can subscribe/publish the question list and voting collections.
Step 3: Determine how many user(client end) simultaneously connected to the server.
Step 4: Broadcasting updated set of question and votes to client end in real time using web sockets. (client may be vary based on the number of open connections)
Step 5: If a specific user up votes any specific question then others currently connected users will be able to see the changes in voting count without any browser refresh and ajax request operation.
  • Facebook
  • Twitter
  • LinkedIn
Our Partners