Product reference pages are available in English only.
Database as a Service

DBaaS for In-Memory DB

What Is It?

DBaaS for In-Memory DB (In-Memory DB) is a fully managed key-value, in-memory data structure store based on Valkey and compatible with the Redis® OSS API. Data is held in RAM instead of on disk, so it is available with minimal latency. IONOS CLOUD provisions the instance on your private LAN, patches and upgrades it during maintenance, and takes automatic backups, so you can use the same code, applications, and tools you already use.

Quick Facts

Aspect Details
Type Fully managed in-memory key-value data structure store (DBaaS)
Engine Valkey (supported versions 9, 8.1, 8); compatible with the Redis OSS API
API version v2 (2.0.0)
Locations Berlin (de-txl), Frankfurt (de-fra), Paris (fr-par), Logroño (es-vit), London (gb-lhr), Worcester (gb-bhx), Las Vegas (us-las), Lenexa (us-mci), Newark (us-ewr)
Nodes per cluster 1 to 5 (one primary node plus secondary nodes)
Storage Derived from RAM and persistence mode (see table below); minimum 10 GB per node; cannot be downsized; Performance only
Persistence modes None (default), AOF, RDB, RDB_AOF
Eviction policies noeviction, allkeys-lru (default), allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl
Replication modes Asynchronous (the only mode, not configurable)
Default port 6379
Encryption in transit TLS when the instance is set up to use it; certificates issued by Let's Encrypt
Network Private LAN only; one network connection per cluster
Snapshot retention 1 to 365 days, default 7
Maintenance window Weekly, 4-hour window (day of the week + start time in UTC)
Uptime SLA 99.95%
Cluster states PROVISIONING, AVAILABLE, UPDATING, DESTROYING, FAILED

Provisioned Block Storage by Persistence Mode

The RAM in this table refers to the Dedicated Core RAM. The total RAM is also determined by the number of nodes in your cluster.

Data Persistence Storage
None 1 x RAM
RDB 2 x RAM
AOF 4 x RAM
RDB and AOF 8 x RAM

What You Can Do

Store and Serve Data Structures

Although technically a key-value store, In-Memory DB is also a data structure server. It supports strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams. You can use it as a data structure store, in-memory store, message broker, and streaming engine.

Run Lua Scripts

Upload and run Lua scripts on the In-Memory DB server. Scripts can use programmatic control structures and supported commands to access the instance during execution.

Note: You get access to all command categories except the "dangerous" category; INFO, KEYS and SORT remain available.

Choose Your Data Persistence

Pick one of the persistence modes (see Quick Facts) or combine RDB and AOF for durable storage. AOF logs every write operation to an append-only file, which In-Memory DB rewrites in the background to keep only the most recent data version. You cannot pick the Block Storage size yourself: it is calculated from RAM and the persistence mode (see Quick Facts).

Note: To keep your data safe during failures or maintenance, IONOS CLOUD strongly recommends configuring a persistence mode.

Control Memory Eviction

Set the eviction policy (see Quick Facts) that decides which keys are removed when the memory limit is reached.

Build for High Availability

A multi-node cluster has one primary node and one or more secondary nodes that replicate from it. Automatic failover is enabled by default: if the primary node fails, a replica is promoted to primary, and the old primary rejoins as a replica when it returns. Replication between the primary and secondary nodes is always asynchronous and not configurable.

Note: With asynchronous replication, data committed on the primary but not yet replicated can be lost during a failover.

Scale Horizontally

Increase or decrease the number of nodes in a cluster. Adding nodes causes no disruption; removing nodes may cause a switchover if the current primary node is removed. Horizontal scaling provides high availability. It does not increase performance.

Scale Vertically

Change the number of cores and the memory size per node. Nodes are turned off to be modified. In a multi-node cluster the secondary nodes are modified first, so downtime is minimal. A single-node instance is modified in place, so expect downtime while its VM restarts. Connected applications lose their connection and ongoing queries are aborted, so scale outside peak hours.

Note: Storage size can be increased on the fly with no disruption.

Manage Snapshots and Restores

Configure snapshots through the cluster's snapshot property: the Object Storage location, a retentionDays value, and snapshotHours (the UTC hours at which scheduled snapshots are taken). Use GET /snapshot-locations to list valid storage locations. Restore is inline: include restoreFromSnapshot with a sourceSnapshotId in POST /clusters to create a new cluster from a snapshot, or in PUT /clusters/{clusterId} to overwrite an existing cluster's data in place.

Note: Only snapshots from clusters in the same region can be restored, and an in-place restore may cause a brief downtime.

Manage Users and Credentials

Credentials live in the cluster's credentials property. A PUT request that includes them creates the user if it does not exist, or updates its password if it does; omitting them leaves them unchanged. Passwords are sent pre-hashed as SHA-256 (a 64-character lowercase hexadecimal string). Base64-encoded hashes are not accepted.

Automate with the v2 API

PUT /clusters/{clusterId} is an idempotent "Ensure" operation: it creates the cluster or updates it to match the payload. Fields omitted from the request are filled with defaults, not kept from the previous configuration. Listing endpoints support offset and limit pagination (maximum 1000 per page), and the v2 API adds dedicated Versions and SnapshotLocations endpoints and built-in observability controls (logs and metrics).

Best For

Scenario Why It Fits
Real-time analytics Stores and analyzes streaming data with sub-millisecond latency
Online advertising campaigns Fast data processing for campaign data that must be read and updated quickly
Database caching Serves frequently accessed data that rarely changes, cutting queries and load on your primary database
API acceleration Acts as an in-memory data layer that speeds up API response times
Message brokering and streaming Built-in support for streams and use as a message broker

Key Considerations

Billing & Costs

  • Main billing: CPU cores and RAM per hour; Performance storage and backup storage per GB per 30 days
  • Example (EUR price list):
Core Price per hour Price group
1 0,06 € PG H
RAM Price per hour Price group
1 GB 0,007 € PG H
Storage Price per 30 days Price group
1 GB Performance 0,15 € PG C2
1 GB Backup 0,007 € PG C1
  • Storage cost driver: Storage is provisioned from RAM and the persistence mode, so a higher persistence multiplier raises the storage bill
  • Cost estimate: The DCD shows an estimated price when you create a cluster; the estimate excludes traffic and backup
  • SLA credits: If uptime falls below the SLA (see Quick Facts), service credits of 5%, 10%, 25% or 40% of the monthly bill apply, depending on the uptime reached

Limitations

  • A cluster has between 1 and 5 instances
  • Total CPU cores and RAM depend on your contract quota, and a single instance cannot exceed 62 cores and 240 GB RAM; CPU, RAM, storage and the number of instances count against quotas
  • Storage can only grow: you cannot reduce its size or change the storage type
  • A single-node instance is a single point of failure; it temporarily gains a second node when the old node must be replaced during maintenance
  • Only minor version upgrades are supported; they run in the maintenance window and can cause brief connection interruptions
  • Disaster recovery through automated backups works only if a persistence mode is configured
  • Sentinel is not supported
  • No IP address management: you choose the cluster's IP address in your LAN's subnet (with DHCP, use the subnet IONOS CLOUD assigns)
  • These IP ranges cannot be used: 10.208.0.0/12, 10.233.0.0/18, 192.168.230.0/24, 10.233.64.0/18

Management Options

  • DCD: Menu > Databases > In-Memory DB
  • In-Memory DB v2 Cloud API: REST over HTTPS with API token authentication; users need the "Access and manage DBaaS" privilege
  • Go SDK and Ansible
  • Terraform: ionoscloud_inmemorydb_cluster_v2