Book Image

Getting Started with OrientDB

By : Claudio Tesoriero
Book Image

Getting Started with OrientDB

By: Claudio Tesoriero

Overview of this book

<p>In modern software applications, often there is the necessity to manage very big amounts of unstructured data with varying schema. In this scenario, instead of relational databases, we can use OrientDB, an open source NoSQL DBMS written in Java. Inspite ofDespite being a document-based database, the relationships are managed with direct connections between records. It supports schema-less, schema-full, and schema-mixed modes.</p> <p>Getting Started with OrientDB will be your handy, quick reference guide, for all document-graph DBMS functionality. Administrative tasks, deployment, designing a database, different ways of querying and consuming data - all that you need to know about OrientDB is presented keeping with practical usage in mind. You will be able to install, setup, deploy, and configure databases with OrientDB for applications.</p> <p>Getting Started with OrientDB will allow you to use its OreintDB’s main functionality immediately. The book will guide you through the discovery of one of the most powerful NoSQL databases available today. It will then take you through downloading and installing OrientDB, cluster deployment, programming, discovering OrientDB’s potential, and its features.</p> <p>The book covers useful administrative topics such as import/export, automatic backups, and configuration tips. Furthermore, design concepts like user management, document databases, graph databases, and dictionaries are covered. Finally, concepts and programming examples are shown in Java.</p>
Table of Contents (12 chapters)

Clustering


OrientDB can be deployed in a cluster architecture. It uses the Hazelcast open source project to manage the clustering. OrientDB currently supports the multi-master replication, in which each node of the cluster owns an exact replica of the database and can perform all kinds of operations against it. Of course, OrientDB manages the conflicts that could happen when more than one node wants to update the same information. Currently the clustering implementation is under heavy refactoring by the project team due to the implementation of the auto-sharing support.

Note

It is very important to know that replication works only for already created databases. Schema-related commands are not executed in a distributed environment. This means that you cannot create a new database in a node and see it in other nodes. Only data that is replicated across the cluster's nodes.

How it works

When OrientDB is configured to work in a cluster (this can be achieved through the configuration file), it tries...