开发者

(memcached + relational db) vs nosql

Memcached + relational db looks like a good solutions if you don't have to scale in magnitude of twitter or facebook... are there reasons whe开发者_如何学Gon NoSQL would be preferred even if high scalability is not a requirement..


Re: are there reasons when NoSQL would be preferred even if high scalability is not a requirement

Yes, NoSQL (eg couchdb) entries can have attributes in addition to the value itself.

You can fake it with memcache by serializing the attributes + value into the memcache store.


A possible advantage would be one you don't have in memcached: 'fuzzy' matching on key (key ranges and the like), and more control over your key store in nosql then in memcached itself, which would require a per-key unset/update, compared to a batch retrieve/update in nosql.

As far as I gather general statistics & relations could be harder to retrieve, and depending on the data, saving/updating could be more intensive on systems not requiring high scalability.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜