E-Commerce Function Service

With a serverless architecture, the E-Commerce Function service solution efficiently processes requests from backends, fulfills image and video transcoding needs, and provides auto-scaling service capabilities.
Solution Advantages
  • Maintenance-free Auto-scaling

    Implements real-time resource scaling based on events or requests and automatically adjusts resources based on the number of visits. Capacity expansion or reduction is transparent to users.

  • Easy Service Development

    Development based on function services frees developers from worrying over architectural issues such as high application availability, lowering development complexity while enabling developers to focus more on service logistics.

  • Pay-as-you-go

    Bills you based on the number of function calls and the function running period. Functions that are not run will not be charged.

  • Satisfies Microservice Architecture Needs

    Develops services that meet stateless requirements based on function services and function workflows, meeting microservice architecture needs.

Business Challenges
  • Slow Service Rollouts

    Sluggish service rollouts, arduous new function provisioning (such as adding videos or other documents to websites), and frequent service process changes make enterprises unable to address ever-changing market needs.

  • Heavy O&M Pressure

    Enterprises want their engineers to focus all their efforts on the development of core services to quickly enhance competitive strengths. However, engineers often waste their energy and time on other things such as server procurement, allocation, and management, application deployment and upgrade, security protection, and disaster recovery.

  • High Promotion Expenses

    To deal with traffic surges during product promotions on the Internet, enterprises that build applications in the traditional mode need to establish clusters to meet elastic scaling requirements. After peak times, systems that have been expanded cannot automatically reduce their capacity, leading to low resource utilization while increasing costs.

Typical Scenarios
  • Standard Image and Video Format

  • Web/App Backends

  • Convenient Function Development

Standard Image and Video Format

Conveniently standardizes image and video formats.

  1. Uploading Image and Video Files Triggers Function Calls

    After image and video files are uploaded, configuration-based OBS triggers call complex function workflows or simple functions to standardize image and video formats.

  2. Serverless Function Service Transcodes Images and Videos

    Conversion function O&M is completed on HUAWEI CLOUD. After conversion, files and data are stored on cloud services and APIs are called to notify other services. You are only billed for the resources used to execute your functions.

Web/App Backends

E-commerce developers focus on compiling service logics to enable architects to concentrate on their own services. Backends automatically adjust resources without O&M personnel intervention.

  1. Comprehensive Architecture Saves Architects' Time and Energy

    The function service works with API gateways to convert user requests into function calls. Distributed deployment enables high availability for service logics. All these capabilities do not need to be redesigned by architects. Developers can quickly develop, add, delete, modify, and query service logics and use rich cloud-based services to read and write data.

  2. Backends Automatically Adjust Resources Based on the Number of Service Requests

    During service peaks, the function service automatically schedules resources to run more function instances, meeting service requirements during peak times while delivering ms-level latencies to hot requests. The function service simplifies application deployment and upgrade, and upgrades uploaded codes with a single click.

Convenient Function Development

Provides developers with a convenient approach to developing functions.

  1. Provides One-stop Environments for Online Function Development

    Delivers comprehensive support for function development, testing, and monitoring, helping developers quickly develop functions online and agilely responding to market needs.

  2. Uses Third-party Capabilities to Support Function Extension

    Developers can use familiar IDEs to develop functions and upload them to FunctionGraph. They can also use third-party dependency packages to access third-party services and obtain capabilities provided by third-party packages.

Solution Architectures

Architecture Description

  • Function development: The architecture offers you with convenient function development methods and enables you to quickly customize and develop functions using templates.
  • Event-triggered: It provides multiple function triggering approaches and supports real-time file processing, web and mobile app backends, and other scenarios.
  • Public cloud service interconnection: The function service framework has been integrated with major public cloud service development libraries to provide data access and system communications. Functions that have been developed meet stateless requirements, and can be released as microservices.

Solution Description

Uses a variety of HUAWEI CLOUD services to provide e-commerce developers with one-stop cloud environments for function development. It provides development teams with convenient function development methods and multiple function triggering modes. The architecture makes data persist to multiple cloud services based on scenario needs and uses messages or APIs to interact with other systems. Functions that have been developed meet microservice architecture requirements and native functions support auto-scaling and provide high availability.

Recommended Services
  • FunctionGraph
    FunctionGraph is an event-driven function hosting and computing service. allows you to compile code of service functions and configurations. It provides a scalable, maintenance-free, and reliable running environment for functions.
  • API Gateway
    API Gateway provides API hosting services with outstanding performance, high availability, and robust security to developers and partners, helping them build, manage, and deploy APIs of all sizes.
  • Object Storage Service
    Object Storage Service (OBS) is a stable, secure, efficient, easy-to-use, and cost-effective cloud storage service. With RESTful APIs, OBS is able to store any amount and form of unstructured data at a reliability of 99.999999999%.

Create an Account and Experience HUAWEI CLOUD for Free

Register Now