transactions do not apply to micro-service architectures.
First, data access becomes more complex for a micro-service architecture, because the data is private to the micro-service, and the only way to access it is through the API. This packaged data access method makes the micro-service loosely coupled and independent from one another, making it easier to extend performance.
Second, different micro-services often use different databases. Applications produce a variety of different types of da
sharding systems do not use distributed transactions.
Best efforts 1PC-mode transactions
Refer to the implementation of SPRING-DATA-NEO4J. Given the performance advantages of best efforts 1PC mode, as well as its relatively simple implementation, transaction compensation (power equivalent) is used in most sharding frameworks and projects.
For those systems with high performance requirements but not high consistency requirements, the real-time consis
This article is from Aliyun-yun-Habitat community, the original click here.
In practice, how to build a simple knowledge map, two versions, one starting from the 0 (start from scratch), one supplemented on cn-dbpedia basis, the MYSQL,POSTGRESQL,NEO4J database are all tried. I stumbled on the possibility of stepping on the pit do not know, welcome to discuss.
1. Cn-dbpedia Construction Process
The knowledge base can be divided into two types,
Characteristics:
Strong data correlation;
Often exhibit poorer memory access locality
Too little processing for a single vertex
Along with the change of parallelism in the calculation process
Large graph calculation mainly includes two kinds:
A real-time graph database based on traversal algorithm, such as NEO4J, Orientdb, Dex and Infinite graph;
Based on the vertex-centric parallel engine, such as Goldenorb, Giraph, Pregel and Hama, the graph
Hbase, Cassandra, hypertable
Document storage
MongoDB, CouchDB
Key-value Storage
Tokyo cabinet/tyrant, Berkeley DB, Memcachedb, Redis
Diagram Storage
NEO4J, FLOCKDB
Object storage
Db4o, Versant
XML database
Berkeley DB XML, BaseX
The following is a partial SQL concept that corresponds to the MongoDB concept:
SQL Terminology/Concepts
MongoDB
information, such as session, configuration file, parameters, shopping cart and so on. This information is usually linked to the ID (key), which is a good choice for a key-value database.· Document Database :MongoDB stores the data as a document. Each document is a collection of a series of data items. Each data item has a name and corresponding value, which can be a simple data type, such as a string, a number, a date, and so on, or a complex type, such as a sequence table and an associated ob
Introduced?? This article describes how to connect and process a MySQL database in a spring project.?? The project uses spring Data JPA and hibernate to connect and process the MySQL database, which is, of course, just one way, and you can use spring JDBC or mybatis.?? Spring Data JPA is a sub-project of spring data, which is mainly used to simplify the implementation of the database access layer, using spring data JPA to easily make additions, deletions, pagination, sorting, and more. Spring da
. This type of data model is a versioned document, and semi-structured documents are stored in a specific format, such as JSON. A document database can be considered an upgraded version of a key-value database, allowing for the nesting of key values. and the document database is more efficient than the key-value database query. such as: CouchDB, MongoDb. Domestic also has the document type database SEQUOIADB, already open source.4. Graph Database (graph)The graphical structure of the database is
systems, relational mapsTypical products: neo4j, Infinite Graph, TiTanData Model: Schema structureAdvantages: Adapt to Schema calculation scenariosIi. MongoDB (official download site www.mongodb.org/downloads/)MongoDB is a nosql one, the document data storage model, the Jons data model, the function is more than MySQL, the performance is better than MySQL.CentOS RPM Package: http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/RPMS/Installation
support a level two index , allowing efficient querying of any field .
The ability to support the nesting of documents enables the query language to have the ability to search for nested objects , and XQuery is an example. MongoDB implements similar functionality by supporting the specification of JSON field paths in queries.
MongoDB has a more comprehensive database of SQL and ACID support. However, more is the introduction of log collection and storage, small files distributed storag
The pattern we are using now is for direct key value to be cached directly with memcached. Redis is used for collection types. For the content of the big data volume stuff, we are going to try to use MongoDB. Also learning neo4j to deal with deep search, recommended features.1.Memcached single Key-value size Limited, one value maximum only 1MB, Redis's maximum supported 512mb2.memcached is just a memory cache, no requirement for reliability, and Redis
.
Neo4jHealthIndicator
Check that the Neo4j server is started.
RabbitHealthIndicator
Check that the Rabbit server is started.
RedisHealthIndicator
Check that the Redis server is started.
SolrHealthIndicator
Check to Solr see if the server is started.
These endpoints, spring-boot-starter-xxx after the package is dependent on the import, using @Conditional such annotations to automatical
database, it is using a flexible graphical model, and can be extended to multiple servers. NoSQL databases do not have a standard query language (SQL), so database queries require a data model. Many NoSQL databases have rest-type data interfaces or query APIs. such as: neo4j, Infogrid, Infinite Graph. Typical application scenarios: social networks, referral systems, and more. Focus on building a relationship map Data Model: Graph structure Advantages
Column Store Database
Cassandra, HBase, Riak
Distributed File Storage System
To store the same column of data in a clustered type
Find Fast, scalable,More easily distributed extensions
function relative limitation
Document Type Database
CouchDB, MongoDB
Web applications (similar to Key-value, value is structured)
A series of key-value pairs
Data structure requirements are not strict
Query performance is not high, an
store the data in a graphical way. Entities are treated as vertices, and relationships between entities are used as edges. For example, if we have three entities, Steve Jobs, Apple and next, there will be two "founded by" sides connecting Apple and next to Steve jobs.Typical products: neo4j, Inforgrid1.3Common relational database product introduction1.3.1 Oracle DatabaseOracle database system is one of the most popular client/server (client/server) o
)
MongoDB River Plugin (by Richard Louapre)
Neo4j River Plugin (by Steve Samuel)
Open Archives Initiative (OAI) River Plugin (by Jörg Prante)
Redis River Plugin (by Steve Samuel)
RSS Plugin (by David Pilato)
Sofa Plugin (by Adamlofts)
SOLR River Plugin (by Luca Cavanna)
St9 River Plugin (by Sunny Gleason)
Subversion River Plugin (by Pascal Lombard)
DynamoDB River Plugin (by Kevin Wang)
As can be seen, most of the data sources have
Tags: document definition zll relational database Val search operation God PadYou see, or you don't see me I was right there. No sorrow, no joy. You read, or you don't read me. The feeling is right there Not going to come. ----Cang Gyatso I think it is most appropriate to cite this poem to express the relationship of NoSQL. What we call NoSQL stems from a technical gathering held in San Francisco on June 11, 2009. The initiator Johan that a name, simple, easy to remember, suitable for Twitt
cart, etc. This information is usually linked to the ID (key), in which case the key-value database is a good choiceThree Web, user login time any one, login information saved in Redis or memcached, log in web2 again, do not need to verify login, complete session to maintainDocument-oriented (document-oriented) database, Products: MongoDB, CouchDB, RavenDBMongoDB belongs to the document (document-oriented) database, where the data is stored as documents, and each document is a collection of a s
the RDBMS, we will use SQL statements such as join table multi-level query,This requires only two lines in the gallery such as neo4j. You can use a relational database in a social system, but you will lose your natural real-time nature.3. High-frequency trading: Most of us believe that a trading system must be an RDBMS because it guarantees transactional performance, right? Wrong. High-frequency traders tend to be the first people to use NoSQL,For HF
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.