Should I store data in local storage & database?

Say I have a multi platform app (mobile & web) that allows users to favorite items and view them on either platform. Does it make sense to store the favorite items in both the local storage as well as in a DB? That way, if say the user were to view the app on mobile, the favorites would be pulled from local storage as opposed to the DB, as long as the data is more recent ? Otherwise, if the favorites in the database are more recent, it would pull from the database?

submitted by /u/ohcode
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/MLiFOem

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close