Tutorials for Graph
These tutorials walk you through common Aerospike Graph development scenarios. Several tutorials use sample apps from the Aerospike Graph GitHub repository.
Introduction
The Aerospike Graph system is an application layer, called the Aerospike Graph Service (AGS), that operates directly on top of the Aerospike Database. AGS functions as a transparent middle layer, abstracting complex database operations so users can concentrate solely on data modeling, large-scale data loading, and executing millions of high-speed graph queries.
How graph data modeling fits in
Graph data modeling represents how data relates to other data. Use cases such as fraud detection, recommendation systems, or social networks benefit from explicitly modeling relationships.
Aerospike Graph uses the Property Graph Model with Gremlin as the traversal language.
Property Graph Model at a glance
- Vertices (nodes) represent entities such as people, devices, or locations.
- Properties describe those entities, for example, a
userIdmight include name, email, or billing ZIP. - Edges connect vertices and define relationships. Edges are directed from one vertex to another, but you can traverse them in either direction.
Available tutorials
With the core model in mind, you can dive into the tutorials below.
Getting started tutorials
Start with one of these introductory tutorials to learn the fundamentals of Aerospike Graph:
- Graph and Java basics: Build a transaction network with the Gremlin Java driver.
- Graph and Python basics: Build the same transaction network using the Gremlin Python driver.
Both tutorials create the same data model (users, accounts, and transactions) and cover the same query patterns. Choose the language you’re most comfortable with.
Follow-up tutorials
After completing either the Java or Python basics tutorial, continue with:
- Visualize your graph with G.V(): Connect G.V() to AGS and explore your transaction graph visually.
Deployment and security tutorials
Ready to deploy to production? These tutorials cover advanced topics:
- Get started with Graph and AWS: Deploy AGS with Aerolab and run the distributed bulk-loader example.
- Secure Aerospike Graph with TLS: Configure end-to-end TLS between Gremlin clients, AGS, and Aerospike Database.