Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add storage backend to chat server #7

Open
banool opened this issue Dec 20, 2022 · 0 comments
Open

Add storage backend to chat server #7

banool opened this issue Dec 20, 2022 · 0 comments
Labels
p0 High priority

Comments

@banool
Copy link
Contributor

banool commented Dec 20, 2022

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:

  • Encrypted messages at rest.
  • The possibility of using the Signal protocol or something like it.
  • Having multiple chat server instances.
  • Sharding storage.
  • etc.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p0 High priority
Projects
None yet
Development

No branches or pull requests

1 participant