- 1、本文档共46页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
图数据库 Neo4j 架构实践
技术创新,变革未来
关于此分享
内容
受众
“…使用图结构(graph structure)来实现语义查询,使用 点(vertex)、边(edge)和属性(property)来表示和存 储数据。最重要的概念是边(关系),在存储中,它直接将 数据项关联起来…”
/wiki/Graph_database
图数据库
图数据库
Social Network
Facebook / Linkedin
场景
Spatial/GIS
路径规划
交通预测
场景
Recommendation
“You may also like…”
“People you may know
…”
场景
Fraud detection
First-party bank fraud/Insurance fraud/e- Commerce fraud
场景
Workflow engine
Access control
…
场景
场景
场景
Graph Query Response Time =
ƒ(graph density, graph size, query degree)
graph density: avg. (relations per node)
graph size: ∑(node)
query degree: hops per query
场景
场景
LinkedIn Flagship(职场人士)
LinkedIn Students(学生群体)
LinkedIn Influencer(职场影晌力内容发布和传播)
LinkedIn Job Search
LinkedIn Recruiter(企业征才解决方案)
LinkedIn Lookup(企业雇员信息解决方案)
Lynda(全球最大在线职业教育培训)
Slideshare(全球最大的在线演示文档共享)
Pulse(阅读和内容聚合)
自景
自景
选型
选型
OrientDB
缺少批量写,从DB文件加载并初始化非常慢
在200M+节点后写瓶颈
不健壮不稳定
CEO不靠谱 / 2015/06/the-orientdb-issues-that-made-us-give- up.html
选型
选型
Titan
更像是API layer,可选backend engine,
Cassandra、HBase、BDB和ElasticSearch
ACID不完备,依赖backend engine
Key index使用限制较多
缺乏客户案例
Dev freeze
The last man standing, and the winner is
选型
Neo4j
Schema-free with labeled property
Fast graph traversal(~2M/s)
Written in Java
Full ACID compliant
Full/incremental online backup
HTTP API or embedded in JVM
Powerful declarative query language
Cache(chunk) based sharding
Linearly scalable read, M-S replication, fault-tolerance
Plugins & extensions
…
Neo4j
Neo4j
Distributed
replication
fault tolerance
scalability
consistency
Neo4j
Cluster Management
member join/leave/heartbeat
Failover
election
status propagation
Replication
distributed lock
transaction pull/push
Neo4j
Multi-Paxos algorithm
less complex and testable
Ready for cluster Management and election
Neo4j
• Multi-Paxos algorithm
• less complex and testable
• Ready for cluster Management and election
Neo4j
• Multi-Paxos algorithm
• less complex and testable
• Ready for cluster Management and election
Neo4j
• Multi-Paxos algorithm
• less complex and testable
文档评论(0)