getditto/demoapp-chat

24 hour eviction

okdistribute opened this issue · 0 comments

We recommend that customers evict data every 24 hours.

Problem

Today, the apps evict data when the user deletes or hides a room. This is not best practice

Solution

  • Create a process on a timer for eviction once per day. See Alaska Airlines application for an excellent example of this, which every 24 hours checks to see if there is anything worth evicting and then evicts that data from the local store.
  • When a room is removed or hidden, mark related documents in some way that indicates to the process that those documents should be evicted.