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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cloudflare Workers #155

Closed
AdiRishi opened this issue Mar 21, 2023 · 7 comments
Closed

Support Cloudflare Workers #155

AdiRishi opened this issue Mar 21, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@AdiRishi
Copy link

馃殌 Feature Proposal - Add support for the Cloudflare Ecosystem

Make the necessary changes that will allow this server to be hosted on Cloudflare Workers and backed by Cloudflare R2 storage.

Motivation

Cloudflare workers are far more cost efficient and performant than the other serverless environments that currently exist.
The option to deploy in the cloudflare ecosystem would also allow make it more performant to use Cloudflare R2 instead of Amazon S3. This is beneficial as R2 does not incur egress network costs.


I know that this may require a significant re-write, or switching to a server framework that runs on all environments, but it may be worth it to make this project the defacto option for anyone wanting to run a remote cache for Turborepo.

@fox1t fox1t added the enhancement New feature or request label Mar 21, 2023
@fox1t
Copy link
Collaborator

fox1t commented Mar 25, 2023

Reference: https://blog.cloudflare.com/workers-node-js-asynclocalstorage/

We should add a CI step that tries to run turborepo-remote-cache on a Cloudflare worker to check the compatibility over time. @matteovivona

@AdiRishi
Copy link
Author

AdiRishi commented May 2, 2023

I'm happy to withdraw this issue from my end. I've managed to setup my own custom remote cache for Cloudflare.
Thanks for looking into potential support :)

@AdiRishi AdiRishi closed this as completed May 2, 2023
@warflash
Copy link
Contributor

@AdiRishi Did you open source the cloudflare implementation? I think a turborepo r2/workers cache would be really interesting but couldn't find much on that matter yet

@AdiRishi
Copy link
Author

AdiRishi commented Jan 11, 2024

@AdiRishi Did you open source the cloudflare implementation? I think a turborepo r2/workers cache would be really interesting but couldn't find much on that matter yet

@warflash yes I did 馃槃 - https://github.com/AdiRishi/turborepo-remote-cache-cloudflare

@warflash
Copy link
Contributor

Damn that was one hell of a quick response, appreciate that. Will look into that 馃憖

@fox1t
Copy link
Collaborator

fox1t commented Jan 11, 2024

@AdiRishi, this is amazing! Would you like to have a quick chat about scripts remote-caching? We want to evolve our implementation, and we might join forces :)

@AdiRishi
Copy link
Author

@fox1t for sure, I'd love to chat. I'll reach out to you on Twitter/X.

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

No branches or pull requests

3 participants