Comments (7)
Discussion created: #44
from apollo-datasource-http.
This is to be expected because we make use of two caches with different lifetimes. If you don't need it feel free to create a PR to make this optional.
from apollo-datasource-http.
That's the simplest implementation possible. I believe there might be better way of addressing the issue than simply on/off switch for the second key. I would be curious to see if anyone could come up with more optimised caching strategy.
from apollo-datasource-http.
Is there anything left here? You can create a discussion here https://github.com/StarpTech/apollo-datasource-http/discussions
from apollo-datasource-http.
Creating a discussion might be good idea, but I think it's worth adding a "disclaimer" informing devs that this implementation will double the amount of memory used for cache, as this is not that obvious atm.
from apollo-datasource-http.
This highly depends on the use case. I preferred high availability over space efficiency.
from apollo-datasource-http.
But to do that you need to start throwing more and more money to keep buy of the tier AWS machines for cache and crazy bandwidth, which ie. in our case is less than ideal :)
from apollo-datasource-http.
Related Issues (20)
- How to intercept HTTP request with jest? HOT 1
- requestCache.maxTtl unit HOT 1
- Make POST requests cacheable HOT 1
- `maxTtlIfError` behavior clarification. HOT 5
- Intended usage from resolver functions? HOT 3
- Request deduplication (memoization) does not occur across concurrently executing frames HOT 3
- Specific request configs don't override more general client configs.
- [QUESTION]: onRequest and query HOT 2
- Mocking of the comminucation HOT 2
- [Discussion] How to dedupe concurrent memoizable requests? HOT 5
- [Proposal]: Support caching responses without JSON.stringify HOT 1
- Error upon receiving a compressed response. HOT 6
- [Security] Upgrade Undici dependency to latest version
- [Proposal] Make the maxTtlIfError optional HOT 1
- FormData body is being coerced to JSON
- Handling application/vnd.api+json content type
- Connection pool cache
- Return response Headers in Apollo response
- Dynamic baseURL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-datasource-http.