Updated on 2023-06-25 GMT+08:00

Application Components

An application component implements a service feature of an application. It is in the form of code or software packages and can be deployed independently.

After creating an application on ServiceStage, you can add components to the application. Currently, microservice, web, and common application components are supported. A maximum of 1000 application components can be created for an application.

You can create a static component by setting the component type, framework, runtime system, and component source, and then deploy this component.

In the process of adding a component, you can configure the component using a template (Template) or customize the configuration (Custom).

  • Template provides default configurations of the component type, runtime system, and framework to help you quickly create components.
  • Custom allows you to select the desired component type, runtime system, and proper framework/service mesh.

Existing Templates

Table 1 Existing templates

Type

Runtime System

Framework

ServiceComb MicroService

Java8

Java chassis

SpringCloud MicroService

Java8

Spring Cloud

Web(Tomcat) WebApp

Tomcat8

Web

Microservice Components

Supported Runtime System

Supported Framework/Service Mesh

Supported Software Package

Java8

Java chassis

Source code repository, template, and JAR package

Tomcat8

Source code repository, template, and WAR package

Docker

This parameter does not need to be set.

Java8

Mesher

Source code repository and JAR package

Tomcat8

Source code repository and WAR package

Node.js8

Source code repository and ZIP package

Php7

Source code repository and ZIP package

Docker

This parameter does not need to be set.

Python3

Source code repository and ZIP package

Docker

Go Chassis

This parameter does not need to be set.

Java8

Spring Cloud

Source code repository and JAR package

Tomcat8

Source code repository and WAR package

Docker

This parameter does not need to be set.

Java8

Dubbo

Source code repository, template, and JAR package

Tomcat8

Source code repository, template, and WAR package

Docker

This parameter does not need to be set.

Web Application Components

Supported Runtime System

Supported Software Package

Java8

Source code repository, template, and JAR package

Nodejs8

Source code repository, template, and ZIP package

Php7

Source code repository, template, and ZIP package

Tomcat8

Source code repository, template, and WAR package

Docker

This parameter does not need to be set.

Python3

Source code repository and ZIP package

Common Components

Supported Runtime System

Supported Software Package

Java8

Source code repository, template, and JAR package

Tomcat8

Source code repository, template, and WAR package

Node.js8

Source code repository, template, and ZIP package

Php7

Source code repository, template, and ZIP package

Docker

This parameter does not need to be set.

Python3

Source code repository and ZIP package

Component Source

Component Source

Description

Source code repository

Create authorization by referring to Authorizing a Repository and set the code source.

JAR package

Supports the following uploading modes:

Select the corresponding software package from OBS. Upload the software package to the OBS bucket in advance. For details, see Uploading a File.

WAR package

Supports the following uploading modes:

Select the corresponding software package from OBS. Upload the software package to the OBS bucket in advance. For details, see Uploading a File.

ZIP package

Supports the following uploading modes:

Select the corresponding software package from OBS. Upload the software package to the OBS bucket in advance. For details, see Uploading a File.

Image package

If you use a private image to create your containerized application, upload the private image to the image repository. Choose Software Center > Image Repository and upload the image to the image repository by referring to Managing Images.

Template

Create authorization by referring to Authorizing a Repository and set the organization and repository names.

ServiceStage provides component templates. You can select a template to quickly create an application and generate a development project in the configured code repository. For details, see Template Framework.

Template Framework

Runtime System

Framework Provided by the Template

Framework Description

Java8

CSE-Java (SpringMVC)

Based on the ServiceComb microservice development framework, supports SpringMVC annotations and uses the SpringMVC style to develop microservices.

CSE-Java (JAX-RS)

Based on the ServiceComb microservice development framework, supports JAX-RS annotations and uses the JAX-RS mode to develop microservices.

CSE-Java (POJO)

Based on the ServiceComb microservice development framework, supports APIs and API implementation, and uses transparent RPC to develop microservices.

Tomcat8

SpringBoot-Webapp-Tomcat

Web applications, running on an independent web server.

SpringBoot-WebService-Tomcat

Web services, running on an independent web server.

Nodejs8

Express

A Node.js web framework that supports high compatibility, and fast and simple deployment.

Koa

Next-generation web development framework based on the Node.js platform.

Php7

Laravel

A PHP development framework for web developers.

Slim

A lightweight micro-PHP framework.