[英]Creating a Spring Cloud microservice
I am trying to learn and create a microservice using Spring Cloud.我正在尝试使用 Spring Cloud 学习和创建微服务。 I am using Spring mvc and Spring Boot for development.
我正在使用 Spring mvc 和 Spring Boot 进行开发。 I added separate Spring Boot application for both Eureka server and Zuul client.
我为 Eureka 服务器和 Zuul 客户端添加了单独的 Spring Boot 应用程序。 I have three Spring Boot application now.
我现在有三个 Spring Boot 应用程序。 One Sureka server, one for Zuul routing and third one is for my microservice application.
一台 Sureka 服务器,一台用于 Zuul 路由,第三台用于我的微服务应用程序。 I run the Eureka server and the microservice and Zuul found to be running properly in Eureka server UI.
我运行了 Eureka 服务器,发现微服务和 Zuul 在 Eureka 服务器 UI 中运行正常。
I am still confused about microservice development using Spring Cloud.我仍然对使用 Spring Cloud 进行微服务开发感到困惑。
So there are two elements in your confusion.所以你的困惑有两个要素。 Is Amazon Beanstalk suitable?
Amazon Beanstalk 是否合适? So answer is yes.
所以答案是肯定的。 but you have overhead of orchestrating various services of amazon over then.
但是那时你有编排亚马逊各种服务的开销。 Basically Amazon Elastic Beanstalk is more form based which means you need to tell what exactly you want to do with application for example route setup , scaling mechanism , application portability, application health management , Integration with external log aggregators etc. This is big learning curve to many people (including me :) ).
基本上,Amazon Elastic Beanstalk 更基于形式,这意味着您需要明确您想对应用程序做什么,例如路由设置、扩展机制、应用程序可移植性、应用程序健康管理、与外部日志聚合器的集成等。这是一个很大的学习曲线很多人(包括我:))。 Where as these with PCF these things are easy and straightforward and sometimes implicitly done.
与PCF 一样,这些事情既简单又直接,有时甚至隐含地完成。 Now Can I use pivotal cloud foundry with amazon?
现在我可以在亚马逊上使用关键的云代工厂吗? answer will be absolutely yes.
答案是肯定的。
Pivotal cloud foundry is Wrapper written over open source Cloud Foundry project. Pivotal cloud Foundry 是基于开源 Cloud Foundry 项目编写的 Wrapper。 It is more succinct PaaS option than Amazon Beanstalk.
它是比 Amazon Beanstalk 更简洁的 PaaS 选项。 You can host PCF on amazon ec2 ( IaaS )boxes using BOSH software.
您可以使用 BOSH 软件在 amazon ec2 ( IaaS ) 机器上托管 PCF。 To answer you PCF is a alternative to Amazon Beanstalk.
为了回答您,PCF 是 Amazon Beanstalk 的替代品。 You don't need PCF is you want to use Amazon Beanstalk and vice versa.
如果您想使用 Amazon Beanstalk,则不需要 PCF,反之亦然。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.