anomaly / anomaly/gallagher

Either memoize responses of use a caching library (like `hisel`) to boost performance

Open
#14 1 comment 0 reactions 1 assignee Claimed by @devraj View on GitHub
Dominant language
Python
Stars
17
Forks
2
PR merge metrics
No merged PRs in 30d

Description

See also [hisel](https://github.com/karpetrosyan/hishel) built on top of `httpx` for caching responses. This might be more apt? https://github.com/karpetrosyan/hishel

---

While implementing a solution for #5 and #8 which both depend on discover of the API endpoints and thus a performance hit on calling the API endpoints unnecessarily, I implement a memoized property for the API endpoint discovery.

This lead me to think if this would be helpful in REST client being able to cache information. To implement this truthfully we would have to:

- Check if the command centre is able to provide information i.e Etag or the likes to denote if the cache is stable
- Outline an appropriate caching technique either in memory or writing to disk (the later can be more complicated than we need to)
- How this might effect something like #9

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.