One day I picked up an old book at a library sale that was published in 1900. I paid $1 for it, and read it cover to cover. It was the autobiography of a mountain man.
I've picked up lots of these old books for next to nothing at library sales, and mourned that they were being replaced by dumber books in our county and school libraries.
But as I read it, I kept thinking, "This is what more Americans need to read!" I thought then how awesome it would be if I could republish them on paper (not eBooks) and get them into homes for people to read, and how awesome it would be for those people to preserve them and pass them down to their children and grandchildren.
I was already on a "home library" crusade, and it just made sense to encourage these home libraries to be filled with the books that told a thousand personal stories of America's history. Not books written by historians. Not books written by Marxist revisionists. Just the books that told the simple and amazing stories of building this nation, one mother, one pioneer, one soldier at a time.
And then I learned how to self-publish, and Knowledge Keepers Bookstore was born.
Since 2020, I've published 22 of these old books. Original histories from the journals of Columbus to the only authorized biography of the Wright Brothers, and lots of amazing books in between: pilgrims, presidents, slaves, cowboys, soldiers, Indians, sailors, teachers, pioneers, farmers, children, and more.
If you love books, history, and American exceptionalism, Knowledge Keepers is going to be your new favorite bookstore. https://t.co/HRW3rqszVh
Convicting quote from Augustine:
"But why does truth engender hatred? Why does your servant meet with hostility when he preaches the truth, although men love happiness, which is simply the enjoyment of truth? It can only be that man's love of truth is such that when he loves something which is not the truth, he pretends to himself that what he loves is the truth, and because he hates to be proved wrong, he will not allow himself to be convinced that he is deceiving himself. So he hates the real truth for the sake of what he takes to his heart in its place. Men love the truth when it bathes them in its light: they hate it when it proves them wrong."
"You won’t know when it’s the last time. But you can live like it is."
Gut-wrenching read from @SahilBloom. This is worth your time today. https://t.co/qdHk7DV0Yy
A lesson I wish I learned earlier: Your entire life will change the moment you stop looking for more information and start acting on the information you already have.
My entire life changed when I realized that preparation always beats planning.
Planning is based on the expectation of order. Preparation is based on the expectation of chaos.
Plan for order and you'll be destroyed by chaos. Prepare for chaos and you'll thrive in any condition.
When I was young I fixed my parents’ computer and now that I’m older I fix computers for my kids. Are we the only generation that knows how computers work?
Here’s the thing about feelings. They’re so much easier to control than facts. Turns out, in my Matrix, the worse we treat you, the more we manipulate you, the more energy you produce. It’s nuts. I’ve been setting productivity records every year since I took over. And, the best part, zero resistance. People stay in their pods, happier than pigs in s***. The key to it all? You. And her. Quietly yearning for what you don’t have, while dreading losing what you do. For 99.9% of your race, that is the definition of reality. Desire and fear, baby. Just give the people what they want, right?
"You don't need to make perfect decisions—there's no such thing—there are just decisions, and you make them perfect with your actions."
Great piece on overthinking from @SahilBloom! https://t.co/8AgdLF780T
How can Cache Systems go wrong?
The diagram below shows 4 typical cases where caches can go wrong and their solutions.
1. Thunder herd problem
This happens when a large number of keys in the cache expire at the same time. Then the query requests directly hit the database, which overloads the database.
There are two ways to mitigate this issue: one is to avoid setting the same expiry time for the keys, adding a random number in the configuration; the other is to allow only the core business data to hit the database and prevent non-core data to access the database until the cache is back up.
2. Cache penetration
This happens when the key doesn’t exist in the cache or the database. The application cannot retrieve relevant data from the database to update the cache. This problem creates a lot of pressure on both the cache and the database.
To solve this, there are two suggestions. One is to cache a null value for non-existent keys, avoiding hitting the database. The other is to use a bloom filter to check the key existence first, and if the key doesn’t exist, we can avoid hitting the database.
3. Cache breakdown
This is similar to the thunder herd problem. It happens when a hot key expires. A large number of requests hit the database.
Since the hot keys take up 80% of the queries, we do not set an expiration time for them.
4. Cache crash
This happens when the cache is down and all the requests go to the database.
There are two ways to solve this problem. One is to set up a circuit breaker, and when the cache is down, the application services cannot visit the cache or the database. The other is to set up a cluster for the cache to improve cache availability.
Over to you: Have you met any of these issues in production?
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): https://t.co/FIzCeaWsZV