JetStream KV: A fascinating alternative to Redis...
ฝัง
- เผยแพร่เมื่อ 16 ก.ค. 2024
- Continuing his series on JetStream, Jeremy dives into the details of how NATS JetStream's Key/Value buckets work, and showcases how easy it is to move and replicate data without having to change your applications.
00:00 - Intro
00:53 - Like and subscribe
01:10 - What is JetStream KV?
06:27 - Redis Comparison
08:30 - Configuration Options
09:15 - Put Command
10:20 - Get Command
10:45 - Create Command
11:29 - Update Command
12:50 - Delete Command
13:29 - Purge Command
14:08 - Watching for Changes
16:43 - Replication
17:39 - Mirroring
19:16 - Sourcing: Demux
20:32 - Sourcing: Mux
21:42 - Upcoming Features
24:29 - Example: Moving and Mirroring across clusters
27:45 - Example: Leader election
34:37 - Conclusion
Source code and text tutorial available here:
github.com/synadia-io/rethink...
Don't want to host NATS yourself? Sign up for Synadia Cloud for free: cloud.synadia.com/
NATS is a connective technology powering modern distributed systems, unifying Cloud, On-Premise, Edge, and IoT.
Join the NATS Community on Slack: slack.nats.io
Learn More about NATS at docs.nats.io/ - วิทยาศาสตร์และเทคโนโลยี
This series is amazing! Thank you sooo much! 🙏
Thanks for watching! Glad you got value out of it!
Great content! Just what I needed for my ongoing KV implementation 🤯
Keep the good work! Can’t wait to see the KV updates 🤩
Curious, why would you use this over Redis?
oh! so great. waiting for 2.11 too :)
2.11 will be game changing
Great, I am really looking for the upcoming feature: counter, list and batch Get...
I'm really excited about nats and I'm looking to implement it. Looks like a good replacement for redis/etcd/kafta/etc. but what about secrets? anything in nats/js to rival vault? I think managing encryption keys with vault and encrypting streams might be best practice for high security environments.
noice
In the mirroring example, are those single nodes or clusters in each location? Could you mirror a cluster so that there's a read-only mirrored cluster with delegated writes to the primary cluster?
Is there a feasible reason for getting a deleted event if I do a remove for a not existent key?
Can you please explain how to setup an editor like yours. Is it vim? But my vim does not have autocomplete. More info please. Thanks in advance
Great content!
How distributed could a NATS system be? Would it be possible to have 1000 edge nodes and a few (3-9) central, replicated clusters with a kind of star relationship between edge nodes and the central clusters? Where can I read up on such a concept?
I think leaf nodes are what you're looking for. There's a great video in the channel for it
Great video! Can JetStream be used for blockchain networks?
Yup! Lots of folks use NATS for a higher layer network for blockchain
Hi, can you provide the NATS CLI benchmark commands for a KV like described in 07:00 i.e. with 50 Writer (--pub 50)
Check out the `--kv` flag in the `nats bench` command
@@SynadiaCommunications hi, sure checked the flag, but it’s undocumented
The logo of Synadia is also the logo used by Shazam, owned by Apple.
Shazam has more rounded caps on the shapes in their logo.
I used KV for leader election, it worked great, I was able to get the leaders and followers attempting to take leadership every 1.2 seconds.
No lists, no sets, no ttls. Is this really a redis alternative?
All coming in the next version of NATS server!