aptos-labs / hong-bao

Into 2023 Hackathon: Hong Bao
https://aptos-labs.github.io/hong-bao/
9 stars 3 forks source link

Add storage backend to chat server #7

Open banool opened 1 year ago

banool commented 1 year ago

Currently messages are lost if the server restarts since it's all just in memory. Add some kind of storage backend. Most reliable would be some kind of write-through cache, though you could also just have some kind of periodic flushing to storage.

The solution here needs to take into account:

All of these can come later though and should comprise their own issues.