Store Backend
  • 09 May 2025
  • Dark
    Light
  • PDF

Store Backend

  • Dark
    Light
  • PDF

Article summary

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


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.