Comment by bobkb

2 hours ago

Wow!

I have a stupid question - as I understand NATS works very well as a “message” pipe/bus. Anyway to get Redis type cache functionality as well ? Is it something possible ?

JetStream (not NATS) has a built-in key/value store. Relevant thread (old, from 2023): https://github.com/nats-io/nats.go/discussions/1507

someone did some benchmarks in 2025:

    nats bench kv put --size="128" --msgs 1000000 --storage file
    1m3s → Pub stats: 15,656 msgs/sec ~ 1.91 MB/sec
    
    nats bench kv get --size="128" --msgs 1000000
    59s → Sub stats: 16,720 msgs/sec ~ 2.04 MB/sec

I have personally not used this though.