Software Alternatives & Reviews

7 Ways to Improve Node.js Performance at Scale

Redis memcached axios Amazon CloudFront
  1. 1
    Redis is an open source in-memory data structure project implementing a distributed, in-memory key-value database with optional durability.
    Pricing:
    • Open Source
    A relatively straightforward way to implement caching in a Node.js application is through an in-process caching solution such as node-cache. It involves placing actively used data in memory, where it can be retrieved more quickly. The major problem with an in-process cache is that it's tied to an application process, so it's rarely suitable for distributed workflows (especially when caching mutable objects). In such settings, you may use a distributed caching solution such as Redis or Memcached. These run independently of an application and are more practical when scaling the application onto multiple servers.

    #Key-Value Database #NoSQL Databases #Databases 183 social mentions

  2. High-performance, distributed memory object caching system
    Pricing:
    • Open Source
    A relatively straightforward way to implement caching in a Node.js application is through an in-process caching solution such as node-cache. It involves placing actively used data in memory, where it can be retrieved more quickly. The major problem with an in-process cache is that it's tied to an application process, so it's rarely suitable for distributed workflows (especially when caching mutable objects). In such settings, you may use a distributed caching solution such as Redis or Memcached. These run independently of an application and are more practical when scaling the application onto multiple servers.

    #Key-Value Database #Databases #NoSQL Databases 28 social mentions

  3. 3
    Promise based HTTP client for the browser and node.js - axios/axios
    A timeout is the maximum wait time set on a request. It represents how long a client is prepared to wait for a response from an external service. If the response is not received within the specified limits, the connection will abort so that the application does not hang indefinitely. Many popular libraries for making HTTP requests in Node.js (such as axios) do not set a default timeout, meaning that any remote API can keep your application waiting for the requested resource indefinitely. You should set a request timeout to prevent this from happening:.

    #Javascript UI Libraries #JS Library #Developer Tools 109 social mentions

  4. Amazon CloudFront is a content delivery web service.
    Another option to serve static files is to set up a CDN proxy like Amazon CloudFront to cache your static content and serve it as close as possible to end-users. This frees up the Node.js servers to handle dynamic requests only.

    #CDN #Cloud Computing #Content Distribution 67 social mentions

Discuss: 7 Ways to Improve Node.js Performance at Scale

Log in or Post with