Correction: R2 Object storage does have a free tier (as shown in the video) but it requires a credit card get started. All the other worker features shown in the free section of this video do not require a credit card.
Also, I don't know where to get a Postgres for free, I only see D1 for free.. Even in the documentation their sample connection string points to Neon for postgres
@backpine I think breaking this down into individual videos would get great responses. For example: 1. Setting up CI/CD with Next.js and Cloudflare. 2. Implementing an API gateway across your APIs with Next.js and Cloudflare. etc etc I'd personally love more detailed content on these topics. It seems like people are really searching for these solutions, especially with Vercel’s recent price hikes.
Appreciate the comment! The next small project you start give it a shot and see how you like it before moving over. It is easiest to start from scratch on cloudflare. There is a bit of a learning curve to migrate existing apps to cloudflare. I am hoping to document some of my learning on this channel!
Very good video, keep up the good work. I would like to add, that once a project on cloudflare gets big enough, there is the chance that cloudflare will hold your project hostage until you upgrade to the enterprise tier. Even if your project was running fine on a different tier. Combined with the vendor lock-in, this can be quite bad. And this has happened before with many other companies, so is something to keep in mind. But if your project stays quite small, this should not be a problem you'll run into.
Thank you! This is indeed in the back of my mind as I use Cloudflare. This is how I think about it: 1. When I build solutions for big companies with a large existing user base I will ship to AWS or another mainstream provider. There is really no debate here. 2. If I am building products for small/medium companies that will likely never need to scale or hit a large user base I'd consider Cloudflare and I would have them purchase the proper tier for their traffic. 3. When I ship side projects, I am currently using cloudflare. I got tiered of paying for several dozen VPS and a load balancer for projects that don't make much money. If one day I strike lighting in a bottle and one of my projects gets a lot of traction I'd either become a CF enterprise user (which would make sense) or start the migration process. To me the hard part is not the migration or ponying up money to a vendor like cloudflare. The hard part is actually finding and building something that people want I might be wrong here, but I think it is safe for other indie hackers to take the same approach as me
@@backpineit is crazy that you are now at 1.63 K subs in 4 days. Keep up the good work. I am interested in building a web app using cursor and deploying it to web domain without too much hassle. I have not done web development for a long time, so it is going to be a learning curve
I am surprised how many people this video resinated with. I guess many other devs have been having similar experiences to me in terming of trying to find the most suitable hosting provider!
Great exposition video on CW platform! No BS, just describe then demonstrate the use case. A good topic to deep dive would be the design pattern for the ease-of-use vs mitigating vendor lock in.
This is a great suggestion as it is a very important topic! I have spent time thinking about designing in away to avoid vendor lock-in but my thoughts are not fully flushed out. Once I have a mature opinion on this topic I'll make a video comparing the pros and cons
@@backpine I'm more or less on the same boat. For me very roughly it means being able to run in parallel / load balanced with self-hosted instances. It's less abstract if you're going with an existing service and building replacement workers/functions via CW platform + setting up replication for the stateful data. But for starting from scratch on CW platform side it might be more abstract with more pitfalls depending on the features used. Nonetheless, eventually I'll get around to it since I think this will be great to have for handling excess load / serve as backup. Would be interesting to see if it's viable to use single VPS + CW platform to get high availability + scalability as an alternative to multiple VPS & kubernetes / other container orchestration.
I guess I was waiting for that video for the entire year to relieve myself that it is okay for me to launch my projects without hesitating. Waiting for more insights, keep up with that dude. You got a new follower
Cloudflare got me pretty excited with some of their more novel stuff, durable objects is hella cool for being able to deploy small stateful websocket based room games.
@@backpine They are absolutely lit. Have you checked out PartyKit? one of the devs at CloudFlare created a framework to make working with durable a little easier. I've build a couple of simple games with it and it's been great. You're analysis about the binding and passing of env vars tho is totally valid, I wish it would populate the process.env rather than a context parameter passed with the request. Also as others have pointed out I'd be a little scared of their predatory sales team. No problem for me just doing lil side projects. But from what I've seen the step between just paid usage and being strong armed into a contract is a little alarming.
I'd love to have this same analysis for popular frameworks: 1. Go/Rust/FastAPI/Django + React/Vue 2. Springboot 3. Monolyths 3. Ruby on Rails 4. Laravel 5. React Native/Flutter/Expo (stuff used for cross functional app development) That being said, you just earned a subscriber, tysm :)
Love the idea! It's unlikely that Rails, Spring, Laravel and Django will be able to ship to Cloudflare considering the V8 runtime. But it would be interesting to see what you can do on cloudflare outside the JS ecosystem.
@@backpine Oh right, I didn't mean in Cloudflare but rather which tools/platforms/companies you'd pick for those frameworks. Regardless, very convinced to pick Cloudflare for my next JS/TS project hahaha
@@PieXD124 ah got you! There's so many topics I'd like to cover. Time is really my biggest constraint. I'll likely eventually get to some of the frameworks you mentioned. I've actually never worked with Laravel but really want to get some exposure
I thought you had way more subs and only realized 10 mins in! Gained 1 more here. S-Tier content Never considered cloudflare before but this is on heck of a sales pitch
This was a really great tutorial. @cloudflare should 100% sponser him. I do use cloudflared for routing requests to my office network on a raspberry pi.
I've seen a few videos of people tunneling traffic to their local network with CF. Seems very interesting, especially if you have AI workflows running on your own box. It's super cool to be able to access your workflows remotely.
Should keep in mind that building on Cloudflare, while a great dev experience, can lead to vendor lock in just like the other platforms. VPS is still the best way to go to host in most situations imo.
Agreed, I also prefer this route for projects that already have significant traffic or are making good money. But if you go the VPS route you have to consider production readiness. Best practice is to spin up at least three VPS instances, stick them behind a load balancer, most likely put a proxy in front of the load balancer, build out your preferred CICD pipeline (coolify is nice), and set up robust external logging and monitoring system. When getting started on a small project these things should also be considered.
@@backpine Hello your video was awesome thanks! Would you suggest me to spinup database to coolify(postgres) or use something like cloudflare D1? In best scenario i'm expecting to get 1000-2000 users. Im already using coolify to host My nextjs application.
@@michaelewen5498 They are aware that they did a big mistake regarding how they dealt with the casino website, I don't think this is going to happen again...
@@NaourassDerouichi to be totally frank I have no idea if Cloudflare will do that again. But if I had a product that was doing serious business with serious traffic it would still be a concern for me. For side products, small SasS apps, and midsize businesses that don't have insane traffic I think CF compute is still awesome.
Remember kids, nothing in life is ever free. Everything has costs - whether in the form of switching costs, your data, your privacy or a host of other means.
bro you are awesome, it would be amazing to see how you are effectively shipping a full stack app with these services! looking forward for the CF tuts serie!
It will probably enshtify one day, I think Cloudflare is trying to expand their business from ddos protection to actual backend hosting infrastructure, that’s probably why they give good deals now… But it might stay like this for a few years though, idk, so get it while you can! Or maybe the expensive part will stay being only for people who need enterprise features, who knows
At the end of the day I think the compute services will just make their product more sticky for developers. Something I didn't mention in the video is that Cloudflare wants you to assign a domain name to the services you build (if the service is external facing). To do so you need to add your domain to Cloudflare. You can do this for free, but once you build a product that is making good money it would be wise to upgrade to the business plan. When you are on the business plan your compute prices stay the same, but you'll naturally start reaching for Cloudflares security features. I could see myself building a business on the back of Cloudflare as it is so easy to get started. Assuming I continue have a good experience on the platform i'd eventually end up as an enterprise customer. So as a long term play this seems like a good strategy for Cloudflare.
Great video detailing all of cloudflares offering! Might be a huge task but would it be possible to show us a real world usage of hyperdrive and show us the benefit in terms of latency using a single region database? For a simple solution like Hyperdrive, it would help us developers self hosting our app in a VPS to easily globally distribute our app. Keep up the good work!
I really like your video style! It might be even better if you added some videos in the background instead of just the black background and logo when you’re speaking. Just a thought!
Great first video! Would love to see a vercel vs cloudflare esp. with respect to hosting next.js. Give what you have said so far I don't see a reason to use vercel?
Vercel is the ultimate home for Next projects and the dev experience is really good for shipping next services. You will never feel like you are fighting the platform when using vercel. I only use the basic features of Next by taking advantage of SSR and server side data fetching, and have only had a positive experience deploying to Cloudflare. I have heard of people having issues with the more advance features of Next when deploying to platforms other than Vercel. As I stumble upon the tradeoffs I will be sure to document those. I love the combo of SvelteKit, Hono, and Queues on Cloudflare. I think it is really hard to beat this stack!
This is a really good callout! When I design database schemas I will typically use relational databases to store metadata and basic user info. Whenever I have large text blocks or JSON objects I will store these in R2/S3 and use the database to reference these objects. With this pattern, it is very hard to hit the 10GB max. That being said, you do alway have the option of bringing your own Postgres database and using Hyperdrive to interface with in it your workers.
@@backpine It's not hard to set up multi Tenancy with D1's similar to a Turso type offering. You get something like 50k d1 so the 10gb limit is not really a problem
i am glad to comment on the 1st video of this chanel . i was learning nextjs but when i saw hobby plan does not offer payment gateway implementation i thought i will not depend on vercel ecosystem. thanks to your video. one problem i have is i am from Bnagladesh and stipe,paypal is not available here. need to find a payment gateway
Thanks for the comment! If you are just getting started you can also look to SvelteKit as a replacement to Next. It is much easier to deploy SvelteKit apps to different providers. I wish I cloud offer advice about alternative payment gateways, but I have only ever used Stripe and Braintree.. I have no idea about the process of setting up these accounts outside the US /:
The vector db does not seem cheap or generous. It’s free up to 5 million dimensions which is only 5 thousand embeddings with most embedding models returning 1k+ dimension embeddings…
I'll be making a video about this soon. They recently rolled out a new log monitoring system for workers and you can also push logs to other observability providers. I push all logs and metrics to a service called Baselime where can create dashboards, debug, and manage alerting. I'd say observability right out of the box with CF is just okay, but it's easy to create your own observability solution that is really good
@@backpine Thanks, looking forward to your take on this. I've used Baselime with Vercel and that integration is straight up useless because the default integration (that can't be customized) sets incoming log event metadata wrong, making most of the tool really hard to use. It could be a case where our deployed payload (Nuxt) runs as a catch-all monolith route with an internal request router instead of gazillion individually deployed cloud functions and that use-case is simply not supported... but that's a pretty weak reason if so. Hence, I'm interested in if Baselime (or whatever) works nicer with Cloudflare's stuff for some magical reason 🙂 Another content idea: if/how to make Cloudflare play ball with monorepos. I had a terrible time trying to use their integration and not trigger CI builds on commits that do not touch the project in question inside a monorepo. Probably that is a case of moving to use GH actions to ochestrate builds... making it a deep enough topic to probably have some hidden knowledge with a video. Doing the same in Vercel definitely involved exploring some undocumented aspect of their CLI to manage preview deployment domain alising, for example. Thanks for the video! Good stuff 👏
Thanks for the suggestion. How long ago did you try to set up a mono repo with CF? I structure my projects as a mono repo as I like to share schemas across services. This pattern is also good if you go the trpc route. Anyways, pages allows you to add path changes to trigger deployments. This has worked perfectly for me so far. Not sure if it's a newish feature. For workers you're right, it would probably make sense move the deployment to GH actions.
What a great video! Personally i prefer to build and deploy on a vps with docker or k8s because i don't want to depend on providers as they become really expensive when you have more traffic, especially vercel but for a serverless app in js or high level languages, cloudflare seem to fit very well. Have you tried to build fullstack apps with htmx (or just templ) and golang ? I always wanted to tried this stack. Anyway thanks for the advice
Thanks for the comment! I also personally favor deploying to a VPS with docker. I actually built an AI language study tool with the stack you mentioned (HTMX, Go with Fiber and templ, shipped with docker to a VPS on digital ocean). It's a very fun stack to work with and I especially love working with Go. But when building apps that are more interactive on the client side I like working with SveltKit deployed to Cloudflare. I actually want to make a video weighing the cost of shipping a production app (with a database, object storage, and a monitoring system) to a series of VPS instances vs Cloudflare workers. My rough estimate is that your app needs to receive *80,000,000 monthly requests for it to be more cost effective on k8s compared to Cloudflare workers. When working with k8s what cloud provider do you prefer?
@@backpine With k8s i don't have much experience but i'm actually deploying on OVH (because i needed huge GPU instances for ai stuff and they seem to have great pricing on them), few years ago their ui/ux was terrible and badly worst than aws but now its really nice. I've deployed many times on digital ocean with their $200 credits without docker and it was great, but a long time ago. 80,000,000 requests monthly seems a lot but, if i'm not wrong it is ~31rps if your traffic is the same 24/24, which is not that much .. Also this kind of video seem really interesting, i'll be watching it on release. I'm not a big frontend fan but i really enjoy working with sveltekit aswell. Hope more people will enjoy your channel!
@@4lxprime730 I have not heard of the 31rps cap, and cannot find anything of the sort online? If you come across documentation with that limit can you let me know? I know the free tier of workers has a burst limit of 1000 requests a minute (which is not a lot). But if you handling that type of traffic you'd need to upgrade to the $5 a month tier anyways. I have never heard of OVH, so I will have to take a look. Have you considered Replicate for your AI compute? They have a pay-for-usage model that seems very enticing if you want to get an AI project off the ground without renting a massive GPU instance with a fixed monthly cost
@@backpine would love a video on your vps setup/best practice, especially with databases. i'm struggling with working out what my best db option is if i'm self hosting (currently on hetzner, but thinking of going back to DO for the managed DBs)
it can be annoying on pages. Especially if you are migrating an existing application. Cloudflare recently released a @opennextjs/cloudflare adapter for Workers. It offers next features that previous were not available with their @cloudflare/next-on-pages adapter. I'll be making a video on this topic later!
@@chandlergreff3113 I think it is less about keywords and more about loras. You can get set up with the stable diffusion UI on your local machine (tons of youtube videos on how to get started with this). Then go try out a bunch of logo loras found on civitai. Usually loras have documentation around what key words work well. I don't remember the specific lora I used for this logo as I tried dozens and had hundreds of logos to choose from There is also a tool called logodiffusion that implements the what I mentioned above but it costs money (:
great video, i just found one thing a bit odd the in-between audio animation where your logo shows and seemingly blinks to the voice phonetics; instead of it glowing up, can you make it different? i.e from fill --> outline --> fill currently it looks kinda weird
Thanks for the feedback! I'm pretty new to video editing and have a ton to learn. Editing this video too longer than I expected so I am hoping to optimize my video creation workflow while I get better at editing
I have no idea what that means 😂 I'm incredibly new to video editing. Literally leaned Davinci Resolve while editing this video. I'd love any pointers if you have
@@backpine You rendered the video as interlaced instead of progressive scan. Interlaced video was used for analog television (and CRTs). It means frames alternate between odd and even lines, rather than the whole frame. Check your render profile and set it to progressive scan.
Google "Cloudflare Workers Limits" and view the docs. They don't have a request duration cap, but they do cap on CPU time. If your API takes longer than 30 seconds to respond you are likely making outbound requests that take some time. In this use case you will have a a very low CPU time. To answer your question - no they don't suffer from the same timeout as amplify Food for thought though, if you have requests that take a while put the business logic on a Queue and use your API to poll for status changes.
This is intentional, you'll just have to pause. My goal is to distill 2 hrs worth of info is less than 15 mins. Future videos that are more project based I'll share a link to the repo (:
Just realized after making this video you have to add a credit card for R2 even with the free tier. I added a card to my account months back and forgot as I have yet breach the free usage of R2. Thanks for the callout! All the other worker features listed do not require a credit card
I really only use the basic SSR and server side data fetching feature of next, so I haven't come across any issues. But I know there are tradeoffs when deploying to other providers other than Vercel. Ieerob has a really good video titled "Self-Hosting Next.js". I suggest watching that when weighing the pros and cons of moving away from Vercel.
10mb on the $5 tier. If you ship to cf workers you will use @opennextjs/cloudflare and if you ship to cf pages you will use @cloudflare/next-on-pages. I am trying to figure out all the tradeoffs here so I can share more info on this channel!
Correction: R2 Object storage does have a free tier (as shown in the video) but it requires a credit card get started. All the other worker features shown in the free section of this video do not require a credit card.
wonder why
Also, I don't know where to get a Postgres for free, I only see D1 for free.. Even in the documentation their sample connection string points to Neon for postgres
Hyperdrive is available only in Paid plans. I really hope it also become available in Free tier
bro is edging his credit card
😂
😂
holy shit my man came out of nowhere with S-tier content
My thoughts exactly wow
i totally agree but can't put my finger on why exactly. what do you like most about it?
Appreciate you all
We need more Cloudflare tutorials 🙌
Any specific frameworks you want a tutorial for?
@backpine I think breaking this down into individual videos would get great responses. For example: 1. Setting up CI/CD with Next.js and Cloudflare. 2. Implementing an API gateway across your APIs with Next.js and Cloudflare. etc etc
I'd personally love more detailed content on these topics. It seems like people are really searching for these solutions, especially with Vercel’s recent price hikes.
@@backpine hono and workers with auth
@@backpine remix please!
@@backpinedo next js since it is on a peak rn.
Cloudflare should totally sponsor you. The sales pitch so good I almost wanna completely move to it 🤣
Appreciate the comment! The next small project you start give it a shot and see how you like it before moving over. It is easiest to start from scratch on cloudflare. There is a bit of a learning curve to migrate existing apps to cloudflare. I am hoping to document some of my learning on this channel!
@@backpine if im forking other peoples nextjs projects and they are are not using cloudflare, what changes would i need to make?
In just over 10 minutes you’ve helped me understand more about Cloudflare than hours of research
Glad to hear! My goal was to illustrate how you can use Cloudflare end-to-end during the development cycle. Future videos will be more specific
@@backpine fantastic work!!
Very good video, keep up the good work.
I would like to add, that once a project on cloudflare gets big enough, there is the chance that cloudflare will hold your project hostage until you upgrade to the enterprise tier. Even if your project was running fine on a different tier. Combined with the vendor lock-in, this can be quite bad. And this has happened before with many other companies, so is something to keep in mind.
But if your project stays quite small, this should not be a problem you'll run into.
Thank you!
This is indeed in the back of my mind as I use Cloudflare. This is how I think about it:
1. When I build solutions for big companies with a large existing user base I will ship to AWS or another mainstream provider. There is really no debate here.
2. If I am building products for small/medium companies that will likely never need to scale or hit a large user base I'd consider Cloudflare and I would have them purchase the proper tier for their traffic.
3. When I ship side projects, I am currently using cloudflare. I got tiered of paying for several dozen VPS and a load balancer for projects that don't make much money. If one day I strike lighting in a bottle and one of my projects gets a lot of traction I'd either become a CF enterprise user (which would make sense) or start the migration process. To me the hard part is not the migration or ponying up money to a vendor like cloudflare. The hard part is actually finding and building something that people want
I might be wrong here, but I think it is safe for other indie hackers to take the same approach as me
The information sweetened with each passing minute!! 👍🏻
Is it real 615 subscribers only and quality of videos above the creators having millions subscribers
Keep growing!!!
Zero subscribers 3 days ago lol.I was not expecting this video to resonate with so many people! Thanks for your comment!
@@backpineit is crazy that you are now at 1.63 K subs in 4 days. Keep up the good work.
I am interested in building a web app using cursor and deploying it to web domain without too much hassle. I have not done web development for a long time, so it is going to be a learning curve
Impressive. Integrating cloudflare has been a smooth experience, I just didn't realise there's more 😮
Dude, absolutely amazing video. The fast-paced walk through + code snippets are soooo so useful!
Best video I have seen all week! Absolutely amazing!
Thank you!
This format is so nice!!
Exactly what I was looking for this week. Amazing how perfect timing this video hit!
I am surprised how many people this video resinated with. I guess many other devs have been having similar experiences to me in terming of trying to find the most suitable hosting provider!
Literally one of the best videos I've seen on the topic! Instant subscribe!
Thank you!
Impressive tutorial. It’s already on recommendation. Good job
Thank you!
From now on, I'll make sure to watch and like every video you post.
Appreciate you!
Great exposition video on CW platform! No BS, just describe then demonstrate the use case. A good topic to deep dive would be the design pattern for the ease-of-use vs mitigating vendor lock in.
This is a great suggestion as it is a very important topic! I have spent time thinking about designing in away to avoid vendor lock-in but my thoughts are not fully flushed out. Once I have a mature opinion on this topic I'll make a video comparing the pros and cons
@@backpine I'm more or less on the same boat. For me very roughly it means being able to run in parallel / load balanced with self-hosted instances. It's less abstract if you're going with an existing service and building replacement workers/functions via CW platform + setting up replication for the stateful data. But for starting from scratch on CW platform side it might be more abstract with more pitfalls depending on the features used.
Nonetheless, eventually I'll get around to it since I think this will be great to have for handling excess load / serve as backup. Would be interesting to see if it's viable to use single VPS + CW platform to get high availability + scalability as an alternative to multiple VPS & kubernetes / other container orchestration.
I guess I was waiting for that video for the entire year to relieve myself that it is okay for me to launch my projects without hesitating. Waiting for more insights, keep up with that dude. You got a new follower
Glad to hear this video provided some motivation!
Instantly subbed and liked. Would love to see a an entire series on the process & flow you covered here.
coming soon!
Nice video. Can't wait to see the next one! 😉
Thank you!
Cloudflare got me pretty excited with some of their more novel stuff, durable objects is hella cool for being able to deploy small stateful websocket based room games.
Durable objects are awesome and very few people know about it.
@@backpine They are absolutely lit. Have you checked out PartyKit? one of the devs at CloudFlare created a framework to make working with durable a little easier. I've build a couple of simple games with it and it's been great.
You're analysis about the binding and passing of env vars tho is totally valid, I wish it would populate the process.env rather than a context parameter passed with the request.
Also as others have pointed out I'd be a little scared of their predatory sales team. No problem for me just doing lil side projects. But from what I've seen the step between just paid usage and being strong armed into a contract is a little alarming.
I'd love to have this same analysis for popular frameworks:
1. Go/Rust/FastAPI/Django + React/Vue
2. Springboot
3. Monolyths
3. Ruby on Rails
4. Laravel
5. React Native/Flutter/Expo (stuff used for cross functional app development)
That being said, you just earned a subscriber, tysm :)
Love the idea! It's unlikely that Rails, Spring, Laravel and Django will be able to ship to Cloudflare considering the V8 runtime. But it would be interesting to see what you can do on cloudflare outside the JS ecosystem.
@@backpine Oh right, I didn't mean in Cloudflare but rather which tools/platforms/companies you'd pick for those frameworks. Regardless, very convinced to pick Cloudflare for my next JS/TS project hahaha
@@PieXD124 ah got you! There's so many topics I'd like to cover. Time is really my biggest constraint.
I'll likely eventually get to some of the frameworks you mentioned. I've actually never worked with Laravel but really want to get some exposure
I am building my SAAS, and that's exactly what i was looking for, thanks man
Good look shipping your idea!
I Tried to deploy my nextjs project but get lots of errors for nextjs
It's not compatible for nextjs app
Until they pull the bait & switch
I thought you had way more subs and only realized 10 mins in! Gained 1 more here. S-Tier content
Never considered cloudflare before but this is on heck of a sales pitch
I appreciate you! I just created this channel a few days back and didn't expect this video to resinate with so many people!
This was a really great tutorial. @cloudflare should 100% sponser him.
I do use cloudflared for routing requests to my office network on a raspberry pi.
I've seen a few videos of people tunneling traffic to their local network with CF. Seems very interesting, especially if you have AI workflows running on your own box. It's super cool to be able to access your workflows remotely.
You just earned a subscriber bro🔥❤
Thank you!
What a hidden gem you are, subbed, keep on rocking!
Should keep in mind that building on Cloudflare, while a great dev experience, can lead to vendor lock in just like the other platforms. VPS is still the best way to go to host in most situations imo.
Agreed, I also prefer this route for projects that already have significant traffic or are making good money. But if you go the VPS route you have to consider production readiness. Best practice is to spin up at least three VPS instances, stick them behind a load balancer, most likely put a proxy in front of the load balancer, build out your preferred CICD pipeline (coolify is nice), and set up robust external logging and monitoring system. When getting started on a small project these things should also be considered.
@@backpine
Hello your video was awesome thanks! Would you suggest me to spinup database to coolify(postgres) or use something like cloudflare D1? In best scenario i'm expecting to get 1000-2000 users. Im already using coolify to host My nextjs application.
Guys I think this video is AI generated because it's too convincing. Bro you're a legend
Lol I appreciate you! TBH I want to find a way to lever AI for the editing. It took like 20 hours to edit and the quality is still mid
Love the format, thanks man
Thank you!
Would love the series.
hyper drive sounds like holy grail. gotta read the doc. good info. thanks a lot.
It does seem like a good product! I want to make a video load testing hyperdrive connected to CockroachDB for various locations around the world
Great video. Love your style of presentation. I haven’t been commenting on youtube video but this video is amazing
Thank you!
Since my secret stack is no longer secret, Primagen needs to see this. Love the video, exceptional work (BTW).
Thank you!
He's done videos on their shady business tactics somewhat recently... He'd probably recommend that you jump ship
@@michaelewen5498 They are aware that they did a big mistake regarding how they dealt with the casino website, I don't think this is going to happen again...
@@NaourassDerouichi to be totally frank I have no idea if Cloudflare will do that again. But if I had a product that was doing serious business with serious traffic it would still be a concern for me.
For side products, small SasS apps, and midsize businesses that don't have insane traffic I think CF compute is still awesome.
Great video, that makes me want to look into Cloudflare more and try stuff with the free tier 👀
I'd like to see what you build!
Remember kids, nothing in life is ever free. Everything has costs - whether in the form of switching costs, your data, your privacy or a host of other means.
Very important to consider.
Its not always like that generally on FOSS projects but yeah its one of the best thing people should know both online/real life
bro you are awesome, it would be amazing to see how you are effectively shipping a full stack app with these services! looking forward for the CF tuts serie!
Thank you!
earned a sub, i want to see limitations of free tier, other resources are confusing for workers and db etc
Thanks for this feedback! I'll make a comparison video for the tiers!
You've made your point. I can keep the credit card in my pocket. And fuck that animation of the logo, I can't properly focus my eyes to that.
Noted 😂
Love this ❤ more on how to use cloudflare please 🙏
great content, i've subscribed!
Thank you!
Good, useful and to the point. Earned a sub!
Appreciate you!
Would like to see the Golang to WebASM demoed with this
I also want to go through the process just for learning purposes
Great video. Create some videos on simple cloudflare deployments. Thanks
In the works now!
would like you to explain more cloudflare products, this is great!
Excellent video 🔥 We need more videos on CF 😎
Thank you! More to come
would love to see you build something with the sveltekit template
This is in the plans!
love you video. Thank you for sharing.
Thank you!
Damn, and that's free tier, I'm about to fall into NSA's vendor lock in😭🙏
😂
It will probably enshtify one day, I think Cloudflare is trying to expand their business from ddos protection to actual backend hosting infrastructure, that’s probably why they give good deals now…
But it might stay like this for a few years though, idk, so get it while you can!
Or maybe the expensive part will stay being only for people who need enterprise features, who knows
At the end of the day I think the compute services will just make their product more sticky for developers. Something I didn't mention in the video is that Cloudflare wants you to assign a domain name to the services you build (if the service is external facing). To do so you need to add your domain to Cloudflare. You can do this for free, but once you build a product that is making good money it would be wise to upgrade to the business plan.
When you are on the business plan your compute prices stay the same, but you'll naturally start reaching for Cloudflares security features.
I could see myself building a business on the back of Cloudflare as it is so easy to get started. Assuming I continue have a good experience on the platform i'd eventually end up as an enterprise customer. So as a long term play this seems like a good strategy for Cloudflare.
Also Cloudflare R2 Storage is bangers / buck right now.
It really is!
awesome tips, i hope you'll be able to test python too!
I need to find the time! Curious to see what the DX is like for python!
This is great thanks so much
Thank you!
Great video detailing all of cloudflares offering!
Might be a huge task but would it be possible to show us a real world usage of hyperdrive and show us the benefit in terms of latency using a single region database? For a simple solution like Hyperdrive, it would help us developers self hosting our app in a VPS to easily globally distribute our app.
Keep up the good work!
I want to do exactly this!
I'm curious to see the impact of hyperdrives global coaching when handling requests at scale.
Thanks for the suggestion!
self-hosting is king
I really like your video style! It might be even better if you added some videos in the background instead of just the black background and logo when you’re speaking. Just a thought!
Thanks for the feedback! I am new to video editing and it is harder than expected (: Hoping the quality improves in the near future!
Wow! Where were you all these days sir
Damn tier S content with 2k subscribers???
I didn't expect this video to resinate so well! Zero subs seven days ago
Cool sales pitch
Really nice video, subbed
Thank you!
Great first video! Would love to see a vercel vs cloudflare esp. with respect to hosting next.js. Give what you have said so far I don't see a reason to use vercel?
Vercel is the ultimate home for Next projects and the dev experience is really good for shipping next services. You will never feel like you are fighting the platform when using vercel.
I only use the basic features of Next by taking advantage of SSR and server side data fetching, and have only had a positive experience deploying to Cloudflare. I have heard of people having issues with the more advance features of Next when deploying to platforms other than Vercel. As I stumble upon the tradeoffs I will be sure to document those.
I love the combo of SvelteKit, Hono, and Queues on Cloudflare. I think it is really hard to beat this stack!
Thanks for useful content❤
Wait till that 10k sales team shakedown comes
very helpful video, thanks!
Thank you!
One thing to mention, D1 is limited to max size 10GB. So it's not good for big databases
This is a really good callout!
When I design database schemas I will typically use relational databases to store metadata and basic user info. Whenever I have large text blocks or JSON objects I will store these in R2/S3 and use the database to reference these objects. With this pattern, it is very hard to hit the 10GB max.
That being said, you do alway have the option of bringing your own Postgres database and using Hyperdrive to interface with in it your workers.
@@backpine It's not hard to set up multi Tenancy with D1's similar to a Turso type offering. You get something like 50k d1 so the 10gb limit is not really a problem
imo 10GB is already more than enough for most side-projects
godlike video bro, thank you so much 🔥
Thank you!!
i am glad to comment on the 1st video of this chanel . i was learning nextjs but when i saw hobby plan does not offer payment gateway implementation i thought i will not depend on vercel ecosystem. thanks to your video. one problem i have is i am from Bnagladesh and stipe,paypal is not available here. need to find a payment gateway
Thanks for the comment! If you are just getting started you can also look to SvelteKit as a replacement to Next. It is much easier to deploy SvelteKit apps to different providers. I wish I cloud offer advice about alternative payment gateways, but I have only ever used Stripe and Braintree.. I have no idea about the process of setting up these accounts outside the US /:
How did you use R2 without a credit card?
The vector db does not seem cheap or generous. It’s free up to 5 million dimensions which is only 5 thousand embeddings with most embedding models returning 1k+ dimension embeddings…
Woah man fire content ngl
Waiting for the tutorial 😊
How is the observability story in Cloudflare?
I'll be making a video about this soon. They recently rolled out a new log monitoring system for workers and you can also push logs to other observability providers. I push all logs and metrics to a service called Baselime where can create dashboards, debug, and manage alerting.
I'd say observability right out of the box with CF is just okay, but it's easy to create your own observability solution that is really good
@@backpine Thanks, looking forward to your take on this. I've used Baselime with Vercel and that integration is straight up useless because the default integration (that can't be customized) sets incoming log event metadata wrong, making most of the tool really hard to use.
It could be a case where our deployed payload (Nuxt) runs as a catch-all monolith route with an internal request router instead of gazillion individually deployed cloud functions and that use-case is simply not supported... but that's a pretty weak reason if so.
Hence, I'm interested in if Baselime (or whatever) works nicer with Cloudflare's stuff for some magical reason 🙂
Another content idea: if/how to make Cloudflare play ball with monorepos. I had a terrible time trying to use their integration and not trigger CI builds on commits that do not touch the project in question inside a monorepo. Probably that is a case of moving to use GH actions to ochestrate builds... making it a deep enough topic to probably have some hidden knowledge with a video. Doing the same in Vercel definitely involved exploring some undocumented aspect of their CLI to manage preview deployment domain alising, for example.
Thanks for the video! Good stuff 👏
Thanks for the suggestion. How long ago did you try to set up a mono repo with CF?
I structure my projects as a mono repo as I like to share schemas across services. This pattern is also good if you go the trpc route.
Anyways, pages allows you to add path changes to trigger deployments. This has worked perfectly for me so far. Not sure if it's a newish feature.
For workers you're right, it would probably make sense move the deployment to GH actions.
What a great video! Personally i prefer to build and deploy on a vps with docker or k8s because i don't want to depend on providers as they become really expensive when you have more traffic, especially vercel but for a serverless app in js or high level languages, cloudflare seem to fit very well. Have you tried to build fullstack apps with htmx (or just templ) and golang ? I always wanted to tried this stack. Anyway thanks for the advice
Thanks for the comment! I also personally favor deploying to a VPS with docker. I actually built an AI language study tool with the stack you mentioned (HTMX, Go with Fiber and templ, shipped with docker to a VPS on digital ocean). It's a very fun stack to work with and I especially love working with Go.
But when building apps that are more interactive on the client side I like working with SveltKit deployed to Cloudflare.
I actually want to make a video weighing the cost of shipping a production app (with a database, object storage, and a monitoring system) to a series of VPS instances vs Cloudflare workers. My rough estimate is that your app needs to receive *80,000,000 monthly requests for it to be more cost effective on k8s compared to Cloudflare workers.
When working with k8s what cloud provider do you prefer?
@@backpine With k8s i don't have much experience but i'm actually deploying on OVH (because i needed huge GPU instances for ai stuff and they seem to have great pricing on them), few years ago their ui/ux was terrible and badly worst than aws but now its really nice. I've deployed many times on digital ocean with their $200 credits without docker and it was great, but a long time ago.
80,000,000 requests monthly seems a lot but, if i'm not wrong it is ~31rps if your traffic is the same 24/24, which is not that much .. Also this kind of video seem really interesting, i'll be watching it on release.
I'm not a big frontend fan but i really enjoy working with sveltekit aswell.
Hope more people will enjoy your channel!
@@4lxprime730 I have not heard of the 31rps cap, and cannot find anything of the sort online? If you come across documentation with that limit can you let me know? I know the free tier of workers has a burst limit of 1000 requests a minute (which is not a lot). But if you handling that type of traffic you'd need to upgrade to the $5 a month tier anyways.
I have never heard of OVH, so I will have to take a look. Have you considered Replicate for your AI compute? They have a pay-for-usage model that seems very enticing if you want to get an AI project off the ground without renting a massive GPU instance with a fixed monthly cost
@@backpine would love a video on your vps setup/best practice, especially with databases. i'm struggling with working out what my best db option is if i'm self hosting (currently on hetzner, but thinking of going back to DO for the managed DBs)
@@nickwoodward819 EdgeDB is the way now
What?! first video and this level of detail and quality? mf'er
Thanks!
Bro made next on pages a LOT smoother in concept. Maybe they have augmented its dev experience recently, but I remember getting quite annoyed.
it can be annoying on pages. Especially if you are migrating an existing application. Cloudflare recently released a @opennextjs/cloudflare adapter for Workers. It offers next features that previous were not available with their @cloudflare/next-on-pages adapter. I'll be making a video on this topic later!
Could you please do a tutorial on SvelteKit & Cloudflare development ?
Absolutely! SvelteKit is my preferred framework
@@backpine I'd be so grateful, there is no actual good tutorial out there How to properly dev with SvelteKit & Cloudflare
Great video man
thank you!
great video
Thank you!
did you commission your logo? It looks very nice!
Thank you! I spent an hour playing with stable diffusion to create it. It's nuts what stable diffusion is capable of with open source loras
@@backpine Really? I never considered it for logo designs. Do you think you could give me keywords I cloud use?
@@chandlergreff3113 I think it is less about keywords and more about loras. You can get set up with the stable diffusion UI on your local machine (tons of youtube videos on how to get started with this). Then go try out a bunch of logo loras found on civitai. Usually loras have documentation around what key words work well. I don't remember the specific lora I used for this logo as I tried dozens and had hundreds of logos to choose from
There is also a tool called logodiffusion that implements the what I mentioned above but it costs money (:
@@backpine thanks I'll have a deeper look into those
Nice subbed for the future content
Thank you!
great video,
i just found one thing a bit odd
the in-between audio animation where your logo shows and seemingly blinks
to the voice phonetics; instead of it glowing up, can you make it different? i.e
from fill --> outline --> fill
currently it looks kinda weird
Thanks for the feedback! I'm pretty new to video editing and have a ton to learn. Editing this video too longer than I expected so I am hoping to optimize my video creation workflow while I get better at editing
Great video! ❤
thank you!
Why did you render your video as interlaced? I see interlacing lines.
I have no idea what that means 😂 I'm incredibly new to video editing. Literally leaned Davinci Resolve while editing this video.
I'd love any pointers if you have
@@backpine You rendered the video as interlaced instead of progressive scan. Interlaced video was used for analog television (and CRTs). It means frames alternate between odd and even lines, rather than the whole frame. Check your render profile and set it to progressive scan.
@@m3mem4chine86 thank you for this info!! I am checking my setting now
Great channel 👏
Thank you!
Amazing, i hope theu dont turn evil
Same. They have done sketch things in the past though.. so who knows
Do you know if this suffers from the same 30s api timeout of amplify?
Google "Cloudflare Workers Limits" and view the docs. They don't have a request duration cap, but they do cap on CPU time. If your API takes longer than 30 seconds to respond you are likely making outbound requests that take some time. In this use case you will have a a very low CPU time. To answer your question - no they don't suffer from the same timeout as amplify
Food for thought though, if you have requests that take a while put the business logic on a Queue and use your API to poll for status changes.
@@backpine thank you!
good stuff thanks mate
Nice video. Looks like you’re using hono?
Would love to see you demo tanstack router and later when it enters into beta soon, tanstack start
Yes, I heavily use Hono! The creator of the Tanstack is actually from my hometown (: I'll keep this in mind
Does it allow commercial apps in the free tier?
Not sure their T&C on that, but I wouldn't suggest building commercial apps on any free service
@backpine well, Vercel explicitly states free tier supports only non-commercial apps
How did you get an free domain?
I buy my domain names on Namecheap and use Cloudflare as a free proxy with SSL. I don't think it's possible to get a free domain name
The flow of the screen is too fast for me to follow. I can't read the code.
This is intentional, you'll just have to pause. My goal is to distill 2 hrs worth of info is less than 15 mins. Future videos that are more project based I'll share a link to the repo (:
I thought you need a credit card for R2
Just realized after making this video you have to add a credit card for R2 even with the free tier. I added a card to my account months back and forgot as I have yet breach the free usage of R2.
Thanks for the callout! All the other worker features listed do not require a credit card
i need to learn cloudflare
MEAN or MERN Stack application deployment AND CICD
Have u tried deploying python web apps with this ?
Not yet, but I'm interested in going through the process and sharing the experience
Wow, crazy vid
Thank you!
Are there any compromises about hosting next.js on cloudflare as compared to vercel?
I really only use the basic SSR and server side data fetching feature of next, so I haven't come across any issues.
But I know there are tradeoffs when deploying to other providers other than Vercel. Ieerob has a really good video titled "Self-Hosting Next.js". I suggest watching that when weighing the pros and cons of moving away from Vercel.
cf runtime can't exceed 4mb right?
@opennextjs/cloudflare ?
10mb on the $5 tier. If you ship to cf workers you will use @opennextjs/cloudflare and if you ship to cf pages you will use @cloudflare/next-on-pages.
I am trying to figure out all the tradeoffs here so I can share more info on this channel!