-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add a Local CID Database for IPFS #1944
Comments
How does this work in multi-node environment like Kubernetes? |
The local database solution does have some limitations. How about using IPFS's MFS (Mutable File System)? We can organize the image files in a MFS directory structured by the image reference as the path. This way, we can query the image content using this path. I conducted a simple experiment by modifying the push functionality under the ipfs/ directory. After pushing the content using the aforementioned method, I obtained the following results:
With this setup, we can use the relevant IPFS get APIs to download the image just like we would with a conventional image registry. @ktock |
This is the draft version: |
When the local MFS is updated, the updated information can be synchronized to other nodes using the |
Hi,
In relation to IPFS, as described in the documentation here, when users upload an image using the ctr-remote i ipfs-push command, they receive a CID (Content Identifier). Currently, users are required to manually record this CID for future image pulls.
I was wondering if we can add a local database for IPFS that stores the Image Reference as the key and the corresponding CID as the value whenever an ipfs-push operation is performed. Subsequent IPFS operations would then prioritize looking up this database, simplifying the user experience.
I would be happy to implement this feature.
Best regards,
abush wang
The text was updated successfully, but these errors were encountered: