I am trying to implement authentication and session management in a node.js application using socket.io.
And from almost all the resources found, I came across the term "session repository."
There are open source tools that handle sessions for us, but we need to provide them with session storage.
Some tools have built-in storage for in-memory sessions, for example, the express-session module comes with a default session storage in memory, but this is also a warning:
Warning By default, the server-side session repository MemoryStore is not specifically designed for the production environment. This will be a memory leak under most conditions, does not scale in one process and is intended for debugging and development.
So, I searched for available stable session repositories, and it turned out that most of the names are the databases I have heard about.
For example, here is a list of session stores and another one on GitHub that I came across.
Names include MongoDB, MySQL, SQLite, cassandra, firebase, etc., so there is confusion.
So the question is, are the session stores and the database the same ..? (I can think of it - when we use a database to store session information, we call it a session store, but it's actually a database)
, .?