Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Real-Word Use Cases: The Strengths of Graph Databases

DZone's Guide to

Real-Word Use Cases: The Strengths of Graph Databases

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

If there's one thing the NoSQL community can definitely agree on, it's that relational databases are not the one and only solution to modern data storage issues. Not that they're never the answer; just not always the answer. The key, then, is understanding which tool is needed for any given job. In this recent article from Rik Van Bruggen, a use case is presented that calls a database far more flexible than the relational model: the graph database.

According to Van Bruggen, the advantage of graph databases is all in the design:

Rather than relying on complex relational databases (as conventional business databases are called) to store and analyse data, graph databases allow users to store, search and query complex interconnected content... A graph database does this by applying graph algorithms to the data and leveraging relationships and connections between physical assets (people, objects), their locations and subjects and matching complex patterns to make sense of the information.

Or, in short:

...graph databases can identify complex relationships between data

The real-world use case Van Bruggen provides is that of Shutl, a delivery service based in London. Their data needs - complex and interconnected - made them an ideal fit, according to Van Bruggen, for a graph database, which in their case led them to Neo4j. The performance improvements were fairly impressive:

...Shutl observed that before turning to graphs the latency of their longest query was higher than their shortest physical delivery, both around 15 minutes - something that can no longer be replicated as the average query is powered by a graph database and takes 1/50th of a second!

For more details on Shutl's use case and the functionality of graph databases as a whole, check out Van Bruggen's full article.


Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}