Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merge with zio-cache #378

Closed
regiskuckaertz opened this issue Nov 5, 2022 · 2 comments
Closed

Merge with zio-cache #378

regiskuckaertz opened this issue Nov 5, 2022 · 2 comments

Comments

@regiskuckaertz
Copy link
Member

zio-cache and zio-query are a match made in heaven. With zio-query, you get the pipelining and batching but the cache is recreated on every run and has no eviction strategy. With zio-cache, you get all these good things but there is no batching.

Is there a world where we could give run a Cache[k, e, v] that would cross execution boundaries? It would be especially useful in streaming pipelines where you want to mapM each element by pulling data from another service.

@adamgfraser
Copy link
Contributor

You can actually already share a cache across execution boundaries using Query#runCache.

@regiskuckaertz
Copy link
Member Author

Ha thank you, I had missed that. There is so much overlap between the two, it still feels like there is an opportunity there, though zio-cache seems more like an aspect you would put over a DataSource.

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

No branches or pull requests

2 participants