【问题标题】:How to deploy spring cloud microservice on Azure cloud如何在 Azure 云上部署 Spring Cloud 微服务
【发布时间】:2016-11-19 15:28:25
【问题描述】:

我正在使用 Spring Cloud 和 Netflix Eureka 进行微服务开发。现在我想在 Azure 上部署这些微服务。我尝试关注这个Link,但我不确定这是在 Azure 云上部署微服务的最佳方式。

请建议我在 Azure Cloud 上部署这些微服务的最佳方式是什么?

【问题讨论】:

    标签: azure spring-boot spring-cloud netflix-eureka


    【解决方案1】:

    现在您还可以使用 Azure Spring Cloud 进行部署。

    https://docs.microsoft.com/en-us/azure/spring-cloud/spring-cloud-tutorial-prepare-app-deployment

    您仍然可以使用 Azure App Service,但最好将其用于单体应用程序。

    对于微服务架构,您应该使用 Azure Spring-Cloud,因为它会为您管理一切。

    【讨论】:

      【解决方案2】:

      两种选择

      1. 您可以使用 Spring-Boot 并将其推送到 docker 容器中,因为 docker recently launched 支持 Azure cloud.
      2. 您可以通过 Pivotal Cloud Foundry 在 Microsoft Azure 上进行部署。

      【讨论】:

      • 感谢 Praveen 的回复。我正在尝试按照以下链接中提到的步骤操作,但我无法启动 Eureka 和其他微服务。您能否详细说明为什么我不能使用这个过程(通过添加 web.config 文件)来部署我们的 Spring-boot 微服务而不是这个我必须在 Azure 上使用 Pivotal Cloud Foundry 或 Docker?链接:azure.microsoft.com/en-in/documentation/articles/…
      • 嗨 Sunil,您能否发布您的堆栈跟踪和 pom.xml 以进一步调查?
      • 这里是 link 用于 eureka-server。我无法在 Azure 中部署此代码,出现错误“502 - Web 服务器在充当网关或代理服务器时收到无效响应。”
      猜你喜欢
      • 2018-04-28
      • 2016-10-01
      • 2018-05-12
      • 2021-04-28
      • 2016-07-25
      • 2014-12-13
      • 2013-08-19
      • 2018-05-24
      • 2018-10-23
      相关资源
      最近更新 更多