How to build a HackerNews Clone using Redis
developer.redis.com
developer.redis.com
Either would have the generic disadvantages of:
- Dataset can't exceed available memory
- The general disadvantages of NoSQL vs SQL around queries, transactions, etc, if you're expecting relational type functionality
From my understanding, they do support sharding
There are also managed solutions that implement Redis with partial flash storage. Redis Enterprise and AWS ElastiCache both do this.
From what I saw, people think two times before doing `truncate table` but not that much with `FLUSHALL` in redis...
Also, I don't really see where the usecase would be as a permanent datastore compared to something like postgres.
It is more about writing backends generally, but in it he uses Redis as a primary database and walks through durability and scalability.
- uBlock Origin
- Privacy Possum
- DuckDuckGo Privacy Essentials
- WebGL Fingerprint Defender
- Font Fingerprint Defender
- AudioContext Fingerprint Defender
- CSS Exfil Protection* MySQL for a datastore
* All rendering done server-side
* PHP for the language
* As little JavaScript as humanly possible, and only vanilla, no libraries or frameworks
* As few images as possible
An actual clone, no real value add. But it'd be fun to do, regardless.
It has bcrypt, HN's current CSS, and so on. We use it to manage our TPUs: http://www.tensorfork.com/tpus
Improvements welcome. The nicest part is how quickly you can iterate on a webpage. The production site pulls from github every 10 seconds, and everything reloads on demand, so I can just push new code to master and see the changes instantly.
(No need to push to github just to see changes locally, of course. Every time you reload, it checks whether any loaded files have changed.)
Also, long-term maintenance effort and costs would be substantially higher. (Redis persistent-to-disk options, namely AOF and RDB, are notoriously unreliable.) These issues would persist (ha) even with a clustered setup (actually, especially then.)
I'm just checking if there is something I missed.
Maybe, but still very cheap. Unless you are talking about insanely high priced cloud services.
Something like Hetzner would provide you with 128GB of ram for 60 euros / month or 1TB of ram for around 500 euros / month.
The pages are very light and the algorithms seem to be designed to be quite light, too.
Now, I know neither Arc nor the traffic stats, but I would not be surprised if one or two machines were able to serve entire traffic.
(update: I mixed up M5 hosting company with AWS M5 instance types)
I should make it open source...