# NATS global cluster with KV store is almost ready

**URL:** <https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844>\
**Category:** General\
**Created:** [October 14, 2021, 2:20pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844 "2021-10-14T14:20:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gedw99](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/gedw99/32/1287_2.png) [@gedw99](https://community.fly.io/u/gedw99)\
**Post date:** [October 14, 2021, 2:20pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/1 "2021-10-14T14:20:23Z")

</div>

The NATS Team now have added a KV store that is part of JetStream itself !

So you get a global clustered fault tolerant KV store for free.

blog post: [JetStream for Key-Value Store Tech Preview | NATS blog](https://nats.io/blog/kv-cli/)

spec: [nats-architecture-and-design/adr/ADR-8.md at main · nats-io/nats-architecture-and-design · GitHub](https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-8.md)

Its still very new and so there is no release yet, but you can pay with it via the source code:

> **[GitHub - nats-io/natscli: The NATS Command Line Interface](https://github.com/nats-io/natscli)**
>
> The NATS Command Line Interface. Contribute to nats-io/natscli development by creating an account on GitHub.

You could use this for Discovery / Registry where as Services boot up they register with the global KV store, or as a cache replacement for data or even images.

Curious what people think.

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [October 14, 2021, 4:53pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/2 "2021-10-14T16:53:36Z")

</div>

Oh this is clever!

We haven’t done anything with JetStream yet because we’re moving away from client/server infrastructure models. Do you know if it’s possible to run in multiple regions?

---

<div class="post-metadata">

**Author:** ![gedw99](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/gedw99/32/1287_2.png) [@gedw99](https://community.fly.io/u/gedw99)\
**Post date:** [October 14, 2021, 4:59pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/3 "2021-10-14T16:59:52Z")

</div>

hey @kurt

Yeah i guess, from the NATS Team point of view, once you have all the other properties that Jetstream has, doing a global KV that competes with Redis is kind of easy peasy then. All the hard work is now paying off to to speak for them.

The NATS Cli and NATS Server has all the goodies in them for it. I think they are working on the NATS golang client as we speak…

Regions should work since it is designed for clusters and superclusters ( leaf nodes etc).  
I am still playing around with it though and cant confirm fully yet.

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [October 14, 2021, 5:02pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/4 "2021-10-14T17:02:47Z")

</div>

We actually use a super cluster for nats server. This is what you subscribe to for logs, for example. I don’t _think_ the super clusters work with JetStream yet, so let us know what you find. 🙂

---

<div class="post-metadata">

**Author:** ![gedw99](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/gedw99/32/1287_2.png) [@gedw99](https://community.fly.io/u/gedw99)\
**Post date:** [October 14, 2021, 5:04pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/5 "2021-10-14T17:04:47Z")

</div>

Yep will update stuff here…

Is holiday time here don’t expect rapid updates…

cheers

ged

---

<div class="post-metadata">

**Author:** ![brianflannery](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@brianflannery](https://community.fly.io/u/brianflannery)\
**Post date:** [October 14, 2021, 7:17pm UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/6 "2021-10-14T19:17:37Z")

</div>

Super clusters should work with JetStream 👍

---

<div class="post-metadata">

**Author:** ![gedw99](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/gedw99/32/1287_2.png) [@gedw99](https://community.fly.io/u/gedw99)\
**Post date:** [January 17, 2022, 8:37am UTC](https://community.fly.io/t/nats-global-cluster-with-kv-store-is-almost-ready/2844/7 "2022-01-17T08:37:29Z")

</div>

thanks @brianflannery Great to know as i need it for fly also.
