3 ways to run scalable web apps on Google Cloud

  Рет қаралды 10,673

Google Cloud Tech

Google Cloud Tech

Күн бұрын

Do you want to run globally scalable web apps on Google Cloud, without a lot of ongoing maintenance? In this episode of Serverless Expeditions, Martin shares how to build and run scalable web apps through three architectures he’s experienced. Watch to see the pros and cons of each architecture and figure out which one will work best for you!
Chapters:
0:00 - Intro
0:34 - Ways to build scalable web apps
1:53 - How to host web apps on Google Cloud
2:29 - #1 Firebase hosting with Cloud Functions
3:40 - #2 Firebase hosting with Cloud Run
4:37 - #3 Cloud Run hosting
5:22 - Wrap up
Checkout more episodes of Serverless Expeditions → goo.gle/ServerlessExpeditions
Subscribe to Google Cloud Tech → goo.gle/GoogleCloudTech​
#ServerlessExpeditions​ #CloudRun

Пікірлер: 38
@googlecloudtech
@googlecloudtech 2 жыл бұрын
How will you run scalable web apps? Let us know in the comments and subscribe to GCT for more Serverless Expeditions! 📣 → goo.gle/GoogleCloudTech​
@legend_mr_wayne
@legend_mr_wayne 2 жыл бұрын
The Pro and Cons are very well explained.
@TheMomander
@TheMomander 2 жыл бұрын
Thank you! It's always nice to receive kind words from a legend :-)
@HorusKrat
@HorusKrat 2 жыл бұрын
firebase hosting with cloud run sound good!
@TheMomander
@TheMomander Жыл бұрын
Yeah, I find myself using that architecture more and more. It's just so easy to set up, and you get great performance thanks to the CDN.
@boeingpameesha9550
@boeingpameesha9550 2 жыл бұрын
Thank you for sharing.
@felipersa3809
@felipersa3809 2 жыл бұрын
very enlightening video, thanks!
@venkataaraadhya
@venkataaraadhya Жыл бұрын
thanks for the question and thanks for the answer
@samys288
@samys288 8 ай бұрын
Hi, I would like know if my app need using autentication/autorization then which is better using: firebase or cloud run?
@TheMomander
@TheMomander 8 ай бұрын
That is a good question. I have built applications with both, so I thought back to the code I wrote for them. My conclusion: it doesn't matter, because the code will be very nearly the same in both cases. So you would pick Firebase or Cloud Run based on which developer experience you prefer. If you like a more integrated experience using fewer tools, go with Firebase. If you prefer container-based development, go with Cloud Run.
@samys288
@samys288 8 ай бұрын
Hi, In respect to the last use case; is possible to setting up CDN after of the deployment or not?
@TheMomander
@TheMomander 8 ай бұрын
Yes, you can set up the CDN later. Just be aware that the CDN respects any cache-control headers in your responses from Cloud Run. If your code doesn't set those headers (or if you discover that they need to be fine-tuned) you may want to revisit your code after you've added the CDN.
@Tamil-Murugan
@Tamil-Murugan Жыл бұрын
Oh nice. How about having Cloud Storage serves static files and App Engine for dynamic file. Backed by Global LB with Cloud CDN? For failure we can add Multi region Cloud storage and Multiple App Engine regional deployments? I haven't tested, just a thought.
@TheMomander
@TheMomander Жыл бұрын
That's a great architecture and I've seen others use it for production systems. I didn't call it out in the video because I prefer to use Firebase's automatic CDN over setting up Cloud CDN myself. One caveat to keep in mind: App Engine doesn't support multi-region deployments.
@zouhirelmezraoui1336
@zouhirelmezraoui1336 2 жыл бұрын
My respects, and thank you very much for providing general solutions and for all levels. We need to know how to work over the phone if it is possible, and we may be able to do it by following the steps, conditions and rules
@TheMomander
@TheMomander 2 жыл бұрын
Hi Zouhir, happy to hear you liked the video! What do you mean by "work over the phone"?
@zouhirelmezraoui1336
@zouhirelmezraoui1336 2 жыл бұрын
@@TheMomander I need to become a strong user because I continue to learn and I want to accomplish tasks as well as I study e-commerce and everything is by phone as I cannot buy a computer now and I learned a few basics of programming and why not and thanks for you
@zouhirelmezraoui1336
@zouhirelmezraoui1336 2 жыл бұрын
@@TheMomander Thank you very much for your interest and appreciation. I would like to inform you that I aspire to learn. I have participated in several courses on the Coursera platform, machine learning, operating systems, java, c++, technical support fundamentals, the bits and bytes of networking.
@TheMomander
@TheMomander 2 жыл бұрын
@@zouhirelmezraoui1336 Sorry, we aren't really equipped to provide one-on-one developer training over the phone. Sounds like you found Coursera. That is a great resource!
@timtomtimtomtimtimto
@timtomtimtomtimtimto Ай бұрын
How would you implement a JAM Stack where the HTML sites are generated and where I can still access the "moving" parts via API?
@TheMomander
@TheMomander Ай бұрын
Any of the three approaches outlined in this video would work. If you generate the HTML files at build-time, you would treat them like any other static asset. If you generate the HTML on the server for each request, you would do that in Cloud Run or Cloud Functions. You can set it up yourself, but if you are using Nextjs there is less manual setup thanks to buildpacks. You may want to check out our video "Run your Next.js app on Cloud Run" that shows you how to do it.
@dangoncalvesbr
@dangoncalvesbr Жыл бұрын
Very interesting! I’m currently using Google Apps Script to serve some HTML files and building a nice PoC of a possible future application. Maybe your first option with firebase might be the next step. I’ll have a look into it! Btw, love the videos!
@TheMomander
@TheMomander Жыл бұрын
I love it! The less code and infrastructure needed for your prototype, the better. Best of luck with your project, Danilo!
@suvadeepsarker7817
@suvadeepsarker7817 2 жыл бұрын
I have a question. Is it possible to run a serverless, scalable web application (running some custom disaster recovery solution as an example) that is multi-regional/global in Google Cloud? So far all the serverless options that I have seen are all regional.
@TheMomander
@TheMomander 2 жыл бұрын
Yes, when I'm writing this (June 27, 2022) you can host your Cloud Run service in 33 of Google Cloud's 34 regions worldwide. If your Cloud Run service has been deployed to multiple regions, you can either address each region individually, or put a load balancer in front and send each user to the closest one. Check out our video "Speed up your Cloud Run service by hosting it closer to your users" for instructions!
@muncho404
@muncho404 2 жыл бұрын
Firestore is Awesome🍓
@TheMomander
@TheMomander Жыл бұрын
I agree! I especially like how you can access it like a normal database (by putting your own server-side API in front of it) or clients can access it directly without any server-side code. Most of my web apps use a combination of these two approaches.
@revanthselvan2151
@revanthselvan2151 Жыл бұрын
Will the second architecture work well for a live streaming application?
@TheMomander
@TheMomander Жыл бұрын
I think it depends. Are you streaming video? If so, Cloud Run can handle the regular web stuff, but you will need something different to stream the video. It could be an existing service, like KZfaq, or your own media server. The Google Cloud Marketplace includes a number of media server products.
@jitenanand9535
@jitenanand9535 Жыл бұрын
what could be a good soution to host live Data Streaming Services and news publishing service
@TheMomander
@TheMomander Жыл бұрын
Any of the architectures described in this video would work well for that. You just have to think about which pros you care the most about, and which cons you want to avoid the most. Also, don't be afraid to pick the "wrong" one. It's pretty easy to switch between them. Best of luck with your project!
@franciscojavierjimenez5801
@franciscojavierjimenez5801 11 ай бұрын
Y0 he entendido que para las personas como yo nos lo quieren hacer más fácil y entendible aparte nos quieren ayudar bievanida sea su ayuda y ustedes también gracias
@franciscojavierjimenez5801
@franciscojavierjimenez5801 11 ай бұрын
Le Puedo jurar que hi Oy pos hoy nunca me he sentido más seguro veo que al mismo tiempo velan por sus ltereses y al mismo tiempo por los nuestros también gracias
@markxp2002
@markxp2002 2 жыл бұрын
Don't forget app engine!
@TheMomander
@TheMomander Жыл бұрын
Good point! I didn't mention App Engine in the video because I haven't used it myself for dynamic web apps. But it would probably work just fine.
@franciscojavierjimenez5801
@franciscojavierjimenez5801 11 ай бұрын
Ahora me sien to más protegido pogel cliud i dor ustedes tambien
@ramgopalnalluri
@ramgopalnalluri 2 жыл бұрын
Please try in multiple languages
@TheMomander
@TheMomander 2 жыл бұрын
Hi Ram! Sorry, I didn't understand your comment. Could you explain?
How to mix and match serverless and serverful components #Shorts
1:00
Google Cloud Tech
Рет қаралды 3,8 М.
Picking the right serverless platform (Part 1)
14:02
Google Cloud Tech
Рет қаралды 14 М.
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Designing a serverless finance system on Google Cloud
14:30
Google Cloud Tech
Рет қаралды 14 М.
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 454 М.
Run your React app on Google Cloud
16:28
Google Cloud Tech
Рет қаралды 15 М.
Top 3 pain points for serverless developers
10:15
Google Cloud Tech
Рет қаралды 7 М.
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,5 МЛН
What is Cloud computing?
5:38
GeeksBlaBla
Рет қаралды 27 М.
Deploy the same app to App Engine, Cloud Functions, and Cloud Run?
15:46
Google Cloud Tech
Рет қаралды 10 М.
Is AWS AppRunner the worst way to run containers?
13:02
mkdev
Рет қаралды 2,3 М.
Introduction to Google Cloud
22:25
Google Cloud Tech
Рет қаралды 137 М.
Why You NEED To Learn Terraform | Practical Tutorial
27:33
Travis Media
Рет қаралды 103 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
Mastering Picture Editing: Zoom Tools Tutorial
0:52
Photoo Edit
Рет қаралды 505 М.
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН