Best of Express.jsAugust 2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    How To Use Multithreading in Node.js

    Since JavaScript is single-threaded, it blocks the main thread and no other code executes until the task completes. To understand this, you will create a Node.js program with an infinite loop so that it doesn’t exit when run. Using nano or your preferred text editor, create and open the process.js file: nano process.

  2. 2
    Article
    Avatar of appsignalAppSignal·4y

    Build a CRUD App with Node.js and MongoDB

    MongoDB is an open-source, cross-platform, document-oriented database program. MongoDB’s horizontal, scale-out architecture can support huge volumes of both data and traffic. The application will connect to a MongoDB database and allow users to create, read, update, and delete blog posts. Make a services/BlogService.js file in your project root directory and add the code snippet below.

  3. 3
    Article
    Avatar of bitBits and Pieces·4y

    Send Real-Time Notifications with Socket.io and Node.js

    Express.js is a fast, minimalist framework that allows us to create real-time, bi-directional communication between clients and a Node.js server. This tutorial assumes that you have a basic knowledge of building web applications with Express and Node.io. In this section, you’ll learn how to send Setting up Express.JS on anode.js on a node.js.

  4. 4
    Article
    Avatar of communityCommunity Picks·4y

    How to Implement Redis as Cache in Node.js

    Redis is an open-source (BSD licensed) data structure store used as a database, cache, message broker, and streaming engine. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.

  5. 5
    Article
    Avatar of hashnodeHashnode·4y

    Learn how to build a microservice using Node.js and RabbitMQ.

    Learn how to build a microservice using Node.js and RabbitMQ. This tutorial will teach you about microservices and how to create a simple e-commerce microservice architecture with two services; product and order. In the following section, we will look at some of the prerequisites for this tutorial. Make another folder for the routes, call it routes, then inside it, have a file routes.

  6. 6
    Article
    Avatar of gcgitconnected·4y

    Microservices with Node.js, Kubernetes, and RabbitMQ

    Kubernetes (‘K8s’) is an open source system for automating and managing container orchestration that grew out of Google’s Borg, and is now maintained by the Cloud Native Computing Foundation. A microservice architecture means that your app is made up of many smaller, independent applications RABBITMQ_URL. The orders/index.js will be listening for an ‘ORDER’ message and as soon as it gets that message.

  7. 7
    Article
    Avatar of dzDZone·4y

    Hide Your API Keys With an API Proxy Server

    API key can be stolen and used by people that are not actually own this key. Open the OpenWeatherMap API website, make a free account, go to My API keys and create one. The main concept is to hide your public API keys behind an API Proxy Server in order to prevent users from overusing the API and crashing the server. The other one is to add a rate limiter.