June 28, 2018
Node.js is still on track to take over the open source community. Big players from multiple enterprise-level organizations are either implementing it or considering this programming language for their next platform. LinkedIn, Mozilla, Netflix, the list goes on. They've all bet on Node due to its scalability, performance, and twice-yearly releases (including one annual long-term service release). But there are many more reasons why enterprises choose Node.js.
As a software house with Node.js in our tech stack, we have discussed Node's benefits dozens of times with our clients. And now I'm sharing those insights with you.
Its growing popularity, does not necessarily mean that everyone should consider going with Node for their application right now. After all, it shouldn’t matter how popular a technology is or whether one name seems more familiar than the other —what should matter is making educated decisions about your technology stack.
And in this post, we’ll be outlining how we make these sorts of decisions here at Monterail.
Although Ruby on Rails is our mother tongue, it doesn’t mean we can’t speak other programming languages as well. But what did actually bring us closer to Node.js?
For the last couple of years, we stuck by RoR for a number of reasons:
Rails is obviously not going to fade away. It’s a stable, mature technology that has a lot to offer to businesses. But it’s still just a tool that needs skilled craftsmen. Combining even an imperfect tool with perfectly skilled programmers will make a great application. After all, your users won’t care what’s under the hood, only if their application is useful and intuitive and loads fast.
Most popular languages on GitHub by open pull request
Node.js From a Developer’s Perspective
Node.js has been there for a while, but began gaining real traction only in 2011 when LinkedIn launched its mobile app. Right now, Node.js is the most popular kid on the block—98% of Fortune 500 companies use Node.js in their applications regularly. It also wins as most loved framework (73.4% of developers love Node) and it’s the second most-demanded coding skill by employers right now.
As a technology company, it’s paramount we stay up to date with all tech news and trends. We seem to be nearing peak demand for Node, so it was high time for us to find out what all the fuss was about. Additionally, more and more clients were approaching us asking about Node, but we decided that we would ultimately add it to our tech stack only after getting approval from our programmers.
After some research and feedback from the team, we recognized that Node.js could be a viable alternative for our backend development:
Hence, stemming from real business needs, the decision to incorporate Node.js into our backend stack was not exactly a game changer, but rather a natural next step in our growth.
We’ve already worked on a few Node.js-based projects, including Guild—a private messaging app for professionals, and multiple apps for one of our enterprise-level client. Detailed case studies with know-how and lessons learned are on the way, so stay tuned.
Although Node.js has many valuable virtues and works well for these clients—it might not be the best choice for every project. Node.js should be considered for any real-time applications intended to run on various devices. If your product requires fast prototyping or performs CPU-intensive tasks (like generating graphics) there are other technologies, including Rails, that will do a better job. By choosing Node for heavy computation tasks, you will actually lose most of the advantages it offers. Use it in scalable, fast network apps with many users, however, and Node will shine.
Where does Node.js fall short? In terms of out-of-the-box solutions. Contrary to RoR, many things need to be done from scratch, which in turn increases the project’s overall duration. On the other hand, however, if you’re next app is meant to have a long lifespan, the time and costs invested in the beginning offer considerable returns in the long run—you gain a number of tools that will streamline the addition of features in the future. Doing this with out-of-the-box solutions might be more troublesome. Therefore, Node.js is perfect for custom-tailored, fast and scalable software.
All in all, it’s not bad news.
When and why should you consider Rails in building your next project? Rails is mostly recommended for small projects, MVPs, and product validation, but it doesn’t necessarily mean you have to follow that pattern. You might opt for what Twitter did: launch on Rails and move to a new platform once you start making money and need to scale. You can also stick to Rails like Airbnb did and do just fine.
At the end of the day, it is not about the tool, but about who uses it, and why.
Is Node.js the pick for your next app?