Comments on: Microservices with Spring Boot, Spring Cloud Gateway and Consul Cluster https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/ Java, Spring, Kotlin, microservices, Kubernetes, containers Mon, 12 Jul 2021 10:45:45 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-1183 Mon, 12 Jul 2021 10:45:45 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-1183 In reply to amir.

It is RewritePath rule, so for request come to the gateway as /account/accounts/1, I call /accounts/1 on the downstrea service only.

]]>
By: amir https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-1177 Fri, 09 Jul 2021 12:24:23 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-1177 Excelent blog,
I have a question about this regex: /customer/(?.*), /$\{path}

What does it mean ?

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-728 Tue, 09 Jun 2020 09:51:38 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-728 In reply to Roman.

Hello Roman!
You mean that we have a service that may be run only in a single instance?
First, the zone affinity mechanism is just a option, so if a service would not be found in the same zone, it should be searched in another zones. You are also setting zones per service, what means that you can set no zone for a particular service. I didn’t test that solution by myself, but in theory it should work property – situation where service, which is in zone1 is communicating with service which is not assigned to any zone.

]]>
By: Roman https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-727 Tue, 09 Jun 2020 09:39:12 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-727 Hello Piotr!
I have a question regarding multizoned microservices.
Say we have Zone A and Zone B, like you described in your cool article.
But say there is one extra microservice in Zone B, that is unique, and non-transferrable to zone A.
And I, as a user of Zone A want to call this particular service in Zone B. What is the best way to do it?

Cheers, Roman

]]>
By: Christian https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-726 Thu, 07 May 2020 06:58:52 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-726 Thank you so much Piotr, it’s what i was looking for.

]]>
By: Chowdhury S Masood https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-725 Sun, 12 Apr 2020 19:31:35 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-725 In reply to Piotr Mińkowski.

Piotr,

Thanks for the wonderful and informative blog. I have a follow-up question. I want to connect my spring boot services to a consul cluster. I know that I need to use consul client. Do I start the consul agent as client on the box that hosts the spring boot service or the box that has the consul server?

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-723 Fri, 03 Apr 2020 22:46:45 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-723 In reply to amitojhanspal.

Hi. You don’t need enterprise version.

]]>
By: amitojhanspal https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-722 Fri, 03 Apr 2020 14:12:05 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-722 Hi Piotr,
Nice article and tech blog! Glad to find my way here.
Are you able to tell me if I can create a Consul cluster in production using the open-source version?
Or, do I need the enterprise version?

Kind Regards

]]>
By: Ash https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-721 Thu, 02 Apr 2020 18:00:00 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-721 Hi Piotr,
Really nice article! Glad that I found my way here.
Are you able to clarify if running multiple instances of Consul requires an Enterprise licence, or can be done so with the open-source version?

Many Thanks

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2019/11/06/microservices-with-spring-boot-spring-cloud-gateway-and-consul-cluster/#comment-720 Mon, 30 Mar 2020 17:38:25 +0000 https://piotrminkowski.wordpress.com/?p=7431#comment-720 In reply to Phong Nguyen.

Hi, Well generally there is such option. But first, we were starting Consul on Docker in dev mode, what means that agent is run only in server mode. You can run it in client mode also. More details here: https://hub.docker.com/_/consul in section Running Consul Agent in Client Mode

]]>