Does Feign retry require some sort of configuration?

后端 未结 3 1836
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 05:41

I just tried to do a attempted a seamless upgrade of a service in a test setup. The service is being accessed by a Feign client. And naively I was under the impression that

3条回答
  •  醉话见心
    2021-01-06 05:59

    If you are using ribbon you can set properties similar to the following (substituting "localapp" for your serviceid):

    localapp.ribbon.MaxAutoRetries=5
    localapp.ribbon.MaxAutoRetriesNextServer=5
    localapp.ribbon.OkToRetryOnAllOperations=true
    

提交回复
热议问题