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

discuss: Add foyer-opendal as new device or storage #686

Open
Xuanwo opened this issue Sep 5, 2024 · 3 comments
Open

discuss: Add foyer-opendal as new device or storage #686

Xuanwo opened this issue Sep 5, 2024 · 3 comments
Labels
feature New feature or request

Comments

@Xuanwo
Copy link
Contributor

Xuanwo commented Sep 5, 2024

Hi, thank you very much for the excellent foyer library! I'm starting this discussion to explore the idea of adding foyer-opendal as a new device or storage option.

Possible services that could be used:

  • monoiofs
  • redis
  • other in-memory caches like moka
@MrCroxx
Copy link
Collaborator

MrCroxx commented Sep 5, 2024

Hi @Xuanwo , thanks for following!

TBH, I've been considering integrating with opendal for a long time. I've tried once but was interrupted by other high-priority work.

About the idea, IIUC, foyer is supposed to be a cache layer for opendal, instead of using opendal as a device (storage layer) in foyer, because foyer is used to reduce remote storage access overhead and optimize io with special features of fs/block over disk. Do you agree with it or have I missed something?

@MrCroxx MrCroxx added the feature New feature or request label Sep 5, 2024
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Sep 5, 2024

Thanks a lot for the quick feedback.

About the idea, IIUC, foyer is supposed to be a cache layer for opendal, instead of using opendal as a device (storage layer) in foyer, because foyer is used to reduce remote storage access overhead and optimize io with special features of fs/block over disk. Do you agree with it or have I missed something?

Your understanding is correct but incomplete.

This can work both ways: Foyer can serve as OpenDAL's cache layer, optimizing the performance of reading data from slow storage like S3. At the same time, OpenDAL can serve as Foyer's device (or other appropriate abstraction), reducing overhead by storing data in other existing storage services like Redis, Moka, or Memcached.

@batmilkyway
Copy link

I use opendal in my python project, having foyer's cache and hybridcache as options for object store caching would be very nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants