Farid Guliyev (2) [Avatar] Offline
#1
First of all, I would like to thank authors for great product and exceptional book.

My question is whether it's possible to configure Hystrix command key.

Page 286 shows example as follows :
.hystrix().id("MyHystrixKey")


But on page 288, description of command key states:
Identifies the Hystrix command. This option can’t be configured but is locked down to be the node ID to make the command unique.
davsclaus (406) [Avatar] Offline
#2
Hi

Thanks for the words on the book - it was a lot of hard work, even more the 2nd time.

So yes what you do is correct to specify the command key. Its the `id` of the node.
Maybe the book should have been a bit more clear on that - its not configurable with a special commandKey option etc, but will always use the node id (eg the hystrix in the route).
Farid Guliyev (2) [Avatar] Offline
#3
Thank you very much, Claus, for prompt reply and explanation.