On Jun 11, 2014, at 2:58 AM, Alan Tham <[email protected]> wrote:
>
> I am starting to build a website for customers to answer a lot of questions.
> This web site throws out the questions and when the user submits an answer,
> the website will check the answer from a database and return it to the
> customer.
>
> The website will keep track of the scores of the customers in the database.
>
> It is estimated to have a lot of customers from different countries. I heard
> about Node.js being non blocking and it is fast.
>
> Is Node.js suitable? I am coming from a Java foundation.
>
> Please advise. Feel free to ask me more questions if necessary.
>
Alan,
yes, NodeJS is suitable for this sort of application, but the answer gets more
ambiguous if you ask if it's the best option for you. Your application could be
served by Apache/Nginx+PHP/Perl/Python... I am not sure NodeJS offers something
for you that these others do not, though there is indeed the advantage you
mention of the thoroughgoing non-blocking nature of Node.
Personally, I think there are general advantages to NodeJS that make it
preferable to these alternatives for *most* [web] applications: a single client
and server side language, and that language being JavaScript, not some
heavy-handed OO beast, the Unix-like intuitive and lightweight nature of the
Node ecosystem, etc. Big complex languages and frameworks scare me, but not so
others.
I will caution though that some of the feeling of being lightweight is
deceptive, and you will find yourself stymied at times by the need to seek out
and cobble together primitives, the sparse documentation and some of the leaky
abstractions of the New Jersey approach (*). It's a learning experience.
Regards,
--ravi
(*) http://www.stanford.edu/class/cs240/readings/worse-is-better.html
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/680673EA-3041-4221-9214-D51A01577419%40g8o.net.
For more options, visit https://groups.google.com/d/optout.