Persisting Safely
Looking at the current state of our application, Zettai, we have a final big hurdle to jump before we can start using it realistically. It still doesn’t persist the state, so every time the application starts, it will have no users and no list. This is clearly not a viable proposition for launching a new service!
Before jumping to possible solutions, let’s further examine what exactly is the issue. One problem we need to solve is to make sure that no state gets lost. So, regardless if the application restarts or crashes, we shouldn’t lose any data, and the application must be able to continue from where it was.
This would be quite easily solved locally, for example, storing information using the file system. Unfortunately, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access