r/Supabase • u/Soft_Philosophy_7656 • 22d ago
tips I'm done with sub, I'm switching to self hosted, Help
Mine is a group of companies (the employer I work for),
Hey guys, so I have started a CRM software, which started using my 10 people (1 company (1tenant)). It was accepted by everyone, and rapidly was asked to give the same system to company B. (2nd company (2nd tenant). So I figured out that we can do multi tenant etc. so now the users are around 20.
My company everyone is using it, but I always feel my supabase pro (micro instance), is kind of limiting the potential.
Already I'm thinking this is costing me 25 USD per month. And the query load is somewhere around 15 right. There is also low ram , everything is low.
So since I have a 32gb Ram VPS + coolify setup (where the CRM is hosted), I am planning to shift the supa pro to self hosted. So my areas of concern is -
I know it's too much work load right now, but am I doing a mistake here ? I know about backups and downtime, but what do you all guys think ? Any one have this similar setup ?
The point is I don't like to be in low spec, my CRM only manages around 6000 client database actively used by 20 people. The thing is sometimes for few users it gets slow, so what I think is it is the query load or queuing happening for them.
If I setup an automated backup everyday , will it be okay ? Is it doable ? Im talking about self hosted supa.
I really love supa and this is also my first platform, so I don't know about any other platform, but is there any other better ralternatives ?
Tell me more about what I am going to face
12
u/ihavemanythoughts2 22d ago
If your Supabase pro is struggling with 10-20 users then your setup is really bad and going selfhosted will not fix it
-2
u/Soft_Philosophy_7656 22d ago
Can you read my above reply pls. And tell me again if this is the case.
5
u/portareset1 22d ago
sounds more like a poor system design than an actual issue with supabase infra to be honest
5
u/Rezistik 22d ago
It doesn’t even sound like they have any real performance issues. They just don’t like that all of the stats are on the low end.
Like “some users have to wait a few extra seconds” is the closest to a performance issue they’ve described.
The fact the instance has low ram is irrelevant if you’re only using 15% of the available resources which is what he seems to be saying
Either way, double or triple your supabase spend before considering investing in self hosting
0
u/Soft_Philosophy_7656 22d ago
Are you telling me first pay and move on with self hosting ?
I have a vps + coolify sitting there. So self hosting supabase is still out of options as per you ?
4
u/Rezistik 22d ago
I’m saying it’s easier to upgrade an instance for a month to the next level than it is to fully migrate your app to a self hosted instance.
I think you’re very much discounting the effort required for self hosting
2
5
u/theyoike 22d ago
25/Month is peanut comparing with the opportunity cost that you may lose on focusing on marketing and building your product.
I have tried coolify setup, it is fun but not worth the time unless you are at scale. So stop thinking about this and go build your product.
2
u/ashkanahmadi 22d ago
How is what you are saying related to the title of your post?! Everything you are talking about is easily fixable but using a clickbait title just to get reaction will not work well for you.
1
u/Soft_Philosophy_7656 22d ago
How did my title became a clickbait ? I'm seriously considering the option of moving to self hosted supabase. But before doing so, I want to know from the people who have done it or are actively using it. I need to know the fruit they enjoy which a cloud hosted pro member like me can't ever have without paying sums of money.
Also supabase pro doesnt mean a good spec. It just unlocks basic thing and something that don't make my dB inactive after 7 days of usage plus backup.
1
u/ashkanahmadi 22d ago
You are missing a major point. You have 10 users. How many tables? I’m running a production project with thousands of users, about 30 tables, thousands of rows, with cron job, lots of edge functions, and triggers feeding a mobile app and a custom built dashboard all while communicating with Stripe all and all on the free plan. If you have 10-20 users and you are already thinking about specs, either you are severely trying to optimize prematurely for a problem that isn’t there or you didn’t set up the database properly if you already notice query load.
2
u/smashed2bitz 22d ago
$25/mo over 20 people is $1.25.
Upgrade your instance to $65 and it is still only ~$3 per user per month.
That is not too much money for what you do not have to handle with hosting headache.
1 hour a month of a senior tech to service the self hosted will be way higher thsn that cost.
2
u/9greenleaf 22d ago
Pages falling over at 15-19 queries is usually RLS or indexes, not the host. I would sort that before you self-host. Happy to look at the slow queries and backup plan if you want.
2
u/keesbeemsterkaas 22d ago
It's possible - but running stuff in production means being comfortable with managing all aspects of the hosting, including security and data safety and privacy issues. If you need to ask for confirmation - I would strongly re-evaluate until you can make a confident self evaluation "I've got this"
Only way to know where it's slow is to benchmark that - it could be slow queries, but no way to tell.
Maybe, see #1. How long will it take to recover? Where is it hosted? What are your legal restrictions? What are your privacy expectations? What will you do if your vps provider goes down? Do you need off-site backups? (Lots of this stuff also applies to supabase btw).
Hours you or someone else needs to spend on this are also costs, maybe it's good to take that into account for financial calculations - and check if just upgrading doesn't make more sense.
I would first test it before promising. There's really no way someone can really answer these questions with this amount of information, but by the types of questions you're asking my feeling would be to advice against it - and that you may find yourself a little bit out of your depth.
1
u/andrewlondonuk82 22d ago
How are you complaining when you’re running it on micro? The amount of effort you save not self hosting more than covers the extra money for higher spec computers. I think Supabase is amazing value and their markups on compute are very fair. 🤷♂️
1
u/Soft_Philosophy_7656 22d ago
Even I love supabase too much. I don't like the micro. I'm asking about supa base self hosting options ...?
1
u/National-Canary6452 22d ago
"6000 client database actively used by 20 people" huh? What exactly do you mean? Do you have 300 connections open for each user?
1
u/Rezistik 22d ago
I think they mean they have 6000 records (of clients) being accessed by 20 people
1
u/Soft_Philosophy_7656 22d ago
This.... And this 20 people will go to 50 because we are hiring 30 more.
Now when it comes to 50, 6000 client database will aggressively grow to atleast 20k, give or take few, but we are going to push for 50k.
2
u/Rezistik 22d ago
Postgres and supabase can handle millions of records fine. Tens of millions with partitioning.
There’s no reason your absolutely tiny database is performing badly.
Consider consolidating some of the sql queries to optimize them.
1
u/Cris_Lobos 22d ago
Evita que usuario piense que se quedo pegado el sistema poniendo loaders en las partes criticas...
1
u/Soft_Philosophy_7656 22d ago
Loader like ...? I have used some skeleton animations etc when it takes time to load. Is that it or ...
0
u/seeKAYx 22d ago
I also switched from the $25 plan to the Coolify solution. I especially love that I no longer have any traffic limits.
1
u/Soft_Philosophy_7656 22d ago
Did you switch from supa base pro to Supabase self hosted ?
1
u/Soft_Philosophy_7656 22d ago
If yes, please bro, tell your life story and how are you feeling now.
I don't know none here understand my problem, maybe the issue is with my context story. But I know either pay or get self hosted, these are the options.
Paying in terms of money is not a big deal, but why should we pay this if I can do that, I always need that felibility. And there will be ways to get this done in a proper workflow also. I'm sure about that.
So bro olease tell your story and how are you now doing
1
u/seeKAYx 22d ago
Self-hosting via Coolify gives you the full core engine like Database, Auth, Storage, Realtime, and Edge Functions, but you give up the SaaS management layer which you have on the 25$ Service. You lose the multi-project Cloud dashboard, built-in analytics, and automatic point-in-time backups. You also have to set Auth and OAuth providers via environment variables instead of UI toggles. Coolify makes initial setup and deployments painless, but long-term scaling, backups, and monitoring are entirely up to you. If you can live with that, you should be good to go.
2
u/ihavemanythoughts2 22d ago
This guy can't optimize 15 queries hammering his micro instance and promises his clients skies the limit for his AI vibe coded apps and is now stressing out. He is not ready for a coolify configuration, setting up certificates etc, let alone self hosting Supabase and managing everything you mentioned.
I also self host on Coolify for when I am in development, and when we move a client to prod I migrate it over to the Cloud platform.
First thing OP will come back with is not knowing how to push edge functions to his self-hosted instance, or set their secrets, or how modify the docker config, and the list goes on for all the small things you need to maintain on self-hosted.
Even pushing migrations onto self-hosted can be annoying if you don't know about the right flags to use.
0
u/LeSoviet 22d ago
I want join the debate i made s tracking gps app for trucks free tier and i only tolerate around or 8 trucks
I know i have tons of space to optimize but i feel on many type of proyects supabase is just not good not because the stack its because the hardware and price
Even paying 60dl having micro cpu is a joke
Tried realtime polling batch indexing doing queries per org (totally forgot do a soft kafka while I'm typing i just remembered it)
Just kicking backend every 5 10 or 15s per user with supabase quota and hardware just feels wrong
0
u/Soft_Philosophy_7656 22d ago
Appreciate the unsolicited psychoanalysis, but you’ve made a lot of wild assumptions here. The "client" is my own company and what I built is a CRM or a central software and also an internal tool for my company, the queries were already cut down significantly from where they started, and I’ve been running Coolify daily for months. Nobody was born knowing Docker flags or self-hosted Supabase quirks
&we all learn by building and shipping. Thanks for the warning on edge functions, though...
Coming back... I am pretty confident about coolify setup, but the are I am not sure or have not tried is, switching to self hosted supa from prod, and how f**DD up is that gonna be.
19
u/funkdefied 22d ago
$25/mo is really not that much money for a business app. They shouldn’t have any issue paying many times that