Introduction
In this chapter, we will take a look at the various ways in which you can connect to Neo4j. Neo4j is a high-performance graph database, which gives the flexibility to access it from various languages and in different options. The two most popular ones being the embedded option and the server mode. The embedded mode gives the user the power to embed it within the application to get high performance with low latency, whereas the server mode gives the user the flexibility to access the services using the REST endpoint, making it (virtually) language-neutral. Let's briefly discuss both the modes:
The embedded mode: The Neo4j graph database can be directly embedded into the application, making it look like a single binary executable file. It can be accessed using the appropriate Java binding.
The server mode: The Neo4j graph database can run in the server mode, in which its services can be accessed from any host, using the REST endpoints that are exposed by the Neo4j server and various...