Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
storage documentation / advice #248
This is semi-related to #246 about stabilizing more file operations.
I've tried to look at other open-source Blockstack apps. Beacon seems to be in its early development or at least its changes are not public. Guild seems to be saving all the data in one file and iterating to find that of the correct user data (see here for source), but, unless I'm misunderstanding how storage works, this doesn't seem like an approach that will scale well.
I'll hack together an approach in the meantime but would prefer to know the proper way of handling storage. Thanks!
@alidcastano Hey thanks for starting this issue.
Can you explain what you mean by "access user specific data"? Do you mean that you have a central server and you want the locally stored data to be relayed back to your central server? Or do you mean that you have user A's data that needs to be seen by user B?
Regarding "access data for all users", can you elaborate on your use case? For fully decentralized apps this isn't possible because there is no central server or "mothership". That said, you can always include a call where user data is copied and synced to a central server. Highly depends on what you're trying to do.
Our ideal model for applications here is that we can eliminate the need for central servers at all. So apps like marketplaces and social networks need to be rethought. Very different approach and very different way of thinking.
Would love to know what app you're building. Happy to provide further guidance.
@shea256 Thanks for the quick response.
Based on your response, I likely need to rethink my approach which is anchored on a central server way of thinking about storage.
I'm experimenting with a social note-taking app. The closest equivalent would be Quizlet.
So the basic functionality would be:
What's the recommended way of handling this via only
Related question: so when you do