Ask HN: How to implement caching for dynamic user data in sites like HN, Reddit?
What are you storing the data in currently? If relational, I'd advise starting with simple relational tables (post_comments, user_comment_likes, etc). Render the HTML for logged in users based on querying that, and see how far you can get.
The source code for historical versions of both reddit and HN is available, so you could check that to see what they do. But caching probably won't be necessary for a long time.
相關推薦
Ask HN: How to implement caching for dynamic user data in sites like HN, Reddit?
Why would you start by caching it?What are you storing the data in currently? If relational, I'd advise starting with simple relational tables (post_commen
Ask HN: How to choose projects for undergraduate courses
I often face a difficult time choosing a project for my undergraduate courses. Sometimes I go through Google Scholar or ACM Digitial Library for latest wor
How to Better Understand Your Machine Learning Data in Weka
Tweet Share Share Google Plus It is important to take your time to learn about your data when st
How to Load and Explore Time Series Data in Python
Tweet Share Share Google Plus The Pandas library in Python provides excellent, built-in support
Ask HN: How to build beautiful SVG graphics for websites?
I am really curious if anyone knows about courses / tutorials or other material I could use to learn how to do graphics such as the ones at:a) www.stripe.c
Ask HN: How to register for Apple Developer Account without using personal name?
I would like to register for an Apple Developer Account without using my personal name, I understand that you can register as a Company and have that compa
Ask HN: How to check the market for your saas product?
I have just finished a small tool that I would like to offer as saas. It is a very simple API that users can use from their terminal through curl/wget.Stil
Ask HN: How to manage data for local microservice dev envs?
Microservice development accommodates several kinds of dev env setups. For cross-service integration testing during development (rather than test automatio
Ask HN: How to commit comments to different repo?
Does anyone know of a way, via software or some other means, to be able to leave yourself comments that can be saved without getting overwritten by pulling
Ask HN: How to take advantage of living in the Bay?
Before moving to the Bay, I had hoped that the Bay to America would be like America to the rest of the world.I grew up in a developing country with an auth
Ask HN: How to give cryptocurrency to people in need
My name is Joe Waltman and I a recently started working with GiveCrypto.org, a non-profit that was started by Brian Armstrong. I somewhat stumbled into thi
Ask HN: How to start a startup that requires a high amount of initial capital?
I want to start a payments bank in India but it requires a 13M+ USD initial capital just to get the licensing fee.Wondering if people have any examples of
Ask HN: How to decide between 2 startup ideas?
Let's say you are interested in 2 startup ideas, both roughly equivalent in opportunity size and personal fit, but in different markets. There isn't a fact
Ask HN: How to find a remote client based in the US?
We have a small software development company based in Europe, about 10 developers with 5-10 years of experience in mostly fullstack product development pro
Ask HN: How to not forget your own code?
I'll jump right in. I'm a developer with 5+ years' experience with programming. One of the biggest challenges I face is I forget my code very quickly. This
Ask HN: How to Prevent abuse of FREE service costing $$$ to Website?
I run a website (https://freephonenum.com/send-text) that allows people to send FREE SMS worldwide. I started this service a little over 1 year ago to allo
Ask HN: How to be a Head of Engineering?
As my career progress, I am currently looking for the next big challenge. As a software developer, how can I progress to a HoE role? I know that it's more
Ask HN: How to avoid TV addiction?
Remove your TV set.Unfortunately it's like being alcoholic. You have to understand that you're addicted for ever and the only way to win with the addiction
Ask HN: How to return to the old gmail?
The old Gmail is dead. Slow and ugly are the future. If you want something clean and fast, you're going to have to switch to something else. That's the
Ask HN: How to focus on one thing to do?
It depends on your goals, You can have a broad sense of skills to be a full stack developer. Knowing enough front end, middlewear and backend to design a d