Text
Sharing an SQLite database across containers is surprisingly brilliant

This is a graph of latency in milliseconds. It’s the latency of Segment’s streaming pipeline fetching a critical piece of customer-specific configuration. This pipeline often handles north of 500,000 messages per second. Normally when I see a graph like this, it makes me very anxious. How can the exact same work suddenly become over 20X faster?
0 notes
Text
Brilliant technique for handling database queries literally saved Discord

It helped them store trillions of messages and fetch them without bringing their DB cluster to its knees.
The technique is called Request Coalescing.
And it’s too good to ignore.
But what’s so special about it?
If multiple users are requesting the same row at the same time, why not query the database only once?
This is exactly what Request Coalescing helps us achieve.
Here’s what happens under the hood:
- The first user that makes a request causes a worker task to spin up in the data service
- Subsequent requests for the same data will check for the existence of that task and subscribe to it
- Once the initial worker task queries the database and gets the result, it will return the row to all subscribers at the same time.
There are several pros to using Request Coalescing:
- Efficient utilization of database resources
- Ability to handle more concurrent requests without creating hot partitions
- Reduce latency
But there are some cons as well:
- Implementation can be complex with regards to getting a fair distributed reader-write lock. Basically, multiple readers need to access the data simultaneously while preventing conflicting writes
- Overall latency may go down, but certain requests will take more time
Of course, this technique is NOT needed normally. But at a certain scale, it can actually save your business.
Credits to Saurabh Dashora
0 notes
Link
The best font for IDE and terminal I know.
9 notes
·
View notes
Video
coub
Однажды в далекой далекой галактике
0 notes
Photo

Ludwig Mies van der Rohe: Father of ‘less is more’ architecture - bauhaus-movement.com
45 notes
·
View notes
Link
MongoDB 3.0 released!
Today MongoDB 3.0 is generally available; you can download now.
Our community was critical to ensuring the quality of the release. Thank you to everyone who participated in our 3.0 Bug Hunt. From the submissions, we’ve selected winners based on the user impact and severity of the bugs found.
First Prize
8 notes
·
View notes
Link
Today we announced MongoDB 3.0. The upcoming release will be generally available in early March. We’re making major improvements that have a big impact. Write performance has improved by 7x - 10x with WiredTiger and document-level concurrency control, compression reduces storage needs by up to…
9 notes
·
View notes
Photo
xkcd: Watches
612 notes
·
View notes
Quote
In all likelihood we’re not just seeing the death of the iPod Classic, but the death of the dedicated portable music player. Now it’s all phones and apps. Everything is a camera. The single-use device is gone—and with it, the very notion of cool that it once carried. The iPhone is about as subversive as a bag of potato chips, and music doesn’t define anyone anymore.
On Death and iPods: A Requiem | WIRED (via thisistheverge)
191 notes
·
View notes
Link
By Luke Lovett, Python Engineer at MongoDB
Introduction
Suppose you’re running MongoDB. Great! Now you can find exact matches to all the queries you can throw at the database. Now, imagine that you’re also building a text-search feature into your application. It has to draw words out of…
10 notes
·
View notes
Video
coub
Programming in movies and real life
0 notes
Photo
NLTK: Learning to Classify Text
0 notes
Video
youtube
DDOS on the VideoLAN downloads infrastructure
0 notes