jiryu

Joined 14 years ago

Karma
84
Submissions
14
Member since
Jul 10
I'm A. Jesse Jiryu Davis a software developer for MongoDB Inc. specializing in C, Python, and Tornado.

[ my public key: https://keybase.io/emptysquare; my proof: https://keybase.io/emptysquare/sigs/jUfaNijti8giFkhkT6N01aZ4ffhvH6ac_4E95qu2iKY ]

View on Hacker News

Recent submissions

Comment · 1 year ago
Comment · 5 years ago
I gave the presentation in the linked article, here's a written version of the presentation: https://emptysqua.re/blog/paxos-vs-raft/

I hope that the "Paxos vs Raft" debate can die down, now that engineers are learning TLA+ and distributed systems more thoroughly. These days we can design new protocols and prove their correctness, instead of always relying on academics. For example, at MongoDB we considered adopting the reconfiguration protocol from Raft, but instead we designed our own and checked it with TLA+. See "Design and Verification of a Logless Dynamic Reconfiguration Protocol in MongoDB Replication" for details: https://arxiv.org/pdf/2102.11960.pdf

Comment · 8 years ago
"Avoid instant messaging at all costs" is definitely good advice. I usually forget to take three breaths before answering there, but I usually remember before I answer an email. Plus, I have GMail's "undo send" feature enabled so I have a few more secrets to repent before my message cannot be untyped.
Comment · 13 years ago
Comment · 14 years ago
w00t!
Comment · 14 years ago
No - it can only use one for a given query. But a compound index like the ones I describe in the post can index many fields.
Comment · 14 years ago
None, almost certainly -- if you have enough RAM to fit your working data set, then MongoDB's writes are just changing memory. If it does need to read data from disk before changing it, the new yielding architecture that others have mentioned will help prevent lock contention.
Comment · 14 years ago
One of the reasons DB-level locking is actually quite important is that the replication oplog is on the 'local' database and your data is on other databases -- so your application is no longer fighting with replication for the write lock.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton