What are the benefits of using the default non-connection session store?

For express applications, I saw that there is a connection-mongodb and connect-redis for storing sessions, but I do not understand why this is necessary - what happened to the default session storage in memory? Is this for large scale applications that need to synchronize sessions on multiple machines?

Also, can anyone suggest any tests / hints for the fastest session repository? My guess is Redis because of its simpler key / value store.

+5
source share
1 answer

(MongoDB, Redis ..) , Node . , , , , .

, , 10 , . 1 , A . , , . , C, A . C , , . , , A?

- cookie , , . - Node, , , , . - cookie, . Node , . , Node , .

, ( ). Redis , MongoDB ( 4 , Redis). , -.

+12

All Articles