From 8731609911fd304163ebe20b6599ff4fcf2b0d8e Mon Sep 17 00:00:00 2001 From: nm17 Date: Sun, 25 Feb 2024 22:28:18 +0400 Subject: [PATCH] docs: add kv db architecture notes --- docs/kv_db_arch.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/kv_db_arch.md diff --git a/docs/kv_db_arch.md b/docs/kv_db_arch.md new file mode 100644 index 0000000..c468b02 --- /dev/null +++ b/docs/kv_db_arch.md @@ -0,0 +1,13 @@ +# Архитектура KV DB (Dragonfly) + + - `apikey_{apikey}` + - Поля + - `owner` + - Имеет время окончания + - `devices_{device_id}` + - Поля + - Вся информация о девайсе + - `devices_{device_id}_{tai_timestamp}_{sensor_id}` + - Поля + - `value` + - `unit`