4 ms·
Speaking of back-end stuff, what is the backend of Hacker News? What are you using for persistence? Do you have any sort of model layer? Any recommendations/
by yawn 19y ago
Speaking of back-end stuff, what is the backend of Hacker News? What are you using for persistence? Do you have any sort of model layer? Any recommendations/anecdotes?
- mynameishere 19y agoSerialized hash tables.
- pg 19y agoBy backend stuff I meant code for administration and analysis, not server infrastructure. For persistence we use hash tables written to files as s-expressions, and lazily loaded after restarts.
- wlievens 19y agoHow do you make the whole thing transactional? I don't mean file persistence (you can do that every once in a while) but the whole application. Manual thread synchronization?
- jey 19y agoYou don't need thread synchronization if you don't have threads. ;-) Threads should be avoided whenever possible and only used when you have no better alternative or if there is a really good performance benefit. Multithreaded programming is easy to screw up and hard to get right, and is usually not needed.