News for hackers. Stuff that matters.
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @02:04AM (#40083852)
hey hn, supabase ceo here

For background: we have a storage product for large files (like photos, videos, etc). The storage paths are mapped into your Postgres database so that you can create per-user access rules (using Postgres RLS)

This update adds S3 compatibility, which means that you can use it with thousands of tools that already support the protocol.

I'm also pretty excited about the possibilities for data scientists/engineers. We can do neat things like dump postgres tables in to Storage (parquet) and you can connect DuckDB/Clickhouse directly to them. We have a few ideas that we'll experiment with to make this easy

Let us know if you have any questions - the engineers will also monitor the discussion

Re:Supabase Storage: now supports the S3 protocol by JoshTriplett on Friday April 19, 2024 @04:06AM (#40084418)
You specifically say "for large files". What's your bandwidth and latency like for small files (e.g. 20-20480 bytes), and how does it compare to raw S3's bandwidth and latency for small files?
Re:Supabase Storage: now supports the S3 protocol by egorr on Friday April 19, 2024 @04:21AM (#40084485)
hey, supabase engineer here; we didn’t check that out with files that small, but thanks for the idea, i will try it out

the only thing i can say related to the topic is that s3 multipart outperforms other methods for files larger than 50mb significantly, but tends to have similar or slightly slower speeds compared to s3 regular upload via supabase or simplest supabase storage upload for files with size about and less than 50mb.

s3-multipart is indeed the fastest way to upload file to supabase with speeds up to 100mb/s(115 even) for files>500mb. But for files about 5mb or less you are not going to need to change anything in your upload logic just for performance cause you won’t notice any difference probably

everything mentioned here is for upload only

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @04:20AM (#40084479)
You can think of the Storage product as an upload server that sits in front of S3.

Generally, you would want to place an upload server to accept uploads from your customers, that is because you want to do some sort of file validation, access control or anything else once the file is uploaded. The nice thing is that we run Storage within the same AWS network, so the upload latency is as small as it can be.

In terms of serving files, we provide a CDN out-of-the-box for any files that you upload to Storage, minimising latencies geographically

Re:Supabase Storage: now supports the S3 protocol by Rapzid on Friday April 19, 2024 @05:54AM (#40084895)
> Generally, you would want to place an upload server to accept uploads from your customers

A common pattern on AWS is to not handle the upload on your own servers. Checks are made ahead of time, conditions baked into the signed URL, and processing is handled after the fact via bucket events.

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @06:25AM (#40085054)
That is also a common pattern I agree, both ways are fine if the upload server is optimised accordingly :)
Re:Supabase Storage: now supports the S3 protocol by ovaistariq on Friday April 19, 2024 @11:05PM (#40094396)
S3 is not known for performing well with such small files. Is this primarily how your dataset on S3 looks like?
Re:Supabase Storage: now supports the S3 protocol by inian on Friday April 19, 2024 @02:37AM (#40083998)
Here is the example of the DuckDB querying parquet files directly from Storage because it supports the S3 protocol now - https://github.com/TylerHillery/supabase-storage-duckdb-demo

https://www.youtube.com/watch?v=diL00ZZ-q50

Re:Supabase Storage: now supports the S3 protocol by cmollis on Friday April 19, 2024 @09:57AM (#40086904)
Yes. Duckdb works very well with parquet scans on s3 right now.
Re:Supabase Storage: now supports the S3 protocol by iamcreasy on Saturday April 20, 2024 @11:41PM (#40103036)
Does it work well with Hive tables storing parquet files on s3?
Re:Supabase Storage: now supports the S3 protocol by jonplackett on Friday April 19, 2024 @02:49AM (#40084051)
Dear supabase. Please don’t get bought out by anyone and ruined. I’ve built too many websites with a supabase backend now to go back.
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @03:07AM (#40084140)
we don't have any plans to get bought.

we only have plans to keep pushing open standards/tools - hopefully we have enough of a track record here that it doesn't feel like lip service

Re:Supabase Storage: now supports the S3 protocol by robertlagrant on Friday April 19, 2024 @03:56AM (#40084371)
As long as you make it so if you do get bought a team of you can always fork and move on, it's about the best anyone can hope for.
Re:Supabase Storage: now supports the S3 protocol by jonplackett on Friday April 19, 2024 @05:00AM (#40084649)
Absolutely. I am so impressed with SB. It’s like you read my mind and then make what I’ll need before I realise.

(This is not a paid promotion)

Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @05:08AM (#40084687)
>like you read my mind

we receive a lot of community feedback and ultimately there are only a few "primitives" developers need to solve 90% of their problems

I think we're inching closer to the complete set of primitives which can be used to combine into second-order primitives (eg: queues/search/maps can all be "wrappers" around the primitives we already provide)

Re:Supabase Storage: now supports the S3 protocol by jonplackett on Friday April 19, 2024 @08:05AM (#40085752)
That's a neat way of thinking about it.

Thanks for an awesome product. Please also never get bought or make plans to in the future, or if you really, really, really have to then please not by google.

Re:Supabase Storage: now supports the S3 protocol by jerrygenser on Friday April 19, 2024 @06:42AM (#40085162)
I can believe there are no plans, right now. But having raised over $100mm, the VCs will want to liquidate their holdings eventually. They have to answer to their LPs after all, and be able to raise their next funds.

The primary options I can think of that are not full acquisition are: - company buys back stock - VC sells on secondary market - IPO

The much more common and more likely option for these VCs to make the multiple or home run on their return is going to be to 10x+ their money by having a first or second tier cloud provider buy you.

I think there's a 10% chance that a deal with Google is done in the future, so their portfolio has Firebase for NoSQL and Firebase for SQL.

Re:Supabase Storage: now supports the S3 protocol by jchanimal on Friday April 19, 2024 @08:57AM (#40086247)
Having founded a database company that IPO'd (Couchbase) and seeing the kinds of customer relationships Supabase is making, an IPO seems a reasonable outcome.
Re:Supabase Storage: now supports the S3 protocol by spxneo on Friday April 19, 2024 @12:53PM (#40089130)
well before there was supabase I would use Firebase

so it would serve Google well if they matched what supabase is doing or bought them out

Re:Supabase Storage: now supports the S3 protocol by mort96 on Friday April 19, 2024 @07:40AM (#40085551)
Is it even up to you? Isn't it up to your Board of Directors (i.e investors) in the end?
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @08:10AM (#40085784)
we (the founders) control the board
Re:Supabase Storage: now supports the S3 protocol by jacob_rezi on Friday April 19, 2024 @11:30AM (#40088080)
Who controls the board, controls the company
Re:Supabase Storage: now supports the S3 protocol by asciii on Sunday April 21, 2024 @12:19AM (#40103152)
the data must flow!
Re:Supabase Storage: now supports the S3 protocol by tap-snap-or-nap on Friday April 19, 2024 @08:55AM (#40086236)
plans*

*Subject to change

Re:Supabase Storage: now supports the S3 protocol by gherkinnn on Friday April 19, 2024 @05:06AM (#40084674)
This is my biggest reservation towards Supabase. Google bought Firebase in 2014. I've seen Vercel run Nextjs in to the ground and fuck up their pricing for some short-term gains. And Figma almost got bought by Adobe. I have a hard time trusting products with heavy VC backing.
Re:Supabase Storage: now supports the S3 protocol by MatthiasPortzel on Friday April 19, 2024 @07:45AM (#40085592)
I’m not defending Vercel or VC backed companies per se, but I don’t understand your comments towards Vercel. They still offer a generous hobby plan and Next.js is still actively maintained open source software that supports self-hosting.

Heroku might be a better example of a company that was acquired and the shut down their free plan.

Re:Supabase Storage: now supports the S3 protocol by theturtletalks on Friday April 19, 2024 @11:17AM (#40087891)
Supabase and Next.js are not the same. Supabase can be self-hosted but it’s not easy to do so and a lot of moving parts. Most of my Next.js apps are not even on Vercel. They can easily be deployed to Netlify, Railway, Render, etc.
Re:Supabase Storage: now supports the S3 protocol by ihateolives on Friday April 19, 2024 @11:57AM (#40088416)
Supabase self-hosting is not difficult, but it makes no sense since some important features are missing, like reports and multiple projects.
Re:Supabase Storage: now supports the S3 protocol by paradite on Friday April 19, 2024 @06:32AM (#40085088)
I think Vercel and Next.js are built by the same group of people, the same people who made Now.sh, started the company (Zeit), then changed product name to Now.sh, then changed company and product name to Vercel.
Re:Supabase Storage: now supports the S3 protocol by cqqxo4zV46cp on Friday April 19, 2024 @07:30AM (#40085473)
Yes. That doesn’t mean that they haven’t ran it into the ground.
Re:Supabase Storage: now supports the S3 protocol by paradite on Friday April 19, 2024 @09:00AM (#40086269)
Tell me about it.

My simple SSG Next.js static site loads much slower than my Jekyll site on GitHub pages.

And I can't figure out how to improve its speed or disable the "ISG" feature that I believe is to be blamed for the poor performance.

Re:Supabase Storage: now supports the S3 protocol by eropple on Friday April 19, 2024 @09:08AM (#40086351)
Not defending NextJS, I'm pretty out on it myself, but ISG requires a server to run. It pregenerates static content for defined pages and serves that until revalidating. If you've built a fully static bundle, nothing exists that would handle that incremental/revalidating logic.
Re:Supabase Storage: now supports the S3 protocol by paradite on Friday April 19, 2024 @11:12AM (#40087810)
I understand that ISG requires a server (Node.js runtime) to run it, that's why I want to disable it for my SSG Next.js static site, but I can't figure out how. I just want static hosting like S3+Cloudfront which is much faster.
Re:Supabase Storage: now supports the S3 protocol by theturtletalks on Friday April 19, 2024 @11:30AM (#40088076)
Re:Supabase Storage: now supports the S3 protocol by paradite on Friday April 19, 2024 @11:37AM (#40088160)
Cool, so that's what I was missing all along!

Unfortunately looks like I can't use it now since I am using `next-plausible` which does require a Node.js proxy...

Re:Supabase Storage: now supports the S3 protocol by spxneo on Friday April 19, 2024 @12:50PM (#40089083)
big reason on why I decided on Flutter
Re:Supabase Storage: now supports the S3 protocol by quest88 on Friday April 19, 2024 @10:21AM (#40087170)
What's the actual complaint here , other then company A buys company B.
Re:Supabase Storage: now supports the S3 protocol by spxneo on Friday April 19, 2024 @12:48PM (#40089049)
the only reason i am using supabase is that its cheap and i can export it to postgres, thats it.

i know that one day these founders will exit and it will be sold to AWS, Google or Microsoft cloud.

so its a bit of a gamble but that risk is offset by its super cheap cost and ability to export out the data and swap out the pieces (more work but at that point you should be cashflow positive to pay engineers to do it for you).

Re:Supabase Storage: now supports the S3 protocol by rrr_oh_man on Friday April 19, 2024 @12:20PM (#40088695)
Re:Supabase Storage: now supports the S3 protocol by spxneo on Friday April 19, 2024 @12:43PM (#40088990)
You know the whole point of YC companies is to flip their equity on the public market right and then moving on to the next one?
Re:Supabase Storage: now supports the S3 protocol by superb_dev on Friday April 19, 2024 @01:43PM (#40089818)
We know, but it screws over your existing customers when a very helpful tool is turned over to a greedy investment firm that’s gonna gut the product seeking the highest return
Re:Supabase Storage: now supports the S3 protocol by zackmorris on Friday April 19, 2024 @01:14PM (#40089415)
Firebase was such a terrible loss. I had been following it quite closely on its mailing list until the Google takeover, then it seemed like progress slowed to a halt. Also having big brother watching a common bootstrap framework's data like that, used by countless MVP apps, doesn't exactly inspire confidence, but that's of course why they bought it.

At the time, the most requested feature was a push notification mechanism, because implementing that on iOS had a steep learning curve and was not cross-platform. Then probably some more advanced rules to be able to do more functional-style permissions, possibly with variables, although they had just rolled out an upgraded rules syntax. And also having a symlink metaphor for nodes might have been nice, so that subtrees could reflect changes to others like a spreadsheet, for auto-normalization without duplicate logic. And they hadn't yet implemented an incremental/diff mechanism to only download what's needed at app startup, so larger databases could be slow to load. I don't remember if writes were durable enough to survive driving through a tunnel and relaunching the app while disconnected from the internet either. I'm going from memory and am surely forgetting something.

Does anyone know if any/all of the issues have been implemented/fixed yet? I'd bet money that the more obvious ones from a first-principles approach have not, because ensh!ttification. Nobody's at the wheel to implement these things, and of course there's no budget for them anyway, because the trillions of dollars go to bowing to advertisers or training AI or whatnot.

IMHO the one true mature web database will be distributed via something like Raft, have rich access rules, be log based with (at least) SQL/HTTP/JSON interfaces to the last-known state and access to the underlying sets selection/filtering/aggregation logic/language, support nested transactions or have all equivalent use-cases provided by atomic operations with examples, be fully indexed by default with no penalty for row or column based queries (to support both table and document-oriented patterns and even software transactional memories - STMs), have column and possibly even row views (not just table views), use a copy-on-write mechanism internally like Clojure's STM for mostly O(1) speed, be evented with smart merge conflicts to avoid excessive callbacks, preferable with a synchronized clock timestamp ordered lexicographically:

https://firebase.blog/posts/2015/02/the-2120-ways-to-ensure-...

I'm not even sure that the newest UUID formats get that right:

https://uuid6.github.io/uuid6-ietf-draft/

Loosely this next-gen web database would be ACID enough for business and realtime enough for gaming, probably through an immediate event callback for dead reckoning, with an optional "final" argument to know when the data has reached consensus and was committed, with visibility based on the rules system. Basically as fast as Redis but durable.

A runner up was the now (possibly) defunct RethinkDB. Also PouchDB/PouchBase, a web interface for CouchDB.

I haven't had time to play with Supabase yet, so any insights into whether it can do these things would be much appreciated!

Re:Supabase Storage: now supports the S3 protocol by hacker_88 on Friday April 19, 2024 @01:45PM (#40089844)
Wasn't there Parse from firebase
Re:Supabase Storage: now supports the S3 protocol by josephd79 on Saturday April 20, 2024 @05:55AM (#40096118)
Parse was bought by Facebook and not much longer shut it down right?
Re:Supabase Storage: now supports the S3 protocol by hacker_88 on Saturday April 20, 2024 @01:13PM (#40098841)
I am confused , there was also Fabric.io bought by Twitter and then put into Firebase by Google .
Re:Supabase Storage: now supports the S3 protocol by codextremist on Friday April 19, 2024 @05:44AM (#40084853)
Never used Supabase before but I'm very much comfortable with their underlying stack. I use a combination of postgres, PostgREST, PLv8 and Auth0 to achieve nearly the same thing.
Re:Supabase Storage: now supports the S3 protocol by pbronez on Friday April 19, 2024 @08:52AM (#40086198)
I was unfamiliar with PLv8, found this:

“”” PLV8 is a trusted Javascript language extension for PostgreSQL. It can be used for stored procedures, triggers, etc.

PLV8 works with most versions of Postgres, but works best with 13 and above, including 14, [15], and 16. “””

https://plv8.github.io/

Re:Supabase Storage: now supports the S3 protocol by foerster on Friday April 19, 2024 @08:35AM (#40086036)
I'm a bit terrified of this as well. I have built a profitable product on the platform, and it were to drastically change or go away, I'd be hosed.
Re:Supabase Storage: now supports the S3 protocol by nextaccountic on Friday April 19, 2024 @03:15AM (#40084178)
A question about implementation, is the data really stored in a Postgres database? Do you support transactional updates like atomically updating two files at once?

Is there a Postgres storage backend optimized for storing large files?

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @03:26AM (#40084228)
We do not store the files in Postgres, the files are stored in a managed S3 bucket.

We store the metadata of the objects and buckets in Postgres so that you can easily query it with SQL. You can also implement access control with RLS to allow access to certain resources.

It is not currently possible to guarantee atomicity on 2 different file uploads since each file is uploaded on a single request, this seems a more high-level functionality that could be implemented at the application level

Re:Supabase Storage: now supports the S3 protocol by nextaccountic on Friday April 19, 2024 @04:43AM (#40084572)
Oh.

So this is like, S3 on top of S3? That's interesting.

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @05:19AM (#40084727)
Yes indeed! I would call it S3 on steroids!

Currently, it happens to be S3 to S3, but you could write an adapter, let's say GoogleCloudStorage and it will become S3 -> GoogleCloudStorage, or any other type of underline Storage.

Additionally, we provide a special way of authenticating to Supabase S3 using the SessionToken, which allows you to scope S3 operations to your users specific access control

https://supabase.com/docs/guides/storage/s3/authentication#s...

Re:Supabase Storage: now supports the S3 protocol by pelagicAustral on Friday April 19, 2024 @05:43AM (#40084844)
What about for second tier cloud providers like Linode, Vultr or UpCloud, they all offer S3 compatible object storage, will I need to write an adaptor for these or will it work just fine in lieu of their S3 compatibility?
Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @06:18AM (#40085014)
Our S3 Driver is compatible with any S3 Compatible object Storage so you don’t have to write one :)
Re:Supabase Storage: now supports the S3 protocol by pbronez on Friday April 19, 2024 @09:02AM (#40086289)
I’m confused about what directions this goes.

The announcement is that Supabase now supports (user) —s3 protocol—> (Supabase)

Above you say that (Supabase) —Supabase S3 Driver—> (AWS S3)

Are you further saying that that (Supabase) —Supabase S3 Driver—> (any S3 compatible storage provider) ? If so, how does the user configure that?

It seems more likely that you mean that for any application with the architecture (user) —s3 protocol—> (any S3 compatible storage provider), Supabase can now be swapped in as that storage target.

Re:Supabase Storage: now supports the S3 protocol by nemothekid on Friday April 19, 2024 @05:06PM (#40091892)
As I understand it, supabase is open source. So the hosted supabase is

(user) -> s3 protocol -> (Supabase) -> (AWS S3)

you could fork (or contribute) a database driver for any s3 compatible backend of choice.

(user) -> s3 protocl -> (pbronez-base) -> (GCP Cloud Storage)

Re:Supabase Storage: now supports the S3 protocol by SOLAR_FIELDS on Friday April 19, 2024 @09:56AM (#40086897)
Gentle reminder here that S3 compatability is a sliding window and without further couching of the term it’s more of a marketing term than anything for vendors. What do I mean by this statement? I mean that you can go to cloud vendor Foo and they can tell you they offer s3 compatible api’s or clients but then you find out they only support the most basic of operations, like 30% of the API. Vendor Bar might support 50% of the api and Baz 80%.

In a lot of cases, if your use case is simple, 30% is enough if you’re doing the most common GET and PUT operations etc. But all it takes is one unsupported call in your desired workflow to rule out that vendor as an option until such time that said API is supported. My main beef with this is that there’s no easy way to tell usually unless the vendor provides a support matrix that you have to map to the operations you need, like this: https://docs.storj.io/dcs/api/s3/s3-compatibility. If no such matrix is provided on both the client side and server side you have no easy way to tell if it will even work without wiring things in and attempting to actually execute the code.

One thing to note is that it’s quite unrealistic for vendors to strive for 100% compat - there’s some AWS specific stuff in the API that will basically never be relevant for anyone other than AWS. But the current situation of Wild West could stand for some significant improvement

Re:Supabase Storage: now supports the S3 protocol by inian on Saturday April 20, 2024 @02:16AM (#40095231)
I agree that s3 compatibility is a bit of a moving target and we would not implement any of the AWS specific actions.

We are transparent with what's the level of compatibility - https://supabase.com/docs/guides/storage/s3/compatibility

The most often used APIs are covered but if something is missing, let me know!

Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @05:14AM (#40084709)
in case it's not clear why this is required, some of the things the storage engine handles are:

image transformations, caching, automatic cache-busting, multiple protocols, metadata management, postgres compatibility, multipart uploads, compatibility across storage backends, etc

Re:Supabase Storage: now supports the S3 protocol by gime_tree_fiddy on Friday April 19, 2024 @02:56AM (#40084084)
Shouldn't it be API rather than protocol?

Also my sympathies for having to support the so-called "S3 standard/protocol".

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @03:16AM (#40084180)
Yes, both can be fine :) after all, a Protocol can be interpreted as a Standardised API which the client and server interact with, it can be low-level or high-level.

I hope you like the addition and we have the implementation all open-source on the Supabase Storage server

Re:Supabase Storage: now supports the S3 protocol by preommr on Friday April 19, 2024 @03:20AM (#40084197)
I think that protocol is appropriate here since s3 resources are often represented by a s3:// url where the scheme part of the url is often used to represent the protocol.
Re:Supabase Storage: now supports the S3 protocol by ovaistariq on Friday April 19, 2024 @11:09PM (#40094412)
S3 uses HTTP protocol for communication between client and server. The `s3://` paths make it seem like it’s a protocol but that’s just a way to represent the path on the s3 client to differentiate it from a local file path.
Re:Supabase Storage: now supports the S3 protocol by ntry01 on Friday April 19, 2024 @03:33AM (#40084268)
This is great news, and I agree with everyone in the thread - Supabase is a great product.

Does this mean that Supabase (via S3 protocol) supports file download streaming using an API now?

As far as I know, it was not achievable before and the only solution was to create a signed URL and stream using HTTP.

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @03:43AM (#40084324)
Yes, absolutely! You can download files as streams and make use of Range requests too.

The good news is that the Standard API is also supporting stream!

Re:Supabase Storage: now supports the S3 protocol by kaliqt on Friday April 19, 2024 @02:51AM (#40084061)
I tried to migrate from Firebase once and it wasn't really straightforward and decided against doing it, I think you guys (if you haven't already) should make migration plugins a first class priority that "just works" as the amount of real revenue generating production projects on Firebase and similar are of a much higher number. It's a no-brainer that many of them may want to switch if it were safe and simple to do so.
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @03:09AM (#40084156)
we have some guides (eg: https://supabase.com/docs/guides/resources/migrating-to-supa...)

also some community tools: https://github.com/supabase-community/firebase-to-supabase

we often help companies migrating from firebase to supabase - usually they want to take advantage of Postgres with similar tooling.

Re:Supabase Storage: now supports the S3 protocol by avodonosov on Friday April 19, 2024 @04:33AM (#40084539)
The article does not mention: do you support pre-signed URLs?

https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-...

Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @04:47AM (#40084596)
Thanks for asking this, we do not support signed URLs just yet, but it will be added in the next iteration
Re:Supabase Storage: now supports the S3 protocol by avodonosov on Friday April 19, 2024 @04:58AM (#40084640)
Presigned URLs are useful because client app can upload/download directly from S3, saving the app server from this traffic. Does Row-Level Security achieve the same benefit?
Re:Supabase Storage: now supports the S3 protocol by fenos on Friday April 19, 2024 @05:14AM (#40084708)
Yes, I agree! Although I should have specified that we support signed URL https://supabase.com/docs/reference/javascript/storage-from-... just not in the S3 protocol just yet :)
Re:Supabase Storage: now supports the S3 protocol by dmattia on Friday April 19, 2024 @11:41AM (#40088197)
Thanks for confirming! Could you maybe update https://supabase.com/docs/guides/storage/s3/compatibility to include s3-esque presigning as a feature to track?
Re:Supabase Storage: now supports the S3 protocol by arxpoetica on Friday April 19, 2024 @12:21PM (#40088715)
Can you give an indication of what "next iteration" means in terms of timeline (even just ballpark)?
Re:Supabase Storage: now supports the S3 protocol by filleokus on Friday April 19, 2024 @04:46AM (#40084587)
Do you think Supabase Storage (now or in the future) could be an attractive standalone S3 provider as an alternative to e.g MinIO?
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @04:56AM (#40084630)
It's more of a "accessibility layer" on top of S3 or any other s3-compatible backend (which means that it also works with MinIO out-of-the-box [0])

I don't think we'll ever build the underlying storage layer. I'm a big fan of what the Tigris[1] team have built if you're looking for other good s3 alternatives

[0] https://github.com/supabase/storage/blob/master/docker-compo...

[1] Tigris: https://tigrisdata.com

Re:Supabase Storage: now supports the S3 protocol by masfuerte on Friday April 19, 2024 @11:35AM (#40088133)
I'm still confused. Who is paying Amazon? Is it

1. You buy the storage from Amazon so I pay you and don't interact with Amazon at all or

2. I buy storage from Amazon and you provide managed access to it?

Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Monday April 22, 2024 @12:31AM (#40111422)
it's 1 - you pay us, we pay AWS.

In the future we will likely provide "bring your own s3" (2)

Re:Supabase Storage: now supports the S3 protocol by ovaistariq on Friday April 19, 2024 @11:11PM (#40094434)
I appreciate the callout to Tigris. Now it’s super easy to use Tigris with Supabase for all those files.
Re:Supabase Storage: now supports the S3 protocol by jarpineh on Friday April 19, 2024 @07:09AM (#40085332)
Hi, a question, but first some background. I've been looking at solutions to store columnar data with versioning, essentially Parquet. But, I'd also like to store PDFs, CSVs, images, and such for our ML workflows. I wonder if now, that Supabase is getting better for data science DuckDB crowd, could Supabase be that one solution for all this?
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @07:17AM (#40085388)
> Parquet. But, I'd also like to store PDFs, CSVs, images

yes, you can store all of these in Supabase Storage and it will probably "just work" with the tools that you already use (since most tools are s3-compatible)

Here is an example of one of our Data Engineers querying parquet with DuckDB: https://www.youtube.com/watch?v=diL00ZZ-q50

We're very open to feedback here - if you find any rough edges let us know and we can work on it (github issues are easiest)

Re:Supabase Storage: now supports the S3 protocol by jarpineh on Friday April 19, 2024 @07:32AM (#40085490)
Well, this is great news. I'll take "just works" guarantee any day ;)

We have yet to make a commitment to any one product. Having Postgres there is a big plus for me. I'll have to see about doing a test or two.

Re:Supabase Storage: now supports the S3 protocol by Bnjoroge on Friday April 19, 2024 @06:15PM (#40092517)
you should look at lance(https://lancedb.github.io/lance/)
Re:Supabase Storage: now supports the S3 protocol by foerster on Friday April 19, 2024 @08:33AM (#40086004)
no feedback on this in particular, but I love supabase. I use it for several projects and it's been great.

I was hesitant to use triggers and PG functions initially, but after I got my migrations sorted out, it's been pretty awesome.

Re:Supabase Storage: now supports the S3 protocol by SOLAR_FIELDS on Friday April 19, 2024 @10:05AM (#40086984)
Do you manage your functions and triggers through source code? What framework do you use to do that? I like Supabase but it’s desire to default to native pg stuff for a lot of that has kind of steered me away from using it for more complex projects where you need to use sprocs to retrieve data and pgtap to test them, because hiding away business logic in the db like that is viewed as an anti pattern in a lot of organizations. I love it for simple CRUD apps though, the kind where the default postgrest functionality is mostly enough and having to drop into a sproc or build a view is rarely necessary.

I think if there was a tightly integrated framework for managing the state of all of these various triggers, views, functions and sproc through source and integrating them into the normal SDLC it would be a more appealing sell for complex projects

Re:Supabase Storage: now supports the S3 protocol by inian on Sunday April 21, 2024 @02:31AM (#40103600)
The Supabase CLI [1] provides a way for you to manage functions, triggers and anything else in your Postgres database as a migration. These migrations would be checked into your source control.

You can then take it a step further but opting-in to use Branching [2] to better manage environments. We just opened up the Branching feature to everyone [3].

[1]: https://supabase.com/docs/guides/cli/local-development#datab... [2]: https://supabase.com/docs/guides/platform/branching [3]: https://supabase.com/blog/branching-publicly-available

Re:Supabase Storage: now supports the S3 protocol by SOLAR_FIELDS on Sunday April 21, 2024 @12:34PM (#40107060)
Thanks for the response. I don’t think I was super clear about what I meant - I’m more talking about the following scenario:

Let’s say that we are using the Typescript sdk to make our app and need to do some fancy aggregation on a table that isn’t supported by Postgrest natively (specifically we can’t retrieve the data with Postgrest out of the box with its typical setup). Postgrest tells us that in this case we can do two things: create a view or make a Postgres function. Each has their pros and cons, but with either choice now we have this problem: some of our business logic is in sproc/function/view and some of it is in Typescript. In a typical setup using an ORM it would all be in Typescript.

The conventional wisdom is that db’s are dumb state holders and all of the business logic goes in the app - Supabase attempts to turn this on its head and say no actually it’s ok to store business logic in the db. But now if we do that we have a new problem: we don’t have a blessed path forward for where the line is on what goes where anymore. We don’t have good patterns for storing and managing this so other developers understand where to put things and how to work with our app anymore, because it no longer holds the principle of least astonishment. That’s what I mean by framework in this context.

Maybe all that is necessary here is a battle tested example project that demonstrates the “correct” way to make this demarcation. But as-is it steers me away from using Supabase for more complex projects if I even think they will need something that Postgrest won’t support without making a view or sproc/function

Re:Supabase Storage: now supports the S3 protocol by WhitneyLand on Friday April 19, 2024 @08:47AM (#40086151)
Is iOS support a priority for supabase?
Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Friday April 19, 2024 @09:11AM (#40086388)
Yes, we made it an official library this week: https://supabase.com/blog/supabase-swift
Re:Supabase Storage: now supports the S3 protocol by tootie on Friday April 19, 2024 @10:08AM (#40087022)
One of the big wins we get from AWS is that you can do things like load structured data files (csv, parquet) from S3 directly in Redshift using SQL queries.

https://docs.aws.amazon.com/redshift/latest/dg/t_loading-tab...

Re:Supabase Storage: now supports the S3 protocol by inian on Sunday April 21, 2024 @02:47AM (#40103660)
This is indeed pretty cool. They also have the `aws_s3` extension [1] for doing the same thing inside Postgres. Unfortunately, the extension isn't open source.

[1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_...

Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Monday April 22, 2024 @12:28AM (#40111409)
we might be able to achieve the same thing now with our S3 Wrapper:

https://supabase.github.io/wrappers/s3/

Re:Supabase Storage: now supports the S3 protocol by mattgreenrocks on Friday April 19, 2024 @10:14AM (#40087095)
Just commenting to say I really appreciate your business model. Whereas most businesses actively seek to build moats to maintain competitive advantage and locking people in, actions like this paint a different picture of Supabase. I'll be swapping out the API my app uses for Supabase storage to switch it to an S3 API this weekend in case I ever need to switch it.

My only real qualm at this point is mapping JS entities using the JS DB API makes it hard to use camelcase field names due to PG reasons I can't recall. I'm not sure what a fix for that would look like.

Keep up the good work.

Re:Supabase Storage: now supports the S3 protocol by kiwicopple on Saturday April 20, 2024 @06:21AM (#40096222)
> mapping JS entities using the JS DB API makes it hard to use camelcase field names due to PG reasons I can't recall

Postgres requires you to "quoteCamelCase". There are some good JS libs to map between snake case and camel case. FWIW, I like a mix of both in my code: snake_case indicates it's a database property, and camelCase indicates its a JS property. Try it out - it might grow on you :)

Re:Supabase Storage: now supports the S3 protocol by iamcreasy on Friday April 19, 2024 @04:06PM (#40091404)
In this setup, can postgresql query data stored in object storage? i.e. Hive/Icebarg table.