dogehouse icon indicating copy to clipboard operation
dogehouse copied to clipboard

Kousa: Arch: Consider using Phoenix Tracker or Phoenix Presence instead of database

Open ityonemo opened this issue 3 years ago • 5 comments

For keeping track of user online state. This information doesn't really need to live in the database, and having frequent read/write events to the db on this content will eventually hammer your database and cause responsiveness issues.

You don't need to pull in Phoenix as a dependency to use Phoenix Tracker, it exists as standalone library. https://hexdocs.pm/phoenix_pubsub/Phoenix.Tracker.html#content

ityonemo avatar Feb 25 '21 00:02 ityonemo