{"id":247,"date":"2014-07-05T06:57:01","date_gmt":"2014-07-05T14:57:01","guid":{"rendered":"http:\/\/www.tech.dimprash.com\/?p=247"},"modified":"2014-07-05T07:15:15","modified_gmt":"2014-07-05T15:15:15","slug":"why-should-i-use-node-js","status":"publish","type":"post","link":"http:\/\/www.tech.dimprash.com\/?p=247","title":{"rendered":"Why should I use node.js?"},"content":{"rendered":"<p><a href=\"http:\/\/www.toptal.com\/nodejs\/why-the-hell-would-i-use-node-js\">http:\/\/www.toptal.com\/nodejs\/why-the-hell-would-i-use-node-js<\/a><\/p>\n<ul>\n<li> real-time websites with push capability <\/li>\n<li> unifies the language and data format (JSON) across the stack <\/li>\n<li> web applications with real-time, two-way connections, where both the client and server can initiate communication, allowing them to exchange data freely<\/li>\n<li> non-blocking, event-driven I\/O to remain lightweight and efficient in the face of data-intensive real-time applications that run across distributed devices.<\/li>\n<li>You definitely don\u2019t want to use Node.js for CPU-intensive operations<\/li>\n<li>Node.js operates on a single-thread, using non-blocking I\/O calls, allowing it to support support tens of thousands of concurrent connections <\/li>\n<li>Although Node.js really shines with real-time applications, it\u2019s quite a natural fit for exposing the data from object DBs (e.g. MongoDB). JSON stored data allow Node.js to function without the impedance mismatch and data conversion<\/li>\n<li> Typical examples include: the logging or writing of user-tracking data, processed in batches and not used until a later time; as well as operations that don\u2019t need to be reflected instantly (like updating a \u2018Likes\u2019 count on Facebook) where eventual consistency (so often used in NoSQL world) is acceptable.<\/li>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.toptal.com\/nodejs\/why-the-hell-would-i-use-node-js real-time websites with push capability unifies the language and data format (JSON) across the stack web applications with real-time, two-way connections, where both the client and server can initiate communication, allowing them to exchange data freely non-blocking, event-driven I\/O to remain lightweight and efficient in the face of data-intensive real-time applications that run across &hellip; <a href=\"http:\/\/www.tech.dimprash.com\/?p=247\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Why should I use node.js?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[],"class_list":["post-247","post","type-post","status-publish","format-standard","hentry","category-concepts","category-javascript"],"_links":{"self":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=247"}],"version-history":[{"count":4,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":251,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions\/251"}],"wp:attachment":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}