Uses

Aerospike is a row-oriented database. It’s a client-server solution, which allows you to build an app server cluster that attaches over TCP to your database cluster using Aerospike’s provided libraries. There are a number of NoSQL use cases where Aerospike is very well suited.

key value store
Key-Value Database

Many internet applications are designed around large, fast key-value stores. Internet applications like Twitter, Weibo, Uber, Pinterest are built primarily with large key-value systems instead of SQL. Key-value is predictable, and in-memory systems like Redis are very fast.

An application like Twitter has user records, where each user record might have a list of people followed or followers. Each user has the list of messages they’ve created – and maybe a list of sponsored messages they should read. With a NoSQL programming model, you’ll need to think about your application differently, but you’ll reap the benefits of speed and scale.

For high scale internet applications, a key-value database needs persistence, sharding, object operations like list and map manipulation, and to have great operational characteristics. A variety of different application languages need to be supported – most teams use a combination of languages, not just Java or Node but also perhaps Python, Ruby, or even components in C or Go.

What is a key-value store?

Read how several companies are using Aerospike as a key-value store

caching
Cache Replacement

Aerospike’s low latency and high throughput make it an excellent cache replacement. A cache is best when you have static data. However, if your data is dynamically changing, you are forced to either deal with inconsistencies between the cache and the database or to overwhelm the database with writes.

Also, compared to Memcache and Redis, Aerospike has built-in clustering, and can use high performance Flash (SSDs). Benchmarks show Aerospike as comparable in single server speed to both Redis and Memcache, but Aerospike includes an automatic clustering and transparent resharding. This gives you the ability to add capacity by simply starting a node. Continuous defragmentation and eviction, and Memcache’s check-and-set operation, give you familiar and necessary functionality.

Although Aerospike has complex operations like queries, aggregations, and in-database compute, we continue to maintain a high performance “fast path” — “single bin” mode, and can be configured for a RAM-only single data copy mode. If you need a cache with more reliability, you can turn on data replication, but it’s not necessary.

Using key-value store as a cache

Read how KAYAK is using helping customer travel smarter

recommendation engine
Recommendation Engine

A recommendation engine uses innovative math, combined with domain-specific knowledge, to increase online engagement. If you’re designing one, you’ll need a data layer that’s fast – to support multiple requests per recommendation – and flexible, since you’ll need either more throughput or more data as your system evolves. You’ll want one that supports high write throughputs when ETLing data from your data scientists, or if you are recording recent behaviors that your algorithms will use.

Aerospike is an excellent database for recommendation engines. Key features are large lists ( for efficiently recording behavior), optimized Flash support to handle datasets from terabytes to petabytes, queries and aggregations for real-time reporting, and strong support for languages such as Python and Go. To get you started, we open sourced a real-time behavioral engine that uses recent cosine similarities.

Read how Chango, Sitescout, Ligit, ShareThis and others are using Aerospike as a recommendation engine

fraud detection
Fraud Detection and Intervention

Detecting fraud, and hopefully intervening, is a goal every time money is at stake. In some industries, like advertising, the most effective algorithms can be quite simple: record recent ads placed, only pay once for clicks on that ad. That simple case needs a few hours of recent ads served, a high read-write rate, and accuracy. In financial services, large monolithic SQL systems execute rules created by data analytics, creating “fraud scores” that can be applied to trigger a greater level of verification.

When working with more advanced algorithms – like machine learning – the best tech stacks will use advanced libraries. They won’t be able to easily push compute into the database using SQL – SQL just gets in the way. Streaming frameworks – like Spark, Impala, Storm, and Akka – need shared stores of recent behavior. Aerospike is an excellent database for these projects.

Read how ForensIQ is using Aerospike to combat digital advertising fraud and support rapid business growth