Cache implementation in Node.js

I know: there are several good modules in npm world but sometimes we don't have enough flexibility in terms of customizations. In my case I invested more time trying to tweak an existing module than develop my own

Http auth basic in Node js and Express

Let's build a small site in Node.js using Express that will have one protected page Http auth basic prompt dialog We are going to use express generator to generate some scaffolding. If you didn't install it just type this command to install it globally but if you already know all this stuff you might skip … Continue reading Http auth basic in Node js and Express

Node.js REST Frameworks Benchmarks – reloaded (09/08/2019)

The JavaScript and Node.js Blog

I just got the new MacBook Pro 2019 and damm, it is a crazy fast laptop. Thanks to ShareNow Tech for offering such a tools to employees…

A detailed performance review for the Macbook Pro can be found here:

Second thing after celebrating and setting the Node.js development environment up, was to measure the I/O performance of the following REST frameworks on their last stable version:

  • Vanilla Node.js
  • Koa
  • Express
  • Fastify
  • 0http (with uWebSockets.js)
  • Restana
  • Polka

NOTE: Network throughput is not the only factor that matter while selecting a backend framework, if you don’t care about low level performance optimisations, is just fine!

Out of the Box tests, single threaded “Hello World” HTTP services

In this tests the services are running using a single process, the Node.js cluster mode is not used for the HTTP Servers.

The tests sources can be found in the restana github repository:

View original post 389 more words

How Much Does Blogging Really Cost? — Jenny in Neverland

Self hosting, WordPress packages, domain namesThis is a big one for when you want to start taking your blog seriously or think about taking your blog to that next level. To turn your hobby blog into a business or an income then you’ll need to be thinking about at least getting your own domain name. And that’s the very least.I … Continue reading How Much Does Blogging Really Cost? — Jenny in Neverland

Better Queue in Node JS

Introduction A good practice in software development is to delegate as much heavy work as possible to background jobs to avoid blocking the main execution of your application that can be a web app, mobile app or desktop. Send email notifications it’s the typical scenario where you should execute it in background. More scenarios Image … Continue reading Better Queue in Node JS