WTF is Serverless Framework? Is it the same as serverless? (no, it's not)

Chris Biscardi
InstructorChris Biscardi
Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 3 years ago

The Serverless Framework is an open source npm package that makes it easier to deploy functions to various platforms like AWS Lambda. It is not the same thing as "serverless", which is the concept while "Serverless Framework" is an npm package and a hosted product.

instructor: [0:00] Dealing with AWS and CloudFormation templates can be a big pain. That's why there are a bunch of tools on top of AWS that provide better developer experiences that are easier to use. Netlify Functions is one of those solutions specifically for Lambda.

[0:14] Serverless Framework is another one, and it's the one we'll be moving to. Serverless Framework, as opposed to serverless the concept, which encompasses all function deployments, comes in open source and pro editions. The open source edition is a CLI tool that you can install via npm, while the pro edition is most of the hosted services and CI/CD kind of stuff.

[0:35] The CLI tool is [inaudible] based like a lot of infrastructure is these days and allows you to create a serverless.yml file that deploys a set of functions to a provider. The list of providers is fairly large and includes AWS, Knative, Cloudflare Workers, Azure, etc.

[0:54] The serverless CLI also allows you to use plugins. These plugins can do any number of things, including adding support for local development, bundling your functions via webpack, managing Route 53 configs and API gateway, or even pulling down a local DynamoDB.

[1:09] The way we'll be using serverless framework is via CICD. Serverless framework CICD works a lot like GitHub Actions and also a lot like the Netlify builds we've been doing. They allow us to keep a lot of our workflow from Netlify, including deploy previews while detaching the life cycle of our functions from each other and also from our website.

[1:30] In short, what serverless framework gives us is the ability to deploy our Lambdas easily using YAML config in ways that allow us to take advantage of DynamoDB Streams and other advanced API gateway functionality.

egghead
egghead
~ 8 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today