Using node.js to accept http requests and cache the data in node’s stack inside can replace the memory nosql database?

  node.js, question

For example, when 1k requests are reached, the data is stored in the relational database from node’s memory.
Data consistency is not required, and it is only necessary to store the data in the relational database.

Inside is stored in memory, I don’t know if there is any difference.

What are their advantages and disadvantages?

Node process has memory limit, between 1-2G, data is too large to be put in;
Nosql has its uses, such as memcached, which can be used as cache, and redis, which can use its more complex data structure.

In a word, storage is a matter of storage, and the program itself is a program. Don’t mix it up.