Theo, why you never use Docker? Why you always use Cloud based solutions?

Theo, why you never use Docker? Why you always use Cloud based solutions that will gonna cost money at some point. Why locally you wouldn't even dockerize MySQL?
13 Replies
Josh
Josh•10mo ago
what
lukas
lukas•10mo ago
its a little bit difficult to understand what you said but if what i understand "why use cloud based solutions instead of just hosting it yourself?" is what you meant then: its easier and technically cheaper, if you count how many hours deployment and management of these services would take, it would be a substantial amount (you often do not count the time you use as valuable) theo on the other hand encourages using simple cloud services where it only takes a couple minutes to deploy and doesnt take anything at all to manage now about the actual price: using the example of planetscale and mysql, its much cheaper than hosting by yourself as long as your app isnt ginormous, most things can fit into the free tier the cheapest instance basically everywhere costs around 5$, so even comparing actual costs its free vs. 5$ (and those instances are usually very tiny and cant do as much as the free tier can) go to PS pls, forgot to add services like planetscale get their money from companies that spend a couple thousand $ a month on a db and even then its cheaper to use planetscale than to set it up on your own (check out theos video about "the line of prime") tldr: its stupid to assume that you are going to hit big instantly, so instead of worrying about the future, get the mvp out and make the stuff your users want PS: even if you dont account for instances and think about hosting locally, like you said, its still not that good of a solution, especially for most people, generally more and more households do not own a public ip, meaning it is difficult to host anything (you need to use a tunneling service or smthn), on top of that hosting locally comes with a lot of problems like for example outages (due to power or loss of internet connection) or even simple crashes, its also not realistic for people to go out and buy a home server, whos power also takes more than a cloud service, the thing with power is also relevant with leaving your pc overnight hope that helps :D
🌈🌈🌈 Galgaldas 🌈🌈🌈
Sorry maybe I clarified wrong. I mean locally, when you are working locally on your own machine you can dockerize MySQL. Theo never does that, weird.
Josh
Josh•10mo ago
yeah cause he uses planetscale it's way easier than running a local docker image coming from someone who used to be a massive docker fan and used it religiously in multiple production projects, using cloud providers like Vercel and planetscale and just running everything bare bones on my machine has been infinitely easier dev containers are cool but you have to be a docker expert to make them work correctly
Vengeance
Vengeance•10mo ago
my guess: theo is super practical and wants to ship fast, he doesnt want to spend time dicking around with docker configs and self hosting, thats the whole point of using stuff liker vercel, you never have to interface yourself with stuff like aws and you can spend more of your time building your product
🌈🌈🌈 Galgaldas 🌈🌈🌈
I never mentioned self hosting. I mean when developing locally you can dockerize almost everything, but he doesnt.
Vengeance
Vengeance•10mo ago
i only brought that up cause my point is he wants to focus on coding rather than messing with his environment(s) (i think)
Josh
Josh•10mo ago
why would you dockerize anything if your just doing it locally as i said, dev containers are a mess, and pscale gives me way more features that i couldnt have with a generic local mysql db not to mention if im on my laptop, a running docker is just asking for my battery to get drained
🌈🌈🌈 Galgaldas 🌈🌈🌈
Why? So other devs could clone your repo and run docker compose up and everything works
Josh
Josh•10mo ago
its never that simple you have to be a docker expert to get dev containers running right and then you have to maintain not only the project source code but the docker config too people on windows are going to have a terrible time running the project cause docker sucks on windows even on linux its faster to run bare metal you have obviously never tried to get hmr working in a docker container, trust me its not fun if other devs want to work on a project, just make a good readme that states how to setup the project locally
🌈🌈🌈 Galgaldas 🌈🌈🌈
No you dont need to be docker expert to do that Its not that hard and usually you dont need to maintain that WSL2 works really fine Ur not working on intel pentium with 1gb ram My readme consists of two steps. Git clone and docker compose up
Josh
Josh•10mo ago
you have clearly never actually used docker with any real codebase because none of these are true again, i have used docker extensivly on multiple projects in this exact scenario, and i found after YEARS of doing it that way, it just wasnt worth the overhead. it sounds great at first, but it gets complicated fast
lanc3
lanc3•10mo ago
^^ docker for dev experiences is not great. Obviously if you're already using dedicated servers, then docker maybe fits your needs better, but the T3 stack is completely serverless and that's what Theo uses and many other devs here
Want results from more Discord servers?
Add your server