我使用的是 Node 的 Express w/Connect 中间件。 Connect 的内存会话存储不适合生产:
Warning: connection.session() MemoryStore is not designed for a production environment, as it will leak memory, and obviously only work within a single process.
对于更大的部署,mongo 或 redis 是有意义的。
但是,对于生产中的单主机应用程序,什么是好的解决方案呢?