Overview

Last updated: 2020-07-21 18:24:48

    Serverless Framework is a popular serverless application framework service well recognized in the industry. It allows you to deploy completely available serverless application architectures without worrying about underlying resources. Its comprehensive capabilities including resource orchestration, auto scaling, and event-driven programming cover the entire application lifecycle from coding, debugging, and testing to deployment, enabling you to quickly build serverless applications by connecting to cloud-based resources.

    Serverless Framework is a standardized, component-based serverless application development product as shown below:

    Features

    Application-Level framework

    Serverless Framework provides various frameworks suitable for different use cases. After selecting a framework as needed, you can focus on developing business logic without consideration of underlying resources.

    Easy deployment

    When you deploy an application, Serverless Framework will automatically deploy and configure SCF, API Gateway, COS, and other basic resources according to the application characteristics, eliminating the need for manual efforts.

    One-Stop experience

    Serverless Framework enables you to quickly create, debug, and deploy a serverless application, as well as to monitor its running status after launch and troubleshoot errors with speed.

    Serverless Framework Components

    Serverless Components is a scenario-based solution that supports orchestration and organization of multiple cloud resources for different use cases such as Express framework integration and website deployment. It can greatly simplify the configuration and management of cloud resources while interconnecting Tencent Cloud products such as gateways, COS, and CAM, so that you can focus more on your business development.

    For more information, please see Serverless Components on GitHub.

    Benefits and features

    • Ease of use
      Serverless Components is built around your scenarios (e.g., websites, blogs, payment systems, and image services). It abstracts underlying infrastructure configuration and enables you to implement your business scenarios with simple configurations.
    • Reusability
      A serverless component can be easily created and deployed through a very simple serverless.yml file. Plus, its JavaScript library serverless.js supports extension and reuse with simple syntax.
    • Fast deployment
      The deployment of most serverless components is about 20 times faster than traditional configuration tools. They allow rapid deployment and remote verification which help effectively reduce the workload of local emulation and debugging.

    Serverless Framework Components best practices

    The following are common use case templates:

    • Deploying Hexo static blog
      This example uses the Serverless Website component to quickly construct a serverless Hexo website:

      serverless create --template-url https://github.com/serverless/components/tree/v1/templates/tencent-hexo-blog
    • Constructing RESTful API quickly
      This example uses the Serverless SCF component to quickly construct a RESTful API application and perform GET and PUT operations.

      serverless create --template-url https://github.com/serverless/components/tree/v1/templates/tencent-python-rest-api
    • Deploy serverless full-stack web application (React.js)
      This example uses React as the frontend and Express framework as the backend to deploy a serverless full-stack application through multiple Serverless Components.

      serverless create --template-url https://github.com/serverless/components/tree/v1/templates/tencent-fullstack-react-application
    • Deploy serverless full-stack web application (Vue.js)
      This example uses Vue as the frontend and Express framework as the backend to deploy a serverless full-stack application through multiple Serverless Components.

      serverless create --template-url https://github.com/serverless/components/tree/v1/templates/tencent-fullstack-vue-application

    Supported Serverless Components

    Currently, Serverless Components supports a rich set of development frameworks and applications in various programming languages as detailed below:

    Basic components:

    Advanced components:

    Third-party components:

    In addition, you can view all Serverless Components in the GitHub repository.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help