I've been sleeping on Cloudflare's compute offerings - Free serverless hosting that scales

Поділитися
Вставка
  • Опубліковано 24 жов 2024

КОМЕНТАРІ • 358

  • @backpine
    @backpine  2 дні тому +9

    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.

    • @okage_
      @okage_ 2 дні тому

      wonder why

    • @pable2
      @pable2 2 дні тому

      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

    • @dalisoft
      @dalisoft 2 дні тому

      Hyperdrive is available only in Paid plans. I really hope it also become available in Free tier

  • @zzzz6538
    @zzzz6538 7 днів тому +260

    bro is edging his credit card

  • @HerroEverynyan
    @HerroEverynyan 6 днів тому +125

    holy shit my man came out of nowhere with S-tier content

    • @dogafincan
      @dogafincan 6 днів тому +4

      My thoughts exactly wow

    • @Businessology.
      @Businessology. 6 днів тому +2

      i totally agree but can't put my finger on why exactly. what do you like most about it?

    • @backpine
      @backpine  6 днів тому +4

      Appreciate you all

  • @elliott.builds
    @elliott.builds 8 днів тому +132

    We need more Cloudflare tutorials 🙌

    • @backpine
      @backpine  8 днів тому +9

      Any specific frameworks you want a tutorial for?

    • @elliott.builds
      @elliott.builds 8 днів тому +1

      @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.

    • @tejassethi9319
      @tejassethi9319 8 днів тому +1

      @@backpine hono and workers with auth

    • @hayskapoy
      @hayskapoy 7 днів тому +5

      @@backpine remix please!

    • @franciscosilva2135
      @franciscosilva2135 6 днів тому

      @@backpinedo next js since it is on a peak rn.

  • @jit-r5b
    @jit-r5b 6 днів тому +69

    Cloudflare should totally sponsor you. The sales pitch so good I almost wanna completely move to it 🤣

    • @backpine
      @backpine  6 днів тому +3

      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!

    • @Businessology.
      @Businessology. 6 днів тому

      @@backpine if im forking other peoples nextjs projects and they are are not using cloudflare, what changes would i need to make?

  • @tiagodev5838
    @tiagodev5838 5 днів тому +19

    In just over 10 minutes you’ve helped me understand more about Cloudflare than hours of research

    • @backpine
      @backpine  5 днів тому +3

      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

    • @tiagodev5838
      @tiagodev5838 5 днів тому

      @@backpine fantastic work!!

  • @CaramelFur
    @CaramelFur 6 днів тому +10

    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.

    • @backpine
      @backpine  5 днів тому +11

      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

  • @NumbSoul02
    @NumbSoul02 16 годин тому

    The information sweetened with each passing minute!! 👍🏻

  • @tanmaysingewar
    @tanmaysingewar 6 днів тому +21

    Is it real 615 subscribers only and quality of videos above the creators having millions subscribers
    Keep growing!!!

    • @backpine
      @backpine  6 днів тому +4

      Zero subscribers 3 days ago lol.I was not expecting this video to resonate with so many people! Thanks for your comment!

    • @mucool328
      @mucool328 4 дні тому

      @@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

  • @raymondaxyz
    @raymondaxyz 5 днів тому +3

    Impressive. Integrating cloudflare has been a smooth experience, I just didn't realise there's more 😮

  • @owencooke3983
    @owencooke3983 5 днів тому +3

    Dude, absolutely amazing video. The fast-paced walk through + code snippets are soooo so useful!

  • @georgi_my
    @georgi_my 6 днів тому +9

    Best video I have seen all week! Absolutely amazing!

  • @iloos7457
    @iloos7457 7 днів тому +6

    This format is so nice!!

  • @Mushbee
    @Mushbee 6 днів тому +1

    Exactly what I was looking for this week. Amazing how perfect timing this video hit!

    • @backpine
      @backpine  5 днів тому

      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!

  • @awesomeworstgamer
    @awesomeworstgamer 4 дні тому +1

    Literally one of the best videos I've seen on the topic! Instant subscribe!

  • @dalisoft
    @dalisoft 5 днів тому +2

    Impressive tutorial. It’s already on recommendation. Good job

  • @ecommerce9926
    @ecommerce9926 6 днів тому +1

    From now on, I'll make sure to watch and like every video you post.

  • @jatih9657
    @jatih9657 6 днів тому +3

    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.

    • @backpine
      @backpine  6 днів тому +1

      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

    • @jatih9657
      @jatih9657 6 днів тому

      @@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.

  • @anatoliansettler9922
    @anatoliansettler9922 5 днів тому

    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

    • @backpine
      @backpine  5 днів тому

      Glad to hear this video provided some motivation!

  • @SoloJetMan
    @SoloJetMan 6 днів тому +13

    Instantly subbed and liked. Would love to see a an entire series on the process & flow you covered here.

  • @MjStryker51
    @MjStryker51 9 днів тому +9

    Nice video. Can't wait to see the next one! 😉

  • @2penry2
    @2penry2 5 днів тому +2

    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
      @backpine  5 днів тому +1

      Durable objects are awesome and very few people know about it.

    • @2penry2
      @2penry2 5 днів тому

      @@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.

  • @PieXD124
    @PieXD124 5 днів тому +4

    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 :)

    • @backpine
      @backpine  4 дні тому

      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.

    • @PieXD124
      @PieXD124 4 дні тому

      @@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

    • @backpine
      @backpine  4 дні тому

      @@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

  • @utkarshseth3082
    @utkarshseth3082 3 дні тому

    I am building my SAAS, and that's exactly what i was looking for, thanks man

    • @backpine
      @backpine  3 дні тому

      Good look shipping your idea!

    • @utkarshseth3082
      @utkarshseth3082 3 дні тому

      I Tried to deploy my nextjs project but get lots of errors for nextjs

    • @utkarshseth3082
      @utkarshseth3082 3 дні тому

      It's not compatible for nextjs app

  • @Someone1337.
    @Someone1337. 5 днів тому +4

    Until they pull the bait & switch

  • @lukebierbaum
    @lukebierbaum 6 днів тому

    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

    • @backpine
      @backpine  5 днів тому

      I appreciate you! I just created this channel a few days back and didn't expect this video to resinate with so many people!

  • @nofoobar
    @nofoobar 4 дні тому +1

    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.

    • @backpine
      @backpine  4 дні тому

      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.

  • @basicbasis
    @basicbasis 3 дні тому +1

    You just earned a subscriber bro🔥❤

  • @helgelol
    @helgelol 6 днів тому

    What a hidden gem you are, subbed, keep on rocking!

  • @bijan-f
    @bijan-f 2 дні тому

    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.

    • @backpine
      @backpine  2 дні тому +1

      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.

    • @nicholas4523
      @nicholas4523 День тому

      ​@@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.

  • @panuozzo7769
    @panuozzo7769 2 дні тому

    Guys I think this video is AI generated because it's too convincing. Bro you're a legend

    • @backpine
      @backpine  2 дні тому

      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

  • @DavidDiaz-zg5sv
    @DavidDiaz-zg5sv 6 днів тому +1

    Love the format, thanks man

  • @abh1yan
    @abh1yan 8 днів тому +2

    Would love the series.

  • @treksis
    @treksis 6 днів тому

    hyper drive sounds like holy grail. gotta read the doc. good info. thanks a lot.

    • @backpine
      @backpine  5 днів тому

      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

  • @2ksplash532
    @2ksplash532 4 дні тому

    Great video. Love your style of presentation. I haven’t been commenting on youtube video but this video is amazing

  • @NaourassDerouichi
    @NaourassDerouichi 5 днів тому

    Since my secret stack is no longer secret, Primagen needs to see this. Love the video, exceptional work (BTW).

    • @backpine
      @backpine  5 днів тому +1

      Thank you!

    • @michaelewen5498
      @michaelewen5498 5 днів тому

      He's done videos on their shady business tactics somewhat recently... He'd probably recommend that you jump ship

    • @NaourassDerouichi
      @NaourassDerouichi 5 днів тому

      @@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...

    • @backpine
      @backpine  3 дні тому

      @@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.

  • @Pyrospower
    @Pyrospower 6 днів тому +4

    Great video, that makes me want to look into Cloudflare more and try stuff with the free tier 👀

    • @backpine
      @backpine  6 днів тому

      I'd like to see what you build!

  • @r8risk
    @r8risk 4 дні тому +1

    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.

    • @backpine
      @backpine  4 дні тому +1

      Very important to consider.

    • @skygnd
      @skygnd 4 дні тому +1

      Its not always like that generally on FOSS projects but yeah its one of the best thing people should know both online/real life

  • @jseng818
    @jseng818 6 днів тому

    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!

  • @billubaziger
    @billubaziger 8 днів тому +2

    earned a sub, i want to see limitations of free tier, other resources are confusing for workers and db etc

    • @backpine
      @backpine  8 днів тому +1

      Thanks for this feedback! I'll make a comparison video for the tiers!

  • @SuperElephant
    @SuperElephant 6 днів тому +1

    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.

  • @abdelilahou2822
    @abdelilahou2822 7 днів тому

    Love this ❤ more on how to use cloudflare please 🙏

  • @nestnik
    @nestnik 3 дні тому

    great content, i've subscribed!

  • @SlappyZA
    @SlappyZA 5 днів тому

    Good, useful and to the point. Earned a sub!

  • @js32096
    @js32096 5 днів тому +2

    Would like to see the Golang to WebASM demoed with this

    • @backpine
      @backpine  5 днів тому +1

      I also want to go through the process just for learning purposes

  • @webdancer
    @webdancer 6 днів тому +1

    Great video. Create some videos on simple cloudflare deployments. Thanks

    • @backpine
      @backpine  6 днів тому +1

      In the works now!

  • @jatinhemnani1029
    @jatinhemnani1029 8 днів тому

    would like you to explain more cloudflare products, this is great!

  • @nicmilot8914
    @nicmilot8914 9 днів тому

    Excellent video 🔥 We need more videos on CF 😎

    • @backpine
      @backpine  9 днів тому

      Thank you! More to come

  • @okage_
    @okage_ 2 дні тому

    would love to see you build something with the sveltekit template

    • @backpine
      @backpine  2 дні тому

      This is in the plans!

  • @user-yz7fl7mf8g
    @user-yz7fl7mf8g 4 дні тому

    love you video. Thank you for sharing.

  • @gibzrival1565
    @gibzrival1565 5 днів тому +1

    Damn, and that's free tier, I'm about to fall into NSA's vendor lock in😭🙏

  • @RemotHuman
    @RemotHuman 6 днів тому

    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

    • @backpine
      @backpine  6 днів тому

      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.

  • @i3looi2
    @i3looi2 5 днів тому

    Also Cloudflare R2 Storage is bangers / buck right now.

  • @garethjax
    @garethjax 6 днів тому +1

    awesome tips, i hope you'll be able to test python too!

    • @backpine
      @backpine  5 днів тому

      I need to find the time! Curious to see what the DX is like for python!

  • @daviesgeek
    @daviesgeek 3 дні тому

    This is great thanks so much

  • @singha360
    @singha360 7 днів тому

    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!

    • @backpine
      @backpine  7 днів тому +1

      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!

  • @FirstYokai
    @FirstYokai 5 днів тому

    self-hosting is king

  • @OlleSTools
    @OlleSTools 6 днів тому

    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!

    • @backpine
      @backpine  6 днів тому

      Thanks for the feedback! I am new to video editing and it is harder than expected (: Hoping the quality improves in the near future!

  • @seeker4430
    @seeker4430 5 днів тому

    Wow! Where were you all these days sir

  • @istudy9
    @istudy9 3 дні тому

    Damn tier S content with 2k subscribers???

    • @backpine
      @backpine  3 дні тому

      I didn't expect this video to resinate so well! Zero subs seven days ago

  • @MrAdnan252
    @MrAdnan252 5 днів тому

    Cool sales pitch

  • @Cyanide0112
    @Cyanide0112 6 днів тому

    Really nice video, subbed

  • @ikbo
    @ikbo 6 днів тому

    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?

    • @backpine
      @backpine  6 днів тому

      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!

  • @zaheerbeg4810
    @zaheerbeg4810 5 днів тому

    Thanks for useful content❤

  • @sarjannarwan6896
    @sarjannarwan6896 13 годин тому

    Wait till that 10k sales team shakedown comes

  • @kawa14
    @kawa14 7 днів тому

    very helpful video, thanks!

  • @sakibhasandev
    @sakibhasandev 8 днів тому +2

    One thing to mention, D1 is limited to max size 10GB. So it's not good for big databases

    • @backpine
      @backpine  8 днів тому +2

      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.

    • @alexnahas2907
      @alexnahas2907 8 днів тому

      @@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

    • @iyxan23
      @iyxan23 6 днів тому

      imo 10GB is already more than enough for most side-projects

  • @kmdavidds
    @kmdavidds 6 днів тому

    godlike video bro, thank you so much 🔥

  • @iamfahimshahriar
    @iamfahimshahriar 6 днів тому

    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

    • @backpine
      @backpine  6 днів тому

      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 /:

  • @ticua07
    @ticua07 5 днів тому

    How did you use R2 without a credit card?

  • @ResIpsa-pk4ih
    @ResIpsa-pk4ih 6 днів тому

    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…

  • @salamandr4111
    @salamandr4111 6 днів тому

    Woah man fire content ngl

  • @CHETAN_I_007
    @CHETAN_I_007 5 днів тому

    Waiting for the tutorial 😊

  • @infdesu
    @infdesu 4 дні тому

    How is the observability story in Cloudflare?

    • @backpine
      @backpine  4 дні тому +1

      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

    • @infdesu
      @infdesu 4 дні тому

      @@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 👏

    • @backpine
      @backpine  4 дні тому

      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.

  • @4lxprime730
    @4lxprime730 9 днів тому +7

    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

    • @backpine
      @backpine  9 днів тому +2

      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?

    • @4lxprime730
      @4lxprime730 7 днів тому

      @@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!

    • @backpine
      @backpine  7 днів тому

      @@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

    • @nickwoodward819
      @nickwoodward819 6 днів тому

      @@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)

    • @raideez
      @raideez 6 днів тому

      @@nickwoodward819 EdgeDB is the way now

  • @electrolyteorb
    @electrolyteorb 5 днів тому

    What?! first video and this level of detail and quality? mf'er

  • @jcsc2001
    @jcsc2001 5 днів тому

    Bro made next on pages a LOT smoother in concept. Maybe they have augmented its dev experience recently, but I remember getting quite annoyed.

    • @backpine
      @backpine  5 днів тому

      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!

  • @s1lvax_
    @s1lvax_ 5 днів тому

    Could you please do a tutorial on SvelteKit & Cloudflare development ?

    • @backpine
      @backpine  5 днів тому +1

      Absolutely! SvelteKit is my preferred framework

    • @s1lvax_
      @s1lvax_ 5 днів тому

      @@backpine I'd be so grateful, there is no actual good tutorial out there How to properly dev with SvelteKit & Cloudflare

  • @shuZro
    @shuZro 6 днів тому

    Great video man

  • @filipimiparebine
    @filipimiparebine 5 днів тому

    great video

  • @chandlergreff3113
    @chandlergreff3113 2 дні тому

    did you commission your logo? It looks very nice!

    • @backpine
      @backpine  2 дні тому +1

      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

    • @chandlergreff3113
      @chandlergreff3113 2 дні тому

      @@backpine Really? I never considered it for logo designs. Do you think you could give me keywords I cloud use?

    • @backpine
      @backpine  2 дні тому +1

      @@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 (:

    • @chandlergreff3113
      @chandlergreff3113 2 дні тому

      @@backpine thanks I'll have a deeper look into those

  • @GeorgeInTech
    @GeorgeInTech 6 днів тому

    Nice subbed for the future content

  • @hamzzak
    @hamzzak 8 днів тому

    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

    • @backpine
      @backpine  7 днів тому

      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

  • @AjayCoding
    @AjayCoding 6 днів тому

    Great video! ❤

  • @m3mem4chine86
    @m3mem4chine86 4 дні тому

    Why did you render your video as interlaced? I see interlacing lines.

    • @backpine
      @backpine  4 дні тому

      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

    • @m3mem4chine86
      @m3mem4chine86 4 дні тому

      @@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.

    • @backpine
      @backpine  3 дні тому

      @@m3mem4chine86 thank you for this info!! I am checking my setting now

  • @sahiltiwaskar
    @sahiltiwaskar 6 днів тому

    Great channel 👏

  • @kasper369
    @kasper369 5 днів тому

    Amazing, i hope theu dont turn evil

    • @backpine
      @backpine  5 днів тому

      Same. They have done sketch things in the past though.. so who knows

  • @NAE333
    @NAE333 4 дні тому

    Do you know if this suffers from the same 30s api timeout of amplify?

    • @backpine
      @backpine  4 дні тому +1

      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.

    • @NAE333
      @NAE333 3 дні тому

      @@backpine thank you!

  • @IvanKlimek
    @IvanKlimek 5 днів тому

    good stuff thanks mate

  • @whodoneitx2x
    @whodoneitx2x 6 днів тому

    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

    • @backpine
      @backpine  6 днів тому

      Yes, I heavily use Hono! The creator of the Tanstack is actually from my hometown (: I'll keep this in mind

  • @nizarelfennani7477
    @nizarelfennani7477 3 дні тому

    Does it allow commercial apps in the free tier?

    • @backpine
      @backpine  3 дні тому

      Not sure their T&C on that, but I wouldn't suggest building commercial apps on any free service

    • @nizarelfennani7477
      @nizarelfennani7477 3 дні тому

      @backpine well, Vercel explicitly states free tier supports only non-commercial apps

  • @Tanvird555
    @Tanvird555 5 днів тому

    How did you get an free domain?

    • @backpine
      @backpine  5 днів тому

      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

  • @rea_kr
    @rea_kr 2 дні тому

    The flow of the screen is too fast for me to follow. I can't read the code.

    • @backpine
      @backpine  2 дні тому

      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 (:

  • @wagyumedia
    @wagyumedia 5 днів тому

    I thought you need a credit card for R2

    • @backpine
      @backpine  5 днів тому

      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

  • @Fiend404
    @Fiend404 6 днів тому

    i need to learn cloudflare

  • @shaik-arif-dev
    @shaik-arif-dev 5 днів тому

    MEAN or MERN Stack application deployment AND CICD

  • @omamokejeffrey5626
    @omamokejeffrey5626 5 днів тому

    Have u tried deploying python web apps with this ?

    • @backpine
      @backpine  5 днів тому

      Not yet, but I'm interested in going through the process and sharing the experience

  • @reallight_
    @reallight_ 6 днів тому +1

    Wow, crazy vid

  • @ikbo
    @ikbo 6 днів тому

    Are there any compromises about hosting next.js on cloudflare as compared to vercel?

    • @backpine
      @backpine  6 днів тому

      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.

  • @AjayCoding
    @AjayCoding 6 днів тому

    cf runtime can't exceed 4mb right?

    • @AjayCoding
      @AjayCoding 6 днів тому

      @opennextjs/cloudflare ?

    • @backpine
      @backpine  5 днів тому

      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!