p7-projekt / api-backend

Backend API
MIT License
0 stars 0 forks source link

[REQUEST] - Caching #20

Open KristianS93 opened 1 month ago

KristianS93 commented 1 month ago

Reference Issues

No response

Summary

An idea could be do cache the exercise endpoints specifically since we can assume the multiple students will access the same exercises, no reason to query the database at every request.

Im guessing there exist some standard ways to do this.

Basic Example

The endpoint will cache exercise endpoints and use a LRU implemention.

Drawbacks

Overkill ?

Unresolved questions

No response

KristianS93 commented 1 month ago

In-Memory Caching