Store chat messages in-memory
Use MongoDB to store chat messages