![]() alicloud-loadbalancer-address-type: internet alibaba-cloud-loadbalancer-spec: slb.s1.small ![]() The YAML file contains the following content: # Deploy the nacos-server application. On the Deployments page, select a namespace and then click Create from YAML.In the left-side navigation pane of the details page, choose Workloads > Deployments.On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column.In the left-side navigation pane, click Clusters. You can also use kubectl to deploy applications. In this topic, the ACK console is used to deploy applications. : topic:TEST_MQ,producer:C,invoke result:A -> B -> C # At the same time, spring-cloud-a receives the message and returns the following logs: Then, spring-cloud-b calls spring-cloud-c in the same manner and displays results in logs. spring-cloud-a consumes produced messages and calls spring-cloud-b by using the Spring Cloud protocol at the same time. After the request is received by spring-cloud-c, a message is produced and its environment tag and IP address are returned. Then, spring-cloud-a accesses spring-cloud-b by using the Dubbo protocol, and spring-cloud-b accesses spring-cloud-c in the same manner. ![]() In the call process, spring-cloud-zuul receives a request from /A/dubbo and forwards the request to spring-cloud-a. The application calls comply with the standard use of Spring Cloud, Dubbo, and RocketMQ.īefore you deploy the applications, we recommend that you have a basic understanding of the call process in this demo. When the messages are consumed by spring-cloud-a, new calls are initiated. spring-cloud-c produces RocketMQ messages for spring-cloud-a. Spring Cloud and Dubbo are the two most commonly used microservices frameworks in the market. ![]() Application calls involve Spring Cloud service calls and Dubbo service calls. The following figure shows the structure of this demo. You can visit alibabacloud-microservice-demo to obtain the source code of this demo. You also need to deploy the nacos-server application as a registry and the rocketmq-name-server application as a message service. To simulate a real scenario, deploy four business applications: spring-cloud-zuul, spring-cloud-a, spring-cloud-b, and spring-cloud-c. Step 2: Deploy applications to simulate a real scenario In the Activate Microservices Governance message, click OK. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |