Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility of generating cache #112

Closed
avelino opened this issue Feb 23, 2017 · 2 comments · Fixed by #650
Closed

Possibility of generating cache #112

avelino opened this issue Feb 23, 2017 · 2 comments · Fixed by #650
Labels
feature New fetures product/api-server REST API Server

Comments

@avelino
Copy link
Member

avelino commented Feb 23, 2017

In some applications (or endpoint, depends on the use) cache is required to not be accessing the database (PostgreSQL) in every request.

by default it should be a key-value bank embedded inside prestd (no external dependencies) and support other external key-value banks with adapter architecture

Store key/value:

  • key: endpoint + query string (GET)
  • value: return body

configuration (TOML/ENV):

[cache]
time = 10M
store = bolt
sotrePath = "./"

sotrePath: native memory storage support (no path declaration required, :memory:)

Stores (adapters):

  • buntdb - we are not thinking about performance, but it should be faster than running a query in postgresql, (bolt deprecated)
  • badger
  • redis
  • memcached

Times:

  • S or s: second
  • M or m: minute
  • H or h: hour
  • D or d: day

If there is no cache in the configuration register (access the Bank in real time).

@tiaguinho
Copy link
Member

There is anybody working on this?

@fabriziomello
Copy link
Contributor

I'm just worried with invalidation mechanism. Query heavy update datasets can lead us to wrong results using just a timeout.

@avelino avelino added the product/api-server REST API Server label Aug 25, 2021
@avelino avelino added this to the API Server - v1.0.13 milestone Dec 14, 2021
@avelino avelino added feature New fetures and removed enhancement labels Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New fetures product/api-server REST API Server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants