4 ms·
> The v0 API is essentially a dump of our in-memory data structures. TIL that HN doesn't use a "proper" / persistent DB. I wonder then how HN handles data pers
by beltsazar 4y ago
> The v0 API is essentially a dump of our in-memory data structures.
TIL that HN doesn't use a "proper" / persistent DB. I wonder then how HN handles data persistence. Is it as simple as creating write-ahead logs + checkpointing every some duration?
- orf 4y agoSure they do, what they are saying is that the data format is just the raw format they use in memory after loading it from a database.
- krapp 4y agoNo they don’t. This forum was created as a MVP of a webapp using PG’s Arc Lisp. All user and comment data are stored as tables serialized to text files or in memory. You can find an old version of the code at http://arclanguage.org http://arclanguage.org
- orf 4y agoSo they do use a database? In the form of text files. The comment I was responding to was edited, and before it was asking if they stored everything in memory and how they handled reboots.