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

data fetching with indexDb #4

Open
dhirjgupta opened this issue Sep 22, 2021 · 0 comments
Open

data fetching with indexDb #4

dhirjgupta opened this issue Sep 22, 2021 · 0 comments

Comments

@dhirjgupta
Copy link

What would be the best way to structure a machine focused solely on data-fetching / storage with IndexDb?

I have an api machine, which is responsible for communicating with the serve api. It has a variety of gql (or rest) queries that it can make, in response to a request event. It checks indexdb to see if it already has the data. If not, it fetches it and stores it, and then responds with the data.

The hope is that all this would take place in a web worker, so if I need to fetch some massive data-sets, its not using the main thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant