Demystifying Threads is Node.js Often, we talk about how Node’s single-threaded nature makes Node applications easily scalable and resource-efficient. But it also makes Node an unsuitable choice for implementing CPU-intensive tasks . But as a workaround to this problem, in its v10.5.0 release, Node introduced the concept of worker threads. Worker threads provide a mechanism to spawn […]
Know the ins and outs of this basic JavaScript array function Javascript reducer is one of the most useful array methods that should be in a developer’s arsenal. Introduced in ES5, it’s somewhat similar to for…each and map methods that are used with arrays but improves on their performance and simplicity in specific situations. reduce […]
Know the ins and outs of this basic JavaScript array function As one of the basic control structures in programming, loops are almost an everyday addition to the code we write. The classic for loop is one of the first code snippets we learn to write as programmers. If you were a Javascript developer, you […]
Learn how to work with date and time on JavaScript In theory, handling dates as a developer is as simple as creating, storing, and, if necessary, manipulating dates. But as a Javascript developer, you would know this theory doesn’t hold long after you start working with dates for real. On top of different date-time formats, […]
Speed-up your NodeJS application by caching into Redis In recent years, Redis has become a common occurrence in a Node.js application stack. Though its most popular use case is caching, Redis has many other use cases where you can take advantage of its blazing-fast in-memory database. In this tutorial, we are going to give you […]
Learn how you can generate a PDF document from any web page using NodeJS, Puppeteer, and Chromium As a web developer, you may have wanted to generate a PDF file of a web page to share with your clients, use it in presentations, or add it as a new feature in your web app. No […]
Make your NodeJS Express API run serverless and deploy it to AWS Serverless architecture is an alternative to high-maintenance, resource-wasting servers. With serverless deployments, you only have to pay for precisely what you use. And it frees you from having to handle multiple server setups and their configurations. So, it’s no surprise that developers today […]
All projects should follow best practices to increase efficiency and quality Node.js is popular among developers as an asynchronous and event-driven language used for backend development. It has a syntax easy enough to understand even for beginners. Whether you are a beginner or a seasoned developer using Node, following the best practices of Node.js programming […]
- 1
- 2