Conclusion
Alright! We have built a very basic persistence layer. We mentioned there were three issues with our in-memory solution:
no persistence
no data sharing between multiple servers
it is a single server
We have solved the first issue. We have built a simple key-value server that stores all of its data in a single file on disk. There are lots of edge cases we haven't dealt with, which are interesting exercises for you to think about:
This page is a preview of Reliable Webservers with Go