简体   繁体   English

我可以将jhipster-registry用作jhipster v1.9.0应用程序实例的发现服务器吗?

[英]Can i use jhipster-registry as a discovery server over instances of jhipster v1.9.0 application

I currently am using version 1.9.0 jhipster. 我目前正在使用1.9.0版jhipster。 Can i have jhipster registry installed and configured to this or am i looking at this the wrong way. 我可以将jhipster注册表安装并配置为此吗,还是我以错误的方式看待它。

Yes you can but you will have to upgrade spring boot in your old apps to a version supported by spring-cloud-netflix and then use @EnableEurekaClient . 是的,可以,但是您必须将旧应用程序中的spring boot升级到spring-cloud-netflix支持的版本,然后使用@EnableEurekaClient During this process you will need to resolve all upgrade issues with dependencies you use (JPA, Hibernate, ...) which could be a positive thing anyway. 在此过程中,您将需要解决所有与您使用的依赖项有关的升级问题(JPA,Hibernate等),无论如何这可能是一件好事。

Without modifying your app, you could use JHipster registry with Netflix Prana as a sidecar Eureka client. 无需修改您的应用程序,您就可以将Netflix Prana的 JHipster注册表与Eureka客户端结合使用。

If you don't want to modify your apps, you could rely on other service discovery solutions: 如果您不想修改您的应用程序,则可以依靠其他服务发现解决方案:

  • package your apps as docker containers and use Kubernetes 将您的应用程序打包为Docker容器并使用Kubernetes
  • or use HashiCorp Consul maybe with DNS forwarding and with consul-template to generate your application.yml files 或将HashiCorp Consul与DNS转发和consul-template一起使用来生成application.yml文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM