TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

MongoDB, Data Durability and Improvements coming in 1.8

100 pointsby mattybover 14 years ago

7 comments

agentultraover 14 years ago
I agree largely with this post. I'm tired of hearing the same arguments the author has. This technology we use is hardly infallible and as programmers and system administrators of these systems the defects should be obvious! Yet somehow people still think that the "clueless users" are to blame for these "defects."<p>Sure, we all know the saying about assumptions. But why are we at a point where it's cool to use a data persistance layer that assumes it doesn't have to live up to any of those assumptions? It's why we have things like ACID, the LSB, etc. Contracts about how these systems should work for the end user.<p>It's hard to get all that stuff right off the bat, sure. But losing the entire database when a few bytes land in the wrong place? Yikes. Hardly something I'd trust real data to.<p>This stuff can always get better. Of course the solution as pointed out is tried and true. Glad to see that the developers aren't covering their ears...
SoftwareMavenover 14 years ago
I read once that every developer ought to use 'kill -9' as their method of stopping services they are writing, then ensure that doing so never causes a problem. Even if you can keep people from executing 'kill -9' (hint: you can't), there are always cases that you can't control that can stop a box in its tracks. By developing explicitly for this, you save you and your customer a lot of pain.<p>Honestly, I would never use a database that doesn't make safeguarding my data as its number one priority. Even if I'm just dumping logs in it, the time I really need to know what's going on is likely the time those safeguards are put to the test.
评论 #2090234 未加载
评论 #2091441 未加载
评论 #2090209 未加载
prosaover 14 years ago
This is exciting. MongoDB (and the suite of libraries building up around it) has made prototyping web applications an order of magnitude easier than using SQL. Lack of single-server durability, however, is a showstopper in production, before you've grown enough to justify scaling the database beyond one machine.<p>In my case, that meant going back to MySQL once our schema was finalized (sadly). Looks like that won't be necessary in the not-so-near future, which means MongoDB is usable in new projects without worrying about replication before otherwise necessary.
评论 #2090143 未加载
评论 #2089905 未加载
noelwelshover 14 years ago
I'm pleased Mongo is getting single server durability. I have never understood why it got so popular without this feature. I'd love to know why people choose Mongo over say, Riak, or CouchDB, as the majority of projects don't need more than one server.
评论 #2089885 未加载
评论 #2090081 未加载
评论 #2090150 未加载
评论 #2090637 未加载
评论 #2089948 未加载
评论 #2090055 未加载
评论 #2089834 未加载
评论 #2089949 未加载
megaman821over 14 years ago
I am never sure what niche MongoDB is supposed to fill.<p>If I want a large cluster to handle "big data" Riak or Cassandra seem to fit the bill better.<p>If I want speed Redis is great.<p>If I want a schema-less SQL-like (but not SQL) database, MongoDB?
评论 #2090183 未加载
评论 #2090019 未加载
评论 #2090308 未加载
cagenutover 14 years ago
If I had a nickel for every time a coworker used "-9" for no other reason than being in a rush and not grok'ing what a bad idea it is.
评论 #2089861 未加载
richcollinsover 14 years ago
You can also use fsync to guarantee that a transaction was written to disk at a <i>severe</i> hit to performance.
评论 #2090135 未加载