-
Notifications
You must be signed in to change notification settings - Fork 7
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
Persist data on our Backend IO Apps (graphql or node API) #19
Comments
@saviofelixmuniz has solid plans on doing a default MasterData client to be exported from |
@luciannojunior Redis is still better than MD for caching key-value based values. But for all other cases this would make MD way better than VBase for persisting data |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Is this topic really related to js-standards? |
@marcosvcp No, but I think the original idea were also about patterns that the frontend teams would follow on their products, including on the graphql stack, right @kaisermann ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
What is to be discussed?
For GET request, should we only use the HTTP Cache-control headers and trust the browser?
For caching values, should we use Master Data, VBase that comes with IO, or In-memory DataStores like our Redis clusters?
For persisting values that we would like to retrieve after should we use Master Data, VBase that comes with IO or our Redis clusters?
Describe the solution you'd like
It depends on each case.
If to assemble the response is fast enough, don't even persist or cache anything.
HTTP Cache-control is good enough for resources that don't change based on the url (not suited for graphql) and which is fast enough to assemble the response.
Redis is more suitable for caching instead of persisting values and is faster than persist on VBase, but I've never used on a IO App because it wasn't possible when I wanted (but if it makes sense to be a pattern, we should demand it)
VBase is good enough when you want to store data based on key / value
Master Data is more suitable for complex data with relations that you want to do a search and bring related data
The text was updated successfully, but these errors were encountered: