Skip to content

Caching

Background

Feedback-Fusion is able to cache often used data, which is espacially used on public endpoints (the endpoints where the clients send their feedback to).

The cached data persists of different database requests required to process a single prompt response. Utilizing this cache functionality we can provide a slightly better performance under load as we do not need that much database requests.

Caching variants

Feedback fusion supports 2 types of caching:

  • Memory caching: the entire cache is hold in the server memory, therefore we cant work with multiple server instances here
  • Distributed caching: here we utilize the speed of the Skytable Database. The Skytable database stores all of our cache data and all instances can update / refresh this cache at all time.

Configuration

Memory

If you use the default provided image it is automatically enabled.

Skytable

Prerequisites

Values

yaml
cache:
  skytable:
    host: "skytable.example.com"
    port: 2003
    certificate: |
      -----BEGIN CERTIFICATE-----
      MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
      -----END CERTIFICATE-----
    username: "skytable_user"
    password: "skytable_password"
    space: "cache"
    model: "feedbackfusion"
Reference
ParameterDescriptionDefaultData Type
hostHostname of the Skytable serverN/AString
portPort of the Skytable server2003Integer
certificatePEM certificate for SkytableN/AString
usernameUsername for Skytable authenticationN/AString
passwordPassword for Skytable authenticationN/AString
spaceSkytable space to use"cache"String
modelSkytable model to use"feedbackfusion"String