Aerospike How-To’s and Examples

Here you will find sample code and apps written using various Aerospike Client APIs along with other open source technologies. Take a look and learn how to leverage Aerospike’s technology in your own applications.

Aerospike Modeling Examples

This repository contains examples of how Aerospike’s complex data types, in particular Map and List, can be used to implement common patterns.

REST Client Examples

A companion to a blog post, the repository contains sample code and a demo app demonstrating the REST client for Aerospike.

Step-by-Step Console Application

The purpose of this sample console application is to show that Aerospike key-value store is an effective way to write applications with Aerospike as the only database. To demonstrate, this sample app describes the design and implementation (including data modeling techniques) of a Twitter-like application. The step-by-step code is easy to follow and substantial enough to be a foundation in learning Aerospike’s technology and maybe used as a “seed” application that you can expand.

This application covers: Key-Value Operations, Queries, Secondary Indexes, Filters, User Defined Functions and Aggregations

Modeling Timeseries Data

A Financial Tick Data use case for which real-time stock tick data is stored.

Node.js Starter Application

In a matter of minutes you will have built a simple web-based app using Node.js, Express and Aerospike. The application will 1) connect to the Aerospike database, 2) allow you to enter name on a web page, 3) store it, and 4) read it back from the Aerospike database and display it in the web browser.

Play Framework, Java, Scala Application

Learn how to build a simple web-based To-do app using Play Framework, Java, Scala and Aerospike. The application uses a custom Play plugin to connect and disconnect from the Aerospike database once when the web server starts and stops respectively.

Application features: Create to-dos, Batch read to-dos, Delete to-dos