Bicycle Guide

Book Profile

Graph Databases in Action

Dave Bechberger & Josh Perryman · 2020

A hands-on guide that teaches developers how to model, query, and build production applications on graph databases using Apache TinkerPop's Gremlin language, illustrated through the end-to-end development of a restaurant recommendation app called DiningByFriends.

Get the book →

Graph Databases in Action walks application developers, data engineers, and architects through every stage of building a graph-backed application—from deciding whether a graph database is the right tool, through data modeling, traversal writing, application integration, performance tuning, and a forward look at graph analytics and machine learning. Using Apache TinkerPop's Gremlin query language and Java, the authors build a realistic restaurant review and recommendation application (DiningByFriends) that illustrates social networking, known-walk recommendation engines, and subgraph-based personalization. Along the way, readers learn vendor-agnostic principles applicable to any labeled property graph database, gain concrete strategies for avoiding common pitfalls like supernodes and injection attacks, and develop an intuition for when graph databases outperform relational alternatives—and when they do not.

What it argues

A causal model describing how design levers (data modeling quality, traversal design quality, schema decisions, indexing, parameterization) and contextual conditions (problem-domain fit, data quality, scale representativeness) drive intermediate states (traversal efficiency, data integrity, developer comprehension) that ultimately determine application outcomes (query performance, correctness, security, maintainability, personalization quality).