Google Search is a hidden goldmine of information.
Sadly, 0.5% of people only know about Google hacks.
Here are 11 search hacks that will change your life forever:
Every month, we're on the hunt to bring you useful tools and resources from around the web - here are some of the best we found in May 2024
https://t.co/nbuorIXWMJ
How Discord Stores Trillions of Messages
In 2015, Discord started using MongoDB to store messages. By November 2015, there were already 100 million messages that did not fit in RAM, causing unpredictable latency.
In 2017, Discord moved to storing billions of messages in a Cassandra database. By 2022, the number of stored messages had ballooned to trillions across 177 nodes.
But Cassandra was plagued by several serious issues.
- Hot partitions occurred when a small number of high traffic channels overwhelmed nodes, cascading latency across the cluster.
- Garbage collection pauses created latency spikes.
- Compactions fell behind, forcing expensive reads to query multiple SSTables.
- Maintenance like node repairs interrupted service.
Discord migrated to ScyllaDB for the following benefits:
- Written in C++ instead of Java, eliminating disruptive garbage collection pauses
- Shard-per-core model provides stronger workload isolation to prevent hot partitions from cascading latency across nodes.
- Reverse query performance optimized to meet Discord's needs
- They reduced nodes to 72 while increasing disk space per node to 9TB.
To further protect ScyllaDB, Discord:
- Built intermediary data services in Rust that limit concurrent traffic spikes
- Data services sit between the API and database, coalescing requests
- Query the database just once even if multiple users request the same data
- Rust provided fast, safe concurrency ideal for this workload
The results? Tail latencies down from 40-125ms to a steady 15ms. Database uptime improved from weekend-long outages to smooth sailing. The system easily handled World Cup traffic spikes, processing events like goals and penalties without breaking a sweat. Discord continues to scale, now reliably storing trillions of messages with ScyllaDB.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): https://t.co/kNfv0DVDdf
The Evolving Landscape of API Protocols in 2023
This is a brief summary of the blog post I wrote for Postman.
In this blog post, I cover the six most popular API protocols: REST, Webhooks, GraphQL, SOAP, WebSocket, and gRPC. The discussion includes the benefits and challenges associated with each protocol.
Thank you to @getpostman for featuring me on your blog.
You can read the full blog post here: https://t.co/joU7abIgDD
You need a new phone
Phone A claims “20-hour battery life”
Phone B claims “All-day battery life”
Which one do you choose?
You likely choose B and there’s a reason
Let’s talk about: The Framing Effect (with 6 examples)
Machine Learning is such a vast topic and often it's very difficult for beginners to understand where to start. 🤔
Presenting the ultimate machine learning cheatsheet 👇
Feynman Lessons for Excellence:
• Starve you distractions, feed your focus.
• Set Goals.
• Read every day.
• Time is non-refundable. Use it with intention.
• Have a vision.
• Live inspired.
• If you don't go after it, you won't have it.
• Make mistakes and pursue failure.