---
title: "Deploy AEROSPIKE: LATEST"
description: "Aerospike NoSQL database, with mounted volume for data persistence."
category: "Storage"
url: https://railway.com/deploy/aerospike-latest
---

# Deploy AEROSPIKE: LATEST

Aerospike NoSQL database, with mounted volume for data persistence.

**[Deploy AEROSPIKE: LATEST on Railway](https://railway.com/template/aerospike-latest)**

- **Creator:** RushNRX's Projects
- **Category:** Storage
- **Total deploys:** 1

## Template content

### aerospike-server

- **Image:** aerospike/aerospike-server:latest

## Documentation

## Aerospike Community Edition - Quick Guide

### ⚠️ Important: TCP Connection Required
Aerospike is **NOT** accessible via HTTP/HTTPS. You must use TCP protocol with an Aerospike client library.

### Quick Setup Summary
1. ✅ **Template deployed** - Aerospike Community Edition running
2. ✅ **Volume mounted** at `/opt/aerospike/data` for data persistence  
3. ✅ **Default namespace** "test" with 4GB storage configured

### Connection Methods

#### Internal Connection (Railway Services)
```javascript
// test-aerospike.js
const Aerospike = require('aerospike');

const client = Aerospike.client({
  hosts: 'your-service-name.railway.internal:3000'
});

client.connect((error) => {
  if (error) {
    console.log('Failed:', error.message);
  } else {
    console.log('Connected to Aerospike!');
    
    const key = new Aerospike.Key('test', 'demo', 'test1');
    client.put(key, { data: 'Hello!' }, (err) => {
      if (!err) {
        client.get(key, (err, record) => {
          console.log('Data:', record.bins);
          client.close();
        });
      }
    });
  }
});
```

#### External Connection (TCP Proxy)
Railway Settings → Networking → TCP Proxy → Port 3000
```javascript
// Use generated proxy address like:
hosts: 'viaduct.proxy.rlwy.net:12345'
```

### Client Libraries & Examples
For complete examples in multiple languages, visit:  
📚 **https://aerospike.com/docs/database/quick-start/**

Available clients:
- Java
- C#
- Go
- Python
- Node.js


## Deploy and Host

Deploy Aerospike Community Edition on Railway with one click using the template. The service runs in a Docker container with automatic restarts and health monitoring.

### About Hosting

Railway provides managed hosting with persistent volumes for database storage. Your Aerospike instance runs 24/7 with automatic SSL/TLS for TCP connections and built-in DDoS protection.

### Why Deploy

- **High-speed NoSQL** - Sub-millisecond latency for real-time applications
- **Hybrid memory architecture** - Combines RAM and SSD for optimal performance
- **Automatic scaling** - Handles millions of transactions per second
- **No configuration needed** - Works out of the box with sensible defaults

### Common Use Cases

- **Session store** - Fast user session management
- **Real-time analytics** - Stream processing and counters
- **Cache layer** - High-speed caching for databases
- **User profiles** - Quick access to user data
- **IoT data ingestion** - Time-series data storage

## Dependencies for

Railway handles all infrastructure dependencies automatically.

### Deployment Dependencies

- **Docker**: Base image `aerospike/aerospike-server:latest`
- **Volume**: Persistent storage at `/opt/aerospike/data`
- **Network**: TCP port 3000 (internal), configurable TCP proxy for external
- **Memory**: Minimum 1GB RAM (configurable via `MEM_GB` env variable)
- **Client libraries**: Install via npm/pip/maven as needed (not included)

### Notes
- Will remove upon request from Railway or regulatory bodies
- Default configuration suitable for development/testing
- For production: configure environment variables and increase resources

## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/aerospike-latest
