key value store

940 views

Kubernetes uses ETCD as a key value store

Why in the first place Kubernetes cluster needs key-value store ? What’s the use case ?

In: Technology

2 Answers

Anonymous 0 Comments

Basically, when you write a conventional program, you can store variables and use them later. I can take a user’s name and age, store them in a variable, and use them later on.

In highly available redundant applications, you can’t store “stateful” data in variables. Other instances of the application also need to know this data. Instead, you use a key-value store backend to store this data. That way, any instance of your application that needs this data queries the store and gets it. The data store itself can implement concepts like redundancy and consistency within itself, which isn’t something that every application should have to implement internally.

You are viewing 1 out of 2 answers, click here to view all answers.