Azure动手实验 - Java Spring

该实验的几个主要步骤:

  • 关联数据库CosmosDB和MySQL。
  • 创建两个service之间的关联关系
  • 开启Insight 和 查找logs
  • 创建gateway。
  • 创建secret,生成json成为yml文件,GitHub Action,自动编译。

Exercise 1 - Create an Azure Spring Apps instance

Task 1: Verify Azure Subscription
Task 2: Create an Azure Spring Apps instance

Exercise 2 - Build a simple Spring Boot microservice
Task 1 : Create a simple Spring Boot microservice
Task 2 : Add a new Spring MVC Controller
Task 3 : Test the project locally
Task 4 : Create and deploy the application on Azure Spring Apps
Exercise 3 - Configure application logs
Task 1 : Configure log aggregation
Exercise 4 - Configure a Spring Apps Config server
Task 1 : Configure Azure Spring Apps to access the Git repository
Exercise 5 - Build a Spring Boot microservice using Spring Apps features
Task 1 : Create a simple Spring Apps microservice
Task 2 : Add a new Spring MVC Controller
Task 3 : Test the project locally
Task 4 : Create and deploy the application on Azure Spring Apps
Task 5 : Test the project in the cloud
Task 6 : Stream application logs
Task 7 : Query application logs
Exercise 6 - Build a reactive Spring Boot microservice using Cosmos DB
Task 1 : Prepare the Cosmos DB database
Task 2 : Create a Spring Webflux microservice
Task 3 : Add the Cosmos DB API
Task 4 : Add Spring reactive code to get the data from the database
Task 5 : Create the application on Azure Spring Apps
Task 6 : Bind the Cosmos DB database to the application
Task 7 : Deploy the application
Task 8 : Test the project in the cloud
Exercise 7 - Build a Spring Boot microservice using MySQL
Task 1 : Create the application on Azure Spring Apps
Task 2 : Configure the MySQL Server instance
Task 3 : Bind the MySQL database to the application
Task 4 : Create a Spring Boot microservice
Task 5 : Add Spring code to get the data from the database
Task 6 : Add sample data in MySQL
Task 7 : Deploy the application
Task 8 : Test the project in the cloud
Exercise 8 - Build a Spring Cloud Gateway
Task 1 : Create a Spring Cloud Gateway
Task 2 : Configure the application
Task 3 : Create the application on Azure Spring Apps
Task 4 : Deploy the application
Task 5 : Test the project in the cloud
Exercise 9 - Putting it all together, a complete microservice stack
Task 1 : Add a front-end to the microservices stack
Task 2 : Review the distributed tracing to better understand the architecture
Task 3 : Review the performance metrics
Task 4 : Scale applications
Exercise 10 - Blue/Green deployment
Task 1 : Modify the current application
Exercise 11 - Configure CI/CD
Task 1 : Configure GitHub
Task 2 : Create a GitHub Action
Exercise 12 - Making Microservices Talk to Each Other
Task 1 : Create a Spring Boot Microservice
Task 2 : Add Spring code to call other microservices
Task 3 : Add time-out settings
Task 4 : Create the application on Azure Spring Apps
Task 5 : Deploy the application
Task 6 : Test the project in the cloud
 

它最大的优点在于操作非常简便,并且性能不不错。

Azure动手实验 - Java Spring_第1张图片

city-service weather-service等服务 

使用CosmosDB存放数据

并创建一个gateway网关

Blue/Green部署,并在GitHub创建一个Git Action的CI/CD服务。

Azure动手实验 - Java Spring_第2张图片Azure动手实验 - Java Spring_第3张图片

实操步骤见官方 GitHub 地址

GitHub - microsoft/azure-spring-apps-training: Guides and tutorials to make the most out of Azure Spring Apps

你可能感兴趣的:(Azure,Java,java,spring,cloud,微服务)