Store Backend
  • 29 Oct 2024
  • Dark
    Light
  • PDF

Store Backend

  • Dark
    Light
  • PDF

Article summary

The store package abstracts persistent data storage into the backend interface. Stores are key/value databases used to persistently store objects within gateway.

The store_backend can be configured using the GATEWAY_STORE_BACKEND
environment variable. The default is set to local.

Different store_backends are supported in the gateway; however, only one backend is in use at any given time.

Configuration

Store currently has one configuration variable of GATEWAY_STORE_BACKEND. This
variable can be set to either local, memory, or etcd.

For more information see → Store Variables

Local

The local backend is implemented as a key/value database on disk. It writes to a single file.

The default filename for the local backend is GATEWAY_APPLICATION_WORKING_DIR/gateway.db

Memory

The memory backend is implemented as a memory resident key/value database using a hashmap.

Etcd

And etcd store can be configured along with additional connection variables to connect to an etcd storage backend.

An etcd store is required when running gateway with runners.

For more on 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.