Answer the question
In order to leave comments, you need to log in
Why is there such a difference between redis and nodejs storage RAM usage?
Today I made an experiment on the server side of an application written on a node.
In a running application, at startup, I cleared the database and inserted 500 tons of string unique records into REDIS with a length of 58-60 characters. As a result, + 1500 MB ate up the RAM compared to the usual launch of the application. Launched several times both with an insert and without.
In the same application, I simply created an object and added the same 500 properties to it using the same keys. through setInterval with a delay of 1 second, threw an arbitrary value to the console so that the garbage collector would not delete the object as unused. As a result, + 80 MB of RAM consumption.
Before the experiment, I assumed that the node consumes memory more carefully. But I did not think that the radish is so voracious. 3kb left for one record. Maybe I did something wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question