Database⏱10 minutes

Get Started with Aerospike

Quick Summary

“Node.js client for the Aerospike NoSQL database.”

Best for: Real-time analytics applications
Time to first integration: 10 minutes

📋Prerequisites

  • ✓Node.js 18+ installed
  • ✓A Aerospike account — sign up here
  • ✓An existing project (Next.js, React, or Node.js recommended)

Setup Steps

3 steps
1

Install Aerospike Node.js client

Use npm to install the Aerospike client library.

bash
npm install aerospike
2

Configure Aerospike client

Set up the client configuration to connect to your Aerospike database.

javascript
const Aerospike = require('aerospike'); const config = { hosts: '127.0.0.1:3000' };
3

Connect to Aerospike database

Establish a connection using the configured client.

javascript
Aerospike.connect(config, (error, client) => { if (error) throw error; // Use client });

Common Gotchas

Watch out for these issues in your first week.

Connection issues due to firewall settings

Fix: Ensure that the Aerospike server ports are open and accessible.

Data type mismatches

Fix: Verify that the data types used in your application match those supported by Aerospike.

Links