Skip to content

Storage Backends

Actionbase abstracts storage through a minimal interface called Datastore. Different backends can be integrated.

A storage backend must support:

OperationDescription
getRetrieve value(s) by key(s)
deleteDelete a value by key
scanRange scan with prefix, start, stop, limit
checkAndMutateAtomic check-and-mutate for consistency
batchBatch mutations (optional, recommended)

Production backend. Distributed, scalable NoSQL on HDFS.

CharacteristicDescription
Horizontal ScalabilityShards data across nodes
Strong DurabilityData replicated across nodes
Low-latency AccessOptimized for random reads and writes

HBase requires expertise when used directly (row key design, region splitting, cluster management). Actionbase provides a higher-level abstraction with interaction-specific features (State/Index/Count).

See HBase Operations.

In-memory backend for development and testing.

CharacteristicDescription
Easy SetupNo configuration required
No PersistenceData lost on server stop

Ideal for local development and prototyping.

Actionbase OperationStorage OperationData Structure
Get QuerygetEdgeState
Scan QueryscanEdgeIndex
Count QuerygetEdgeCounter
Mutation (lock)checkAndMutateLock
Mutation (write)batch / putState, Index, Counter
Mutation (cleanup)deleteOld indexes
BackendUse Case
HBaseProduction
MemoryDevelopment

Lighter backends are planned for smaller deployments.