-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Feature] Built-in S3 support #27840
Comments
I think that is weird for a JavaScript runtime to maintain this code. |
Yeah, I also think it's weird for a js runtime, but both Deno and Bun are trying to become not only a JS runtime, but a all-in-one toolchain, right? Also, in another issue I mentioned that Deno is somehow super slow with |
I agree the reason it feels right is what bun says in their docs "S3 is the de facto standard internet filesystem" |
An all-in-one toolchain is a little different than an all-in-one runtime. An issue with adding stuff like this into the runtime is it means all applications have a dependency on the code instead of just the ones that need it. It would cause the executable produced by Another huge issue is the dependency can no longer be upgraded and managed independently of the runtime because it's built-in—in my opinion, it's a huge long term mistake to couple everything together... independent version management that libraries provide is a huge feature. Library authors being able to break APIs by increasing a major version number helps modernize and improve APIs over time and being able to stay on an old version of an API is extremely valuable. Imagine if Node had built-in all these APIs before template literals, async/await, and explicit resource managment were around? We'd be stuck with non-modern APIs built-in. Who knows what the future holds.
I feel like it's better long term to invest time into identifying why certain libraries might be slow and innovating on low level stable primitives that enable library authors to achieve better performance. For example, in this case that will be possible to fix with this landing: hyperium/hyper#3818 -- should be in Deno by next week. |
Okay but what about the argument of these two being de facto standards? |
I wonder how Bun plans to deal with dependency and breaking API change problem. I believe S3 is stable enough though. |
Since you say it is the de facto standard, why not encourage WinterTC to make it the official standard? |
I dont think that's needed, it's okay being the de facto standard for now |
After all, since the details of S3 are hidden by the cloud vendors, it makes the most sense to use the SDKs they provide directly to access its detailed functions. |
Built-in S3 API is supported in bun 1.2
https://bun.sh/docs/api/s3
It would be nice if a similar API can be implemented in Deno.
The text was updated successfully, but these errors were encountered: