Live data from Hacker News

Learn how to design large-scale systems

github.com

1–10 of 199 posts

Re: Learn how to design large-scale systems

#5
post #4
post #3

No database access layer ?

What's the distinction between a database access layer and read/write apis? Is that a semantic distinction or do they accomplish different things?

from my understanding you get the ability to put the DAL into a "pause" mode where it queues all the api requests allowing you do to updates / upgrades to the database with no downtime.

It also gives you a way of controlling what queries are used by the API servers preventing a developer from doing silly things and creating a production outage

Re: Learn how to design large-scale systems

#7
I'd add a section on using TLA+ as a design tool. Diagrams and rules of thumb are useful but they don't catch errors or help you discover the correct architecture. See the Amazon paper [0] on their use of TLA+ in designing (and trouble-shooting) services.

[0] https://lamport.azurewebsites.net/tla/formal-methods-amazon....

Re: Learn how to design large-scale systems

#8
post #5
post #4

Earlier quoted context omitted.

What's the distinction between a database access layer and read/write apis? Is that a semantic distinction or do they accomplish different things?

from my understanding you get the ability to put the DAL into a "pause" mode where it queues all the api requests allowing you do to updates / upgrades to the database with no downtime. It also gives you a way of controlling what queries are used by the API servers preventing a developer from doing silly things and creating a production outage

It also makes changing your DB a lot easier since APIs using the DAL don't need to be updated since they're DB agnostic -- you "only" need to update the DAL API.

Re: Learn how to design large-scale systems

#10

Note that HN, a top-1000 site in the US, runs on a single box via a single racket process. "The key to performance is elegance, not battalions of special cases."

Heh, elegance like "There is a story on the front page getting lots of attention, please log out so we can serve you from cache."
Post reply on HN