Azure Spring Cloud 是什么?What is Azure Spring Cloud?

借助 Azure Spring Cloud,可以轻松地将 Spring Boot 微服务应用程序部署到 Azure,不需更改任何代码。Azure Spring Cloud makes it easy to deploy Spring Boot microservice applications to Azure without any code changes. 该服务管理 Spring Cloud 应用程序的基础结构,因此开发人员可以专注于其代码。The service manages the infrastructure of Spring Cloud applications so developers can focus on their code. Azure Spring Cloud 可以通过以下方法提供生命周期管理:综合性监视和诊断、配置管理、服务发现、CI/CD 集成、蓝绿部署等。Azure Spring Cloud provides lifecycle management using comprehensive monitoring and diagnostics, configuration management, service discovery, CI/CD integration, blue-green deployments, and more.

为何要使用 Azure Spring Cloud?Why use Azure Spring Cloud?

将应用程序部署到 Azure Spring Cloud 有很多好处。Deployment of applications to Azure Spring Cloud has many benefits. 方法:You can:

  • 有效地迁移现有 Spring 应用并管理云缩放和成本。Efficiently migrate existing Spring apps and manage cloud scaling and costs.
  • 使用 Spring Cloud 模式实现应用现代化,以提高敏捷性和交付速度。Modernize apps with Spring Cloud patterns to improve agility and speed of delivery.
  • 以云规模运行 Java,并在不使用复杂基础结构的情况下提高利用率。Run Java at cloud scale and drive higher usage without complicated infrastructure.
  • 无需依赖容器化即可快速开发和部署。Develop and deploy rapidly without containerization dependencies.
  • 有效轻松地监视生产工作负载。Monitor production workloads efficiently and effortlessly.

Azure Spring Cloud 支持 Java Spring Boot 应用。Azure Spring Cloud supports Java Spring Boot apps.

服务概述Service overview

Azure Spring Cloud 是 Azure 生态系统的一部分,用户可以通过它轻松绑定到其他 Azure 服务,其中包括存储、数据库、监视等。As part of the Azure ecosystem, Azure Spring Cloud allows easy binding to other Azure services including storage, databases, monitoring, and more.

Azure Spring Cloud 概述

  • Azure Spring Cloud 是适用于 Spring Boot 应用的完全托管服务,可让你专注于构建和运行应用,而无需管理基础结构。Azure Spring Cloud is a fully managed service for Spring Boot apps that lets you focus on building and running apps without the hassle of managing infrastructure.

  • 只需部署 JAR 或代码,Azure Spring Cloud 就会自动将应用与 Spring 服务运行时和内置应用生命周期关联起来。Simply deploy your JARs or code, and Azure Spring Cloud will automatically wire your apps with Spring service runtime and built-in app lifecycle.

  • 监视也很简单。Monitoring is simple. 部署后,可以监视应用性能,修复错误以及快速改进应用程序。After deployment you can monitor app performance, fix errors, and rapidly improve applications.

  • 与 Azure 的生态系统和服务的完全集成。Full integration to Azure's ecosystems and services.

  • Azure Spring Cloud 具有完全托管的基础结构和内置的生命周期管理且易于监视,可供企业使用。Azure Spring Cloud is enterprise ready with fully managed infrastructure, built-in lifecycle management, and ease of monitoring.

文档概述Documentation overview

本文档包括说明如何入门和利用 Azure Spring Cloud 服务的部分。This documentation includes sections that explain how to get started and leverage Azure Spring Cloud services.

  • 入门Get started
  • 操作说明How-to
    • 开发:准备现有的需要部署到 Azure Spring Cloud 的 Java Spring 应用程序。Develop: Prepare an existing Java Spring application for deployment to Azure Spring Cloud. 正确配置后,Azure Spring Cloud 可以提供强大的服务来监视、缩放和更新 Java Spring Cloud 应用程序。When configured properly, Azure Spring Cloud provides robust services to monitor, scale, and update Java Spring Cloud applications.
    • 部署:如何使用 Azure Spring Cloud 中的蓝绿部署模式来设置暂存部署。Deploy: How to set up a staging deployment by using the blue-green deployment pattern in Azure Spring Cloud. 蓝/绿部署是一种 Azure DevOps 持续交付模式,它依赖于在部署新(绿色)版本时保持现有(蓝色)版本的活动性。Blue/green deployment is an Azure DevOps Continuous Delivery pattern that relies on keeping an existing (blue) version live, while a new (green) one is deployed.
    • 配置应用:启动、停止和删除 Azure Spring Cloud 应用程序。Configure apps: Start, stop, and delete your Azure Spring Cloud applications. 使用 Azure 门户或 Azure CLI 在 Azure Spring Cloud 中更改应用程序的状态。Change an application's state in Azure Spring Cloud by using either the Azure portal or the Azure CLI.
    • 缩放:使用 Azure 门户中的 Azure Spring Cloud 仪表板或使用自动缩放设置来缩放任何微服务应用程序。Scale: Scale any microservice application using the Azure Spring Cloud dashboard in the Azure portal or using autoscale settings. 公共 IP 可用于与外部资源(例如数据库、存储和密钥保管库)进行通信。Public IPs are available to communicate with external resources, such as databases, storage, and key vaults.
    • 监视应用:分布式跟踪工具,可轻松调试和监视复杂问题。Monitor apps: Distributed tracing tools to easily debug and monitor complex issues. Azure Spring Cloud 将 Spring Cloud Sleuth 与 Azure 的 Application Insights 集成。Azure Spring Cloud integrates Spring Cloud Sleuth with Azure's Application Insights. 这种集成可以通过 Azure 门户提供强大的分布式跟踪功能。This integration provides powerful distributed tracing capability from the Azure portal.
    • 安全应用:Azure 资源在 Azure Active Directory 中提供自动托管标识。Secure apps: Azure resources provide an automatically managed identity in Azure Active Directory. 此标识可用于通过支持 Azure AD 身份验证的任何服务的身份验证,这样就无需在代码中插入凭据了。You can use this identity to authenticate to any service that supports Azure AD authentication, without having credentials in your code.
    • 与其他 Azure 服务集成:可以将所选 Azure 服务自动绑定到应用程序(例如,将应用程序绑定到 Azure Cosmos DB 数据库),而不必手动配置 Spring Boot 应用程序。Integration with other Azure services: Instead of manually configuring your Spring Boot applications, you can automatically bind selected Azure services to your applications, for example, binding your application to an Azure Cosmos DB database.
    • 自动化:借助持续集成和持续交付工具,能够以最少的工作量将更新快速部署到现有应用程序,同时将风险降至最低。Automate: Continuous integration and continuous delivery tools let you quickly deploy updates to existing applications with minimal effort and risk. Azure DevOps 有助于组织和控制这些关键任务。Azure DevOps helps organize and control these key tasks.
    • 迁移:如何迁移现有的 Spring Cloud 应用程序或 Spring Boot 应用程序,使其在 Azure Spring Cloud 上运行。Migrate: How to migrate an existing Spring Cloud application or Spring Boot application to run on Azure Spring Cloud.

如要入门,请参阅:To get started, see:

可在 GitHub 上找到示例:Azure Spring Cloud 示例Samples are available on GitHub: Azure Spring Cloud Samples.