We as a developer community would do ourselves a big service by using much better descriptive names. Serverless implies no server yet it does eventually run on a server somewhere. Same confusion we had about NoSQL. It really wasn't about not using SQL anymore, but really about different ways of storing data in a database. After all, you still have to run queries in some language against your data (the Q and L parts of SQL).
Don’t know what’s wrong with the names tbh. It’s always from the developer’s perspective. The term serverless is correct in this case since the developer does not have to deal with a server at all. NoSQL is also referring to No Structured QL which is correct as well since there is no defined strict structure in NoSQL databases.
@@nandomax3 I really need to put this in practice. I'm wondering whether cost wise it will benefit general tourism website better than a shared web hosting would do.
Serverless can help you to save time and a lot of headache. But the problem is, we will see more & more we new features and new "functions" from those providers. Those companies, especially (Google, Amazon & Microsoft) will obviously take control of this market and it can be very dangerous for the future of internet and development in general, we will see new generations of developers just relaying of them. They will not learn programming neither development, they will only learn to use those "paied" tools from those big companies and be dependent of them.
The thing that I find mistefying about "serverless" is that people talk about not having to manage a server, while they open an interface to manage their serverless stuff. They don't have to worry about deploying they say,, while they open their deployment tool. When you get right down to it, serverless means "using the devops stack from a different company, on a manages server".
Nice explanation! Also, when I explain serverless functions to other people, I use "Meeseeks" analogy from Rick and Morty. They just do what they supposed to do and gone :)
Thanks for the clear and concise explanation! I send people to this video when they seem confused about serverless. As for me: I've messed around with it and I go serverless when I'm forced to do so (for some parts of Alexa, for instance), but most of the money and work these days is earmarked for full-stack developers. Serverless devs are getting $75k while full-stack are getting $185k. In my experience, the serverless model seems to be favored by younger devs, but I can't tell if that's because they haven't had time to delve into full-stack, because they just don't like full-stack, because the methodology-du-jour is serverless, or because the older devs (me, late-30s) grew up in a full-stack world.
Hey James! I'm a subscriber of your channel and Traversy Media. And it was very strange to see you at the first moment. 😃😁 Thank you for this video. I really like it!
So client asks "how much will my website cost?". You can just answer: "well, it depends...". Also, now we need "frontless". Then web developer will become "man in the middle" who just buys stuff and sells it to clients. xD
@Andy Stretch That part was just a joke... But serverless concept sounds good only when you have resources with no bounds. Or you don't expect services to be used in your projects (like when you buy a car and keep it in garage and only occasionally take it for a spin).
@@0NEGUY Yea I understand but it just bugs me. It reminds me of back in the day of the blackberry's where people were "pinging" eachother. I can't help it haha
I'm using aws amplify framework which gives the option to use serverless functions, still learning, using their new DataStore approach which is offline first, local indexed gets synced with cloud database.
Serverless is all fine and dandy until your dependencies get just slightly complex, og you jobs have to run more than 5 minutes. Then you use docker, which can not be run on a consumption-based plan, thus you end up hosting it on a server. Also in Azure you need an "app service plan", which is basically a pool of servers.
Thank you so much, even thou I knew all about serverless functions I never figured how I can use them in my products. You gave me great application for these functions. Thanks again. Few place can see where to utilise these functions like register/login/forgotpass/verifysms/verifyemail/opt in newsletters. 👍🏻
Is it possible to connect serverless to databases? You said that there is no persistence of data as there is no file system in serverless, but ultimately, most of the applications need data persistence, mostly in the form of databases.
Yo dude, thanks for the explanation. After I watched the video I thought, what is the difference between API and Serverless *. I checked your videos and I couldn't find any if you are already done. I've googled it and I saw some medium articles. So, that could be a good topic for your next video. Thanks,
I can recommend Google Cloud Run - works Perfectly with Docker containers and it billing its like lambda functions you pay only for what you use in 100ms increments.
This is awesome! :)))) Could you please make a tutorial how did you do that video image and the action in Netlify?
4 ปีที่แล้ว +2
Hey James great videos, I'll check out your courses too. I am using Jekyll and GatsbyJS. Would you consider doing a video about the cover function you've shown here? That'll surely be a hit
I am using Webiny Serverless Framework - Except that it provides a complete plugin-based admin interface. When you set up a webiny project, it comes with a set of ready-made apps such as a Headless CMS, Page builder, Form builder, and File manager - On top of that, it is Open Source Software - github.com/webiny/webiny-js
Server-side rendering is actually how we originally render pages e.g. with PHP, JSP, etc. The client requests a page and the server renders the HTML and sends it back to the client. The page is rendered on the server per request. With the prominence of JavaScript in the server/backend using Node, new tools came up to allow usage of JS to render server side. Commonly-used tools used today for SSR include templating engines like EJS or Pug, React frameworks like Next.js, Nuxt.js for Vue, and more.
@@BeFourCM Server side rendering is regarded as more performant because a web server's machine is usually more powerful than a typical user's computer thus they can render the page much faster. Another benefit of SSR is SEO and dynamic meta tags for social-media sharing. Yes, you can do hybrid Server-side Rendering and Client-side Rendering with JavaScript frameworks since JS was originally used to render, update and manipulate the DOM on the browser, you can now do the same thing on the server using Node. Render the page server-side using React and generate an HTML file, then send it to your client.
@@BeFourCM It is much superior but everything has tradeoffs and this time it's the price. You'll need a server to render your pages for EVERY request which is costly. With Client-side rendering, you can just host the build files to a CDN like Netlify, Vercel or even Github pages and let the users request the built index.html and it'll be cached for everyone else.
@@BeFourCM If your data doesn't change that often, i.e. a static website, the better approach is to use Static Site Generators like Hugo, Next.js, Gatsby.js. They render the html files during build time and not per request and since these are pre rendered html files, you can host them on a CDN as well.
I used to think it meant, server less. This is an awesome introduction. It seems soon traditional shared web hosting will die. What is most likely to happen to apps like Cpanel, Plesk ?
Now, before I elaborate on the question, "What Is Serverless?", I'd like to say a huge 'thank you' to Brad Traversy for giving me the opportunity to appear on his channel. I'm very grateful and it's a real privilege. Thank you, Brad.
I struggle to see the benefit, if you're already running a server... ie, I have a website that's hosted on my server. Why would I outsource a function when my server is already up and running, and local to my codebase? I do see some value in maybe things that are intensive like running a ml algo or something, if I just don't want to burden my server. but other than performative actions, this just seems like an extra layer of abstraction.
Doesn't fit every scenario. If you're solution works for you, that's great. If you have any overhead in managing you're own server, maybe it's worth considering.
@@JamesQQuick obviously... I'm just trying to understand the benefit (specifically in the point where you're already paying for a server). I've been developing for 20 years, so I'm definitely prone to missing the benefits of progress lol
I have a question regarding serverless - So i cache something, no matter the size of my application will i always have access to that cache no matter how big my application becomes? If i serve 10 or 100.000 clients doesnt matter?
Just how sophisticated can be a backend which only uses serverless functions? Is there a form of persisting data with them (connecting them with a DB)? Or are they used primarily to process a request and return a result without storing any data?
Imo you start paying more with serverless when the site scales up. If you need to make many calls to your database to verify multiple sessions or save various results, it is easy to use the 125,000 calls a month without even considering forms, identity and so on
I'm not a developer and have no idea what you're talking about. I just clicked on a link and it went to a page that said: Serverless Function crashed 500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED And then there's an ID I just came here hoping for a clue and wondering if this indicates my computer has a virus? Help or please point me where dummies go for answers
I think that this new technologies as serverless were builded for people that don't know too much about computer science and want to focus to only one area, development. That's why we see alot of kids only focusing in learn python (easy programming language) sacrificing the performance. As result we have an army of kids with no preparation working on computer science and talking that university isn't necessary.
Actually, I think the serverless now is a combanation of Faas and Baas. Most people think serverless is a function as a service. Function as a service has limitation even though it is really fast and convenient now.
I’m pretty new to backend development etc. can I still create a user registration and login function in express js with serveless functions? Because netlify offers server less functions and I want to know if that’s possible
Would love a video on *low cost* techniques for Amazon Vs Google cloud. Especially having additional focus on how to begin to scale while keeping costs down. Lots of people are interested in getting into cloud but the info is a bit.. cloudy.
Everywhere is exactly the same explanations but what I figured out is missing: how to invoke netlify functions from inside of app without moving there api logic. What if I do want to use axios but at the same time want to get environment variable with api key using serverless function?
I think you have to move api logic to serverless the same way you would with a regular server. You can't send private credentials to the browser. It's not secure.
I use google firebase for some web apps and have stopped using local state for these projects. Each module is update in realtime with firebase. I feel local state is redundant at this point. Anyone else feel this way?
Serverless is like renting a flat instead of building your own house; a flat is ok for young couples but probably won't fit them as they grow their family.
Thanks Brad for everything you have been doing and done for developers.
based preet
It's when you go to a restaurant and no one takes your order.
Nice one😂😂
But still you get food
That's it!!
yeah, lol, that's real "no server"
I hate when that happens!
We as a developer community would do ourselves a big service by using much better descriptive names. Serverless implies no server yet it does eventually run on a server somewhere. Same confusion we had about NoSQL. It really wasn't about not using SQL anymore, but really about different ways of storing data in a database. After all, you still have to run queries in some language against your data (the Q and L parts of SQL).
@@Reza-fp6xl reverse psychology technique, some say it works, nut it bugs me too.
Don’t know what’s wrong with the names tbh. It’s always from the developer’s perspective. The term serverless is correct in this case since the developer does not have to deal with a server at all. NoSQL is also referring to No Structured QL which is correct as well since there is no defined strict structure in NoSQL databases.
What about NoS-QL
Thanks James! I'm impressed you did that in one take without stumbling on your words. Teaching is your calling.
We had a recent e-commerce project that each component of the site was its own lambda function. Very efficient.
hopefully there wasn't more than 5 components
@@edwinthatsnotmyname3670 I can see the value of serverless for smaller projects
@@nandomax3 I really need to put this in practice. I'm wondering whether cost wise it will benefit general tourism website better than a shared web hosting would do.
@@davidofug If that is a static website, you won't need to spend a dime on hosting since CDN's are basically free nowadays.
Very nice! I'm using them more and more
Serverless can help you to save time and a lot of headache. But the problem is, we will see more & more we new features and new "functions" from those providers. Those companies, especially (Google, Amazon & Microsoft) will obviously take control of this market and it can be very dangerous for the future of internet and development in general, we will see new generations of developers just relaying of them. They will not learn programming neither development, they will only learn to use those "paied" tools from those big companies and be dependent of them.
Sounds like what people said about calculators.
I completely agree!
I don't disagree with your perspective. Keep in mind though that you have just described the history of the whole human existence.
being dependant on something that saves you time and money is not bad.
@@GuRuGeorge03 And that, my friends, is why 72% of everything in Walmart is made in China.
recently i was wondering about it what is serverless and here it comes in my feed. thanks for the video :)
same to me
Google reading your thoughts now. Lol
Google is spying...
Good for u
Glad this helped!!
Informative and clean explanation. Thanks James!
The thing that I find mistefying about "serverless" is that people talk about not having to manage a server, while they open an interface to manage their serverless stuff. They don't have to worry about deploying they say,, while they open their deployment tool.
When you get right down to it, serverless means "using the devops stack from a different company, on a manages server".
I'm not sure what you mean. I don't have a deployment tool in my workflow other than checking into source control?
Nice explanation! Also, when I explain serverless functions to other people, I use "Meeseeks" analogy from Rick and Morty. They just do what they supposed to do and gone :)
Very nice!!
can you tell me from where you read this analogy or explain that to me please ?
Thanks for the clear and concise explanation! I send people to this video when they seem confused about serverless.
As for me: I've messed around with it and I go serverless when I'm forced to do so (for some parts of Alexa, for instance), but most of the money and work these days is earmarked for full-stack developers.
Serverless devs are getting $75k while full-stack are getting $185k.
In my experience, the serverless model seems to be favored by younger devs, but I can't tell if that's because they haven't had time to delve into full-stack, because they just don't like full-stack, because the methodology-du-jour is serverless, or because the older devs (me, late-30s) grew up in a full-stack world.
Hey James! I'm a subscriber of your channel and Traversy Media. And it was very strange to see you at the first moment. 😃😁 Thank you for this video. I really like it!
So client asks "how much will my website cost?".
You can just answer: "well, it depends...".
Also, now we need "frontless". Then web developer will become "man in the middle" who just buys stuff and sells it to clients. xD
@Andy Stretch Explain, how can you predict total project price, when it depends on data usage.
@Andy Stretch That part was just a joke... But serverless concept sounds good only when you have resources with no bounds. Or you don't expect services to be used in your projects (like when you buy a car and keep it in garage and only occasionally take it for a spin).
No. You should always know that answer...serverless or not.
@Coolemur actually we do that with WordPress themes.
@@alexradu1921nah, the missing part in wp themed projects is total customisation with no dev help. Basically - AI for front development.
I love it when you feature other smaller TH-camrs. Really helps us find them. James has awesome content and covers a lot of stuff I do day to day!
As a developer, the term "serverless" bugs me way more than it should. I just can't get around the "but it's not though" part.
I believe it really comes from the idea that *you* don't need to manage the server yourself, so in that sense it's 'serverless' for the developers
@@0NEGUY Yea I understand but it just bugs me. It reminds me of back in the day of the blackberry's where people were "pinging" eachother. I can't help it haha
haha that's fair. Sometimes naming is not the best
Great video. Watched it from Cameroon. So much covered in 8 mins. Thanks Traversy..
Great explanation!! I love serverless!!
Thanks!! Me too :)
To avoid cold starts, you can build a mechanism that periodically pings all of your serverless functions to keep them warm.
You can create a cloud watch event to ping periodically
I'm using aws amplify framework which gives the option to use serverless functions, still learning, using their new DataStore approach which is offline first, local indexed gets synced with cloud database.
Serverless is all fine and dandy until your dependencies get just slightly complex, og you jobs have to run more than 5 minutes. Then you use docker, which can not be run on a consumption-based plan, thus you end up hosting it on a server. Also in Azure you need an "app service plan", which is basically a pool of servers.
next.js is a decent serverless framework for react, so useful
I will be using Next for the Traversy Media platform :) great stuff
@@TraversyMedia Are you creating a platform like udemy or it's something else
NextJS is not a serverless framework though. It uses a server to render and generate the pages.
@@TraversyMedia Great decision. It's definitely a well-made piece of tech. Exciting for your platform.
@@daheck81 You can use Next.js for Client-side Rendering or Static Site Generation which requires no server at all.
it's like Firestore, You don't have to deal much with LOTS of stuff but could still avail all the facilities of a backend.
I was just checking his channel last night
He is awesome thank you for having him
Ah cool. Thank you :)
Hi Brad, I think your are lucky man meet this awesome Person, really useful video and great discussion, thanks a million Brad and James 👍
my dude needs a keeps sponsor, good details thank you!
had just finished watching a firebase tutorial when this popped up on twitter. amazing!
Aw cool! Are you enjoying firebase?
@@JamesQQuick absolutely!
Thank you so much, even thou I knew all about serverless functions I never figured how I can use them in my products. You gave me great application for these functions. Thanks again.
Few place can see where to utilise these functions like register/login/forgotpass/verifysms/verifyemail/opt in newsletters. 👍🏻
Awesome! Glad to hear that :)
That’s a great tutorial Brad and James!!❤️❤️
Eagerly waiting for Serverless video. Respect from Pakistan 🇵🇰
Hey first time watching you. Amazing retention rate. I'm subbing.
I have used aws serveless with lambda before and it's quite interesting to use.
Awesome man! I like your channel.
Is it possible to connect serverless to databases? You said that there is no persistence of data as there is no file system in serverless, but ultimately, most of the applications need data persistence, mostly in the form of databases.
Great video, James!
Super cool. Servlerless seems like a really cool and viable way to go. Thanks for the video.
This was so much more interesting than my class's readings haha
Good explanation James, thanks!
Yo dude, thanks for the explanation.
After I watched the video I thought, what is the difference between API and Serverless *. I checked your videos and I couldn't find any if you are already done. I've googled it and I saw some medium articles. So, that could be a good topic for your next video.
Thanks,
Clean and clear
8 min video covered 80 min content
Thank you..
haha this is one of my favorite comments!
I can recommend Google Cloud Run - works Perfectly with Docker containers and it billing its like lambda functions you pay only for what you use in 100ms increments.
Awesome! I was hoping for a video that could talk about jamstack beyond netlify.
Great content. Thank you for posting this video
Current status: Understanding Serverless from sir James
by sir Brad!!
This is so helpful Brad ♥️
Very informational. Thank you :)
Yo seeing James first made me think I was going insane and crossing wires in my brain
This is awesome! :)))) Could you please make a tutorial how did you do that video image and the action in Netlify?
Hey James great videos, I'll check out your courses too. I am using Jekyll and GatsbyJS. Would you consider doing a video about the cover function you've shown here? That'll surely be a hit
I am using Webiny Serverless Framework - Except that it provides a complete plugin-based admin interface. When you set up a webiny project, it comes with a set of ready-made apps such as a Headless CMS, Page builder, Form builder, and File manager - On top of that, it is Open Source Software - github.com/webiny/webiny-js
Sir can you please cover the topic : what is server-side rendering and how it works and which technologies are used in it
Server-side rendering is actually how we originally render pages e.g. with PHP, JSP, etc. The client requests a page and the server renders the HTML and sends it back to the client. The page is rendered on the server per request.
With the prominence of JavaScript in the server/backend using Node, new tools came up to allow usage of JS to render server side. Commonly-used tools used today for SSR include templating engines like EJS or Pug, React frameworks like Next.js, Nuxt.js for Vue, and more.
@@BeFourCM They all do the same thing, render the HTML. You're just using a different programming language.
@@BeFourCM Server side rendering is regarded as more performant because a web server's machine is usually more powerful than a typical user's computer thus they can render the page much faster. Another benefit of SSR is SEO and dynamic meta tags for social-media sharing.
Yes, you can do hybrid Server-side Rendering and Client-side Rendering with JavaScript frameworks since JS was originally used to render, update and manipulate the DOM on the browser, you can now do the same thing on the server using Node.
Render the page server-side using React and generate an HTML file, then send it to your client.
@@BeFourCM It is much superior but everything has tradeoffs and this time it's the price. You'll need a server to render your pages for EVERY request which is costly. With Client-side rendering, you can just host the build files to a CDN like Netlify, Vercel or even Github pages and let the users request the built index.html and it'll be cached for everyone else.
@@BeFourCM If your data doesn't change that often, i.e. a static website, the better approach is to use Static Site Generators like Hugo, Next.js, Gatsby.js. They render the html files during build time and not per request and since these are pre rendered html files, you can host them on a CDN as well.
This is so cool, cant wait to acquire this skill. Thank you heaps.
You're very welcome! I'd love to see what you build with it!
I used to think it meant, server less. This is an awesome introduction.
It seems soon traditional shared web hosting will die. What is most likely to happen to apps like Cpanel, Plesk ?
I think lots of tools are just getting easier to use from development perspective which is nice :)
Amazing content!
Now, before I elaborate on the question, "What Is Serverless?", I'd like to say a huge 'thank you' to Brad Traversy for giving me the opportunity to appear on his channel. I'm very grateful and it's a real privilege. Thank you, Brad.
I'm confused by this...are you saying I should have thanked him in the video?
Don't bother James. People are crazy. @@JamesQQuick
So is serverless just a place where you add your utility/static functions that you want to store independently from other functions?
Fantastic presentation. I've used Netlify before.
I struggle to see the benefit, if you're already running a server... ie, I have a website that's hosted on my server. Why would I outsource a function when my server is already up and running, and local to my codebase? I do see some value in maybe things that are intensive like running a ml algo or something, if I just don't want to burden my server. but other than performative actions, this just seems like an extra layer of abstraction.
Doesn't fit every scenario. If you're solution works for you, that's great. If you have any overhead in managing you're own server, maybe it's worth considering.
@@JamesQQuick obviously... I'm just trying to understand the benefit (specifically in the point where you're already paying for a server). I've been developing for 20 years, so I'm definitely prone to missing the benefits of progress lol
I have a question regarding serverless - So i cache something, no matter the size of my application will i always have access to that cache no matter how big my application becomes? If i serve 10 or 100.000 clients doesnt matter?
Just how sophisticated can be a backend which only uses serverless functions? Is there a form of persisting data with them (connecting them with a DB)? Or are they used primarily to process a request and return a result without storing any data?
There are some limitations like you can't really do web sockets, but you can do most things you would need.
How can i then connect to the database?
Does database have to be in cloud, when using serverless?
I’d be really thankful for the answer 🤯
Superb!! Love this 🤩
Thank you :)
great content, thanks!
Imo you start paying more with serverless when the site scales up. If you need to make many calls to your database to verify multiple sessions or save various results, it is easy to use the 125,000 calls a month without even considering forms, identity and so on
Wow this is what I'm looking for.
Yassss!!
It's also the solo dev's best friend.
I'm not a developer and have no idea what you're talking about. I just clicked on a link and it went to a page that said: Serverless Function crashed
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
And then there's an ID
I just came here hoping for a clue and wondering if this indicates my computer has a virus? Help or please point me where dummies go for answers
I think that this new technologies as serverless were builded for people that don't know too much about computer science and want to focus to only one area, development. That's why we see alot of kids only focusing in learn python (easy programming language) sacrificing the performance. As result we have an army of kids with no preparation working on computer science and talking that university isn't necessary.
Actually, I think the serverless now is a combanation of Faas and Baas. Most people think serverless is a function as a service. Function as a service has limitation even though it is really fast and convenient now.
What's the difference between Firebase and serverless functions? Is it that with Firebase the functions are already written for you ?
I did wrote one for transcoding videos from mp4 to m3u8 on AWS Lamda functions.
ahh that's cool. Do you have a demo?
@@JamesQQuick it's live here discovered.tv/
When someone uploads a video that function gets triggered.
Can you explain how Google cloud platform works
Have you have made tutorial for creating cover image, which you have mentioned in this tut at 3:43
Not yet, but it's coming soon on my channel :)
@@JamesQQuick ok, great. Will subscriber your channel. Thanks
I had used GitHub pages to host few static pages. Is this also a server less platform?
Github pages is just static hosting, not serverless. Netlify is a great option that does both static hosting and serverless functions.
@@JamesQQuick Thanks for your reply. I will try Netlify for some personal project.
Is this fully support Nodejs website hosting as well?
You can still run that code to generate the dynamic image in your local.. What was the need to host it ?
James is Serverless hero ❤️🔥
haha should I make stickers?
😀That would be great🔥😎
I’m pretty new to backend development etc. can I still create a user registration and login function in express js with serveless functions? Because netlify offers server less functions and I want to know if that’s possible
Plot twist: Developers at those serverless service providers are also using serverless technology from other serverless services.
Hello Sir, can you share some video for learning react if you have any??
Would love a video on *low cost* techniques for Amazon Vs Google cloud. Especially having additional focus on how to begin to scale while keeping costs down.
Lots of people are interested in getting into cloud but the info is a bit.. cloudy.
Everywhere is exactly the same explanations but what I figured out is missing: how to invoke netlify functions from inside of app without moving there api logic. What if I do want to use axios but at the same time want to get environment variable with api key using serverless function?
I think you have to move api logic to serverless the same way you would with a regular server. You can't send private credentials to the browser. It's not secure.
Is there a tutorial on java and the latest version of python I find this channel very useful and look forward to a tutorial on python
I am looking for Jave insturctors. Check the Python playlist :)
I would love to learn how to make something like that image creator function
I use google firebase for some web apps and have stopped using local state for these projects. Each module is update in realtime with firebase. I feel local state is redundant at this point. Anyone else feel this way?
Thanks man!
Then why did Amazon prime go away from Serverless?
Thank you
Setting websockets with serverless approach can get a bit tricky 😔
Ya, I don't think that would work very well. Your functions can disappear at any point so you can't depend on a consistent connection
Isn't there any business interest behind this kind of stack?
Is there a discord community?
Super Interesting.
Can we use websockets with serverless?
AWS/ Google crash course please
I liked your dustbin
hahaha thank you!!
Serverless is like renting a flat instead of building your own house; a flat is ok for young couples but probably won't fit them as they grow their family.
Does it need credit card? I dont have. Sad.
Managed servers? :D
ty.
good video thank you
Can someone tell me what is agentless technology?
Why nobody is making tutorial on next js