Runing Node JS Server In Background

nodejs pm2 systemd server

When you use Node JS to implement an HTTP / HTTPS web server, in general for development you’re using the basic node or nodemon command to run the webserver. But if the terminal closes or the node process gets killed, the HTTP web server will stop also. This article will show a few options we can use in order to avoid such an issue and make the node HTTP web server run in background even if we close the terminal.

Delete All Data from Redis

redis redis-cli data

Some advantages of Redis being a NoSQL and in-memory system is that you can perform some tasks very easily compared with relational database systems.

Optimize memory usage of Redis instance

redis redis-cli memory

Sometimes Redis keys can increase the memory consumption for our Redis instances. Usually, we should prefer descriptive keys while using Redis, but if we have a very big dataset with millions of long keys then these keys will take a lot of money from our pocket.

Import Excel data into MySQL

mysql csv excel import data

Recently I had to import an Excel document into a MySQL database so I want to show you how I did this.

Find the table size in MySQL

mysql tables metadata information schema

MySQL provides useful metadata about your database itself. While most other databases refer to this information as a catalog, the (official MySQL documentation)[https://dev.mysql.com/doc/refman/8.0/en/information-schema.html] refers to the INFORMATION_SCHEMA metadata as tables.


subscribe via RSS