Hi guys, I am looking on some alternatives on were to store apps users consumable actions. For example, number of tries of doing something in the app per day.
Should I go ahead an store everything in a db table ?
How will this affect the performance if the number of users rise ?
And last but not least, this has to reset at the end of the day.
[UPDATE] I found an easy way to handle this by storing the dynamic data in the cache ..can be redis.. with a TTL set to it. The max or min for the counter is stored in the DB.
This way you can store counters/values that are consumable by the user and have it reset without a background job.
Top comments (0)