CouchDB / NoSQL 和领域驱动设计?
为 CouchApp 项目做一些研究。
我了解文档数据存储与常规 RDBMS 的概念。我可以完全掌握建模文档和视图,而不是使用 WHERE 和 JOIN 语句。但我还没有找到很多关于如何使用领域驱动设计 (DDD) 来建模文档、视图和设计文档的资源。
示例:
- CouchDB 世界中的 DDD 禁忌(例如 GetObjectAFor(id, ... some other int, string, ObjectB, foobar) == BOOM )
- 当 DDD 开始指示您应该使用 SQL 时相反,
- DDD 对 CouchDB 繁重工作和潜在瓶颈(视图建模、压缩、复制等)的考虑
Doing some research in getting ramped up for a CouchApp project.
I understand the concept of a Document Data Store vs a regular RDBMS. And I can totally grasp modeling documents and views instead of using WHERE and JOIN statements. But I haven't been able to find many resources on how to model documents, views, and design docs with Domain Driven Design (DDD) in mind.
Examples:
- DDD no-no's in the CouchDB world (eg. GetObjectAFor(id, ... some other int, string, ObjectB, foobar) == BOOM )
- When DDD starts indicating you should be using SQL instead
- DDD considerations for CouchDB heavy lifting and potential bottle necks (view modeling, compacting, replication, etc.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 CQRS——它非常适合 DDD + NoSQL 组合。
请参阅此处的 #cqrs 标签,并查看:
http://cqrs。 files.wordpress.com/2010/11/cqrs_documents.pdf
http://groups.google.com/group/dddcqrs/browse_thread/thread/26d08282c329a598/e7f6986d6445dc73?pli=1
http://blog.jonathanoliver.com/2010/07/cqrs-event-store.html
http://www.youtube.com/results?search_query=cqrs&aq=f
Take a look at CQRS -- it's a great match for the DDD + NoSQL combination.
See the #cqrs tag here and also have a look at:
http://cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf
http://groups.google.com/group/dddcqrs/browse_thread/thread/26d08282c329a598/e7f6986d6445dc73?pli=1
http://blog.jonathanoliver.com/2010/07/cqrs-event-store.html
http://www.youtube.com/results?search_query=cqrs&aq=f