ravinskiy
ravinskiy
Pinhas Ravinskiy
31 posts
More data — more fun
Don't wanna be here? Send us removal request.
ravinskiy · 2 years ago
Text
Sharing an SQLite database across containers is surprisingly brilliant
Tumblr media
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
ravinskiy · 2 years ago
Text
Brilliant technique for handling database queries literally saved Discord
Tumblr media
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
ravinskiy · 8 years ago
Link
The best font for IDE and terminal I know.
9 notes · View notes
ravinskiy · 9 years ago
Photo
Tumblr media
YAGNI!
0 notes
ravinskiy · 10 years ago
Video
coub
Однажды в далекой далекой галактике
0 notes
ravinskiy · 10 years ago
Video
coub
Тыж программист
0 notes
ravinskiy · 10 years ago
Photo
Tumblr media
Ludwig Mies van der Rohe: Father of ‘less is more’ architecture - bauhaus-movement.com
45 notes · View notes
ravinskiy · 10 years ago
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
ravinskiy · 10 years ago
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
ravinskiy · 11 years ago
Photo
Tumblr media
xkcd: Watches
612 notes · View notes
ravinskiy · 11 years ago
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
ravinskiy · 11 years ago
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
ravinskiy · 11 years ago
Link
0 notes
ravinskiy · 12 years ago
Video
coub
Programming in movies and real life
0 notes
ravinskiy · 12 years ago
Photo
Tumblr media
7K notes · View notes
ravinskiy · 12 years ago
Photo
Tumblr media
NLTK: Learning to Classify Text
0 notes
ravinskiy · 12 years ago
Video
youtube
DDOS on the VideoLAN downloads infrastructure
0 notes