Skip to content

SeaWave

SeaWave is an embedded key-value store with a Redis-compatible (RESP) endpoint, built as an in-process library. It backs Spring Session in every service and holds Redfly’s revocation deny-list and rate-limit counters, replicating between peers so sessions survive a replica change.

SeaWave logo

What SeaWave is

An in-process, in-memory key-value store that speaks RESP2/RESP3, so Spring Session (Redis) and other Redis clients can use it unchanged.

How it benefits you

No separate Redis to run, and no sticky sessions at the ingress: users stay signed in as requests move between replicas.

How it works

Each write is applied locally and sent asynchronously to peers found through SunLink, resolving conflicts last-writer-wins on a hybrid logical clock.

Redis-compatible, in-process

SeaWave runs its own RESP2/RESP3 server on 127.0.0.1:6379, backed by a concurrent in-memory map with per-key TTL.

  • Spring Session data Redis works against it without changes.
  • Unsupported commands return ERR unknown command.

Peer replication

Every write is applied locally and sent asynchronously to all peers on port 7481 over mTLS. Peers come from SunLink membership.

  • Conflicts resolve last-writer-wins on a hybrid logical clock.
  • A joining peer copies a snapshot from one peer before it serves requests.

Predictable memory use

Keys expire by TTL. Above maxMemoryBytes (256 MB by default), SeaWave evicts the least recently used keys that have a TTL.

  • Keys without a TTL are never evicted; writes fail with OOM instead.

The commands that matter

Strings and keys, hashes, sets, sorted sets, pub/sub with keyspace expiry notifications, and the connection commands Spring Session needs.

Deliberately memory-only

There is no disk persistence. If the whole replica set restarts, users simply sign in again with Redfly.

Get SeaWave

Source code, compiled builds are on the Downloads page.