- 09 May 2025
-
DarkLight
-
PDF
Store Backend
- Updated on 09 May 2025
-
DarkLight
-
PDF
The store
package provides persistent data storage through a backend interface. Gateway uses stores as key/value databases to persistently save objects.
Gateway supports three types of store backends: local
, memory
, and etcd
. The default backend is local
.
Configuring the store backend type
You can configure the store backend type by setting the GATEWAY_STORE_BACKEND
variable to either local
, memory
, or etcd
.
Local
The local
backend stores data on disk in a single file.
The default file name for the local backend is GATEWAY_APPLICATION_WORKING_DIR/gateway.db
.
Memory
The memory
backend stores data in memory using a hashmap
.
Data is not persistent between restarts.
Etcd
You can configure an etcd
store with additional connection variables to connect to an etcd
storage backend.
You must use an etcd
store when running gateway with runners.
For more information about configuring an etcd
cluster, see Etcd Database