# Using dict as production key-value store

**URL:** <https://discuss.python.org/t/using-dict-as-production-key-value-store/12929>\
**Category:** Python Help\
**Created:** [January 6, 2022, 10:14am UTC](https://discuss.python.org/t/using-dict-as-production-key-value-store/12929 "2022-01-06T10:14:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TobiasHT](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tobiasht/32/23304_2.png) [@TobiasHT](https://discuss.python.org/u/TobiasHT)\
**Post date:** [January 6, 2022, 10:14am UTC](https://discuss.python.org/t/using-dict-as-production-key-value-store/12929/1 "2022-01-06T10:14:10Z")

</div>

I’m yet to carry out some tests, but I wanted to first approach someone who has thought of this before and was curious enough to test the idea.

Is it possible for the Python dictionary to be used as a production grade key-value store such as redis or any other key-value store on the market?

---

<div class="post-metadata">

**Author:** ![kpfleming](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/kpfleming/32/2761_2.png) [@kpfleming](https://discuss.python.org/u/kpfleming)\
**Post date:** [January 6, 2022, 12:37pm UTC](https://discuss.python.org/t/using-dict-as-production-key-value-store/12929/2 "2022-01-06T12:37:00Z")

</div>

I think the simple answer is ‘no’. 🙂

The less-simple answer depends a great deal on what **you** mean by ‘production grade key-value store’.

---

<div class="post-metadata">

**Author:** ![TobiasHT](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tobiasht/32/23304_2.png) [@TobiasHT](https://discuss.python.org/u/TobiasHT)\
**Post date:** [January 6, 2022, 12:40pm UTC](https://discuss.python.org/t/using-dict-as-production-key-value-store/12929/3 "2022-01-06T12:40:01Z")

</div>

Something like redis perhaps 🤷🏾‍♂️.  
I guess I’ll go with redis-py. Though I’mma try testing out the Python dictionary and see if it can handle what redis can. Perhaps also see if it can be extended.

---

<div class="post-metadata">

**Author:** ![kpfleming](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/kpfleming/32/2761_2.png) [@kpfleming](https://discuss.python.org/u/kpfleming)\
**Post date:** [January 6, 2022, 7:49pm UTC](https://discuss.python.org/t/using-dict-as-production-key-value-store/12929/4 "2022-01-06T19:49:35Z")

</div>

It’s very possible that you are comparing things that aren’t really comparable.

First, are you considering a local (one machine only) instance of Redis, without any plugins or additional modules, and with the data being held only in memory?
