To help you experience how to deploy microservice-oriented applications in Enterprise Distributed Application Service (EDAS), EDAS provides microservice-oriented application demos of Spring Cloud, Dubbo, and High-speed Service Framework (HSF). You can deploy application demos to a custom ECS environment (specified ECS cluster). This topic uses an example to describe how to deploy microservice-oriented applications in a custom ECS environment.
Prerequisites
- EDAS is activated. For more information, see Activate EDAS.
- Auto Scaling is activated and authorized to access resources of other cloud services.
- Microservice namespaces, virtual private clouds (VPCs), ECS clusters, and ECS instances
are created to deploy a custom environment. You can create microservice namespaces
and ECS clusters when you deploy applications. VPCs and ECS instances must be created
before you deploy applications. For more information, see Create an IPv4 VPC and Create and manage an ECS instance by using the ECS console (express version)Quick start.
Note When you create a VPC, select the region in which you want to deploy the application. When you create an ECS instance, select the created VPC. For the experience purpose, we recommend that you create only two pay-as-you-go ECS instances each of which has a single CPU core and 2 GB of memory. Release the created instances in time after the experience.
Background information
- A custom ECS environment refers to an ECS cluster that resides in a specified microservice namespace and in a specified VPC in a region.
- Application demos: You can use the microservice-oriented application demos in the
EDAS console to deploy and call simple services. The microservice-oriented application
demos use the Spring Cloud, Dubbo, and HSF frameworks. Each demo contains two applications.
The procedures to deploy application demos that use different frameworks are similar.
In this example, an application demo that uses the Spring Cloud framework is deployed.
For more information about the microservice-oriented application demos, see alibabacloud-microservice-demo.
- For more information about how to implement the features of an application with microservices, see Overview.
Deploy an application demo
Each microservice-oriented application demo contains a server-side application (service provider) and a client-side application (service consumer). The following example shows how to deploy the server-side application. After you deploy the server-side application, repeat the same steps in this section to deploy the client-side application.
Verify the result
The client-side application contains web services. After both the server-side and client-side applications are deployed, check whether you can log on to the web interface of the client-side application.