When Theo says "put it in the KV", what is the KV?

I was watching one of Theo's videos on YouTube and he said something like "and then I'll just put it in the KV". I want a KV. Do you know what he uses? Is there a built in Next.js solution or is it Redis or something?
3 Replies
Rivenris
Rivenris4w ago
KV means Key-Value, and in context of his video it is literally Key-Value store. Any KV store that is quick to access and persistable would fit what theo is doing with stripe. I mentioned persistence, because otherwise the data will need to be refetched upon restart, which may not be preferable. For example: - It can be Redis with persisted data, - it can be Cloudflare KV, - it can be a database table that is indexed by column key and allows any string in value, You can use Redis for it, just remember that sometimes data in KV needs to be persisted, and redis is often used as "cache that will be cleared upon restart". Cloudflare KV is a bit slower, but still can be used. There is a bunch of KV solutions laying around, but most people would probably choose either redis, DB, Cloudflare KV, simple write-to-file solution or even keep data in memory and don't persist it.
omnicoder
omnicoder4w ago
When you are doing Auth you have to keep track of your keys (refresh and private). These need to be out of the reach of the "common folk". Many DevOps services have their name for the KV. AWS calls it Key Management Service (KMS), Google calls it Cloud Key Management Service (Cloud KMS), and Microsoft calls it (Azure Key Vault). You can also use a KV to store private application data.
Rivenris
Rivenris4w ago
@omnicoder What you are refering to are not exactly KV services. Those are all services oriented around encryption keys, storing secured and encrypted data etc. It's hardly a classical Key-Value store

Did you find this page helpful?