{"id":2978,"date":"2018-08-09T19:18:23","date_gmt":"2018-08-09T11:18:23","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2978"},"modified":"2018-08-09T19:18:23","modified_gmt":"2018-08-09T11:18:23","slug":"spring-cloud-%e6%95%99%e7%a8%8b%e7%ac%ac%e4%b9%9d%e7%ab%a0-ribbon-%e6%95%b4%e5%90%88%e6%96%ad%e8%b7%af%e5%99%a8-hystrix","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2978","title":{"rendered":"Spring Cloud \u6559\u7a0b\u7b2c\u4e5d\u7ae0 Ribbon \u6574\u5408\u65ad\u8def\u5668 Hystrix"},"content":{"rendered":"<p>\n\t\u4e0a\u4e00\u7ae0\u6211\u4eec\u8bb2\u4e86 Feign \u5f00\u542f\u65ad\u8def\u5668 Hystrix \u7684\u529f\u80fd\u3002\u7531\u4e8e Feign \u672c\u8eab\u5df2\u7ecf\u6574\u5408\u4e86 Ribbon \u548c Hystrix \u7684\u90e8\u5206\u529f\u80fd\uff0c\u6240\u4ee5\u7528\u8d77\u6765\u6bd4\u8f83\u7b80\u5355\u3002\u4f46\u662f Ribbon \u4e2d\u600e\u4e48\u4f7f\u7528 Hystrix \u5462\uff1f\u672c\u6587\u5c06\u901a\u8fc7\u4e00\u4e2a\u5c0f demo\uff0c\u6559\u5927\u5bb6\u5982\u4f55\u5728\u4f7f\u7528 Ribbon \u4e2d\u52a0\u5165 Hystrix \u7684\u529f\u80fd\u3002\n<\/p>\n<p>\n\tHystrix \u63d0\u4f9b\u4e86\u4e00\u4e2a\u57fa\u4e8e\u547d\u4ee4\u6a21\u5f0f HystrixCommand \u6765\u5305\u88c5\u4f9d\u8d56\u8c03\u7528\u903b\u8f91\uff0c\u5176\u6bcf\u4e2a\u547d\u4ee4\u5728\u5355\u72ec\u7ebf\u7a0b\u4e2d\u6216\u4fe1\u53f7\u6388\u6743\u4e0b\u6267\u884c\u3002\uff08Command \u662f\u5728 Receiver \u548c Invoker \u4e4b\u95f4\u6dfb\u52a0\u7684\u4e2d\u95f4\u5c42\uff0cCommand \u5b9e\u73b0\u4e86\u5bf9 Receiver \u7684\u5c01\u88c5\uff09\u3002Hystrix \u652f\u6301\u4e24\u79cd\u9694\u79bb\u7b56\u7565\uff1a\u7ebf\u7a0b\u6c60\u9694\u79bb\u548c\u4fe1\u53f7\u91cf\u9694\u79bb\uff08\u90fd\u662f\u9650\u5236\u5bf9\u5171\u4eab\u8d44\u6e90\u7684\u5e76\u53d1\u8bbf\u95ee\u91cf\uff09\u3002\n<\/p>\n<ul>\n<li>\n\t\tThreadPool\uff1a\u6839\u636e\u914d\u7f6e\u628a\u4e0d\u540c\u547d\u4ee4\u5206\u914d\u5230\u4e0d\u540c\u7684\u7ebf\u7a0b\u6c60\u4e2d\uff0c\u8fd9\u662f\u6bd4\u8f83\u5e38\u7528\u7684\u9694\u79bb\u7b56\u7565\uff0c\u5176\u4f18\u70b9\u662f\u9694\u79bb\u6027\u597d\uff0c\u5e76\u4e14\u53ef\u4ee5\u914d\u7f6e\u65ad\u8def\u67d0\u4e2a\u4f9d\u8d56\u88ab\u8bbe\u7f6e\u65ad\u8def\u4e4b\u540e\uff0c\u7cfb\u7edf\u4e0d\u4f1a\u518d\u5c1d\u8bd5\u65b0\u8d77\u7ebf\u7a0b\u8fd0\u884c\u5b83\uff0c\u800c\u662f\u76f4\u63a5\u63d0\u793a\u5931\u8d25\uff0c\u6216\u8fd4\u56de fallback \u503c\u5b83\u7684\u7f3a\u70b9\u662f\u65b0\u8d77\u7ebf\u7a0b\u6267\u884c\u547d\u4ee4\uff0c\u5728\u6267\u884c\u65f6\u5fc5\u7136\u6d89\u53ca\u4e0a\u4e0b\u6587\u7684\u5207\u6362\uff0c\u8fd9\u4f1a\u9020\u6210\u4e00\u5b9a\u7684\u6027\u80fd\u6d88\u8017\u4f46\u662f Netflix \u505a\u8fc7\u5b9e\u9a8c\uff0c\u8fd9\u79cd\u6d88\u8017\u5bf9\u6bd4\u5176\u5e26\u6765\u7684\u4ef7\u503c\u662f\u5b8c\u5168\u53ef\u4ee5\u63a5\u53d7\u7684\uff0c\u5177\u4f53\u7684\u6570\u636e\u53c2\u89c1 <a href=\"https:\/\/github.com\/Netflix\/Hystrix\/wiki\/How-it-Works#wiki-Isolation\" target=\"_blank\">Hystrix-Wiki<\/a>\u3002\n\t<\/li>\n<li>\n\t\tSemaphores\uff1a\u987e\u540d\u601d\u4e49\u5c31\u662f\u4f7f\u7528\u4e00\u4e2a\u4fe1\u53f7\u91cf\u6765\u505a\u9694\u79bb\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u9650\u5236\u7cfb\u7edf\u5bf9\u67d0\u4e00\u4e2a\u4f9d\u8d56\u7684\u6700\u9ad8\u5e76\u53d1\u6570\uff0c\u8fd9\u4e2a\u57fa\u672c\u4e0a\u5c31\u662f\u4e00\u4e2a\u9650\u6d41\u7684\u7b56\u7565\u3002\u6bcf\u6b21\u8c03\u7528\u4f9d\u8d56\u65f6\u90fd\u4f1a\u68c0\u67e5\u4e00\u4e0b\u662f\u5426\u5230\u8fbe\u4fe1\u53f7\u91cf\u7684\u9650\u5236\u503c\uff0c\u5982\u8fbe\u5230\uff0c\u5219\u62d2\u7edd\u8be5\u7b56\u7565\u7684\u4f18\u70b9\u662f\u4e0d\u65b0\u8d77\u7ebf\u7a0b\u6267\u884c\u547d\u4ee4\uff0c\u51cf\u5c11\u4e0a\u4e0b\u6587\u5207\u6362\uff0c\u7f3a\u70b9\u662f\u65e0\u6cd5\u914d\u7f6e\u65ad\u8def\uff0c\u6bcf\u6b21\u90fd\u4e00\u5b9a\u4f1a\u53bb\u5c1d\u8bd5\u83b7\u53d6\u4fe1\u53f7\u91cf\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u4e3a\u4e86\u7b80\u5355\uff0c\u6211\u4eec\u76f4\u63a5\u5bf9\u4e4b\u524d\u7684\u6848\u4f8b\u4e2d\u7684&nbsp;xttblog-cloud-ribbon \u9879\u76ee\u8fdb\u884c\u4e00\u4e0b\u6574\u6539\u3002\u5f53\u7136\u4e3a\u4e86\u4e0d\u6c61\u67d3\u4e4b\u524d\u7684\u9879\u76ee\u6848\u4f8b\uff0c\u6211\u4eec\u8fd8\u662f\u65b0\u5efa\u4e00\u4e2a\u5de5\u7a0b\uff1axttblog-ribbon-hystrix\u3002pom.xml \u7684\u914d\u7f6e\u662f\u4e00\u6837\u7684\uff0c\u6211\u5c31\u7565\u8fc7\u4e86\u3002application.yml \u4e2d\uff0c\u53ea\u6539\u4e86\u4e00\u4e0b\u7aef\u53e3\u548c\u670d\u52a1\u540d\u79f0\uff1a\n<\/p>\n<pre class=\"brush:plain;\">\r\nserver:\r\n  port: 7081\r\n\r\neureka:\r\n  instance:\r\n    hostname: localhost\r\n  client:\r\n    serviceUrl:\r\n      defaultZone: http:\/\/${eureka.instance.hostname}:8761\/eureka\/\r\n\r\nspring:\r\n  application:\r\n    name: xttblog-ribbon-hystrix<\/pre>\n<p>\n\tSpringboot \u5165\u53e3\u7c7b\u4e2d\uff0c\u9700\u8981\u914d\u7f6e&nbsp;@EnableCircuitBreaker \u6ce8\u89e3\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\n@SpringBootApplication\r\n@EnableDiscoveryClient\r\n\/\/\u5f00\u542f\u65ad\u8def\u5668\u529f\u80fd\r\n@EnableCircuitBreaker\r\npublic class RibbonHystrixApplication {\r\n\r\n    \/\/\u5f00\u542f\u8f6f\u5747\u8861\u8d1f\u8f7d\r\n    @LoadBalanced\r\n    @Bean\r\n    RestTemplate restTemplate() {\r\n        return new RestTemplate();\r\n    }\r\n\r\n    public static void main(String[] args) {\r\n        SpringApplication.run(RibbonHystrixApplication.class, args);\r\n    }\r\n}<\/pre>\n<p>\n\tRibbonController \u548c CalService \u4fdd\u6301\u4e0d\u53d8\uff0cCalServiceImpl \u7684\u6539\u52a8\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\n@Service\r\npublic class CalServiceImpl implements CalService {\r\n\r\n    @Autowired\r\n    private RestTemplate restTemplate;\r\n\r\n    @Autowired\r\n    private LoadBalancerClient loadBalancerClient;\r\n\r\n    @Override\r\n    \/\/\u6307\u5b9a\u65ad\u8def\u540e\u7684\u56de\u8c03\u65b9\u6cd5\uff08\u56de\u8c03\u65b9\u6cd5\u5fc5\u987b\u4e0e\u539f\u65b9\u6cd5\u53c2\u6570\u7c7b\u578b\u76f8\u540c\u3001\u8fd4\u56de\u503c\u7c7b\u578b\u76f8\u540c\u3001\u65b9\u6cd5\u540d\u53ef\u4ee5\u4e0d\u540c\uff09\r\n    @HystrixCommand(fallbackMethod=&quot;hystrixFallback&quot;)\r\n    public Integer add(Integer a, Integer b) {\r\n        String reqURL = &quot;http:\/\/com.xttblog-cloud-producer\/cal\/add?a=&quot; + a + &quot;&amp;b=&quot; + b;\r\n        test();\r\n        return restTemplate.getForEntity(reqURL, Integer.class).getBody();\r\n    }\r\n\r\n    public Integer hystrixFallback(Integer a, Integer b){\r\n        System.out.println(&quot;\u670d\u52a1\u7194\u65ad\u4e86\u3002\u3002\u3002\u3002&quot;);\r\n        return -1024;\r\n    }\r\n\r\n    private void test(){\r\n        ServiceInstance serviceInstance = loadBalancerClient.choose(&quot;com.xttblog-cloud-producer&quot;);\r\n        System.out.println(&quot;Host\uff1a&quot; + serviceInstance.getHost()\r\n                + &quot;\uff0cServiceId\uff1a&quot; + serviceInstance.getServiceId()\r\n                + &quot;\uff0cPort\uff1a&quot; + serviceInstance.getPort());\r\n    }\r\n}<\/pre>\n<p>\n\t\u4f7f\u7528 @HystrixCommand(fallbackMethod=&quot;hystrixFallback&quot;) \u6307\u5b9a\u65ad\u8def\u540e\uff0c\u8981\u6267\u884c\u7684\u65b9\u6cd5\u5373\u53ef\u3002\n<\/p>\n<p>\n\t\u505a\u5b8c\u4ee5\u4e0a\u7684\u4ee3\u7801\u7f16\u5199\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f9d\u6b21\u542f\u52a8 xttblog-eureka-server\u3001xttblog-cloud-producer\u3001xttblog-ribbon-hystrix \u4e09\u4e2a\u9879\u76ee\u3002\u7136\u540e\u5728\u6d4f\u89c8\u5668\u91cc\u8f93\u5165 http:\/\/localhost:7081\/test?a=1&amp;b=10 \u8fdb\u884c\u8bbf\u95ee\uff0c\u6ca1\u6709\u95ee\u9898\u540e\uff0c\u6211\u4eec\u5173\u95ed\u6389 xttblog-cloud-producer \u670d\u52a1\uff0c\u518d\u6b21\u5237\u65b0\u6d4f\u89c8\u5668\uff0c\u8fd4\u56de\u7ed3\u679c\u4e2d\u82e5\u6709&ldquo;-1024&rdquo;\uff0c\u5219\u8bf4\u660e\u6210\u529f\u7684\u8fdb\u884c\u4e86\u7194\u65ad\u3002\n<\/p>\n<h2>\n\tHystrix \u7684\u914d\u7f6e\u53c2\u6570<br \/>\n<\/h2>\n<p>\n\tHystrix \u7684\u5927\u90e8\u5206\u914d\u7f6e\u90fd\u662f hystrix.command.[HystrixCommandKey] \u5f00\u5934\n<\/p>\n<p>\n\t\u5176\u4e2d [HystrixCommandKey] \u662f\u53ef\u53d8\u7684\uff0c\u9ed8\u8ba4\u662f default\uff0c\u5373\uff1ahystrix.command.default\uff08\u5bf9\u4e8e Zuul \u800c\u8a00\uff0cCommandKey \u5c31\u662f service id\uff09\n<\/p>\n<p>\n\t\u5b83\u5e38\u89c1\u7684\u6709\u4ee5\u4e0b\u51e0\u4e2a\u914d\u7f6e\n<\/p>\n<ul>\n<li>\n<p>\n\t\t\thystrix.command.default.execution.isolation.thread.timeoutInMilliseconds<br \/>\n\t\t\t\u7528\u6765\u8bbe\u7f6e thread \u548c semaphore \u4e24\u79cd\u9694\u79bb\u7b56\u7565\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u9ed8\u8ba4\u503c\u662f1000<br \/>\n\t\t\t\u5efa\u8bae\u8bbe\u7f6e\u8fd9\u4e2a\u53c2\u6570\uff0c\u5728 Hystrix-1.4.0 \u4e4b\u524d\uff0csemaphore-isolated \u9694\u79bb\u7b56\u7565\u662f\u4e0d\u80fd\u8d85\u65f6\u7684\uff0c1.4.0 \u5f00\u59cb semaphore-isolated \u4e5f\u652f\u6301\u8d85\u65f6\u65f6\u95f4\u4e86\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.execution.isolation.semaphore.maxConcurrentRequests<br \/>\n\t\t\t\u6b64\u503c\u5e76\u975e TPS\u3001QPS\u3001RPS \u7b49\u90fd\u662f\u76f8\u5bf9\u503c\uff0c\u5b83\u6307\u7684\u662f&nbsp;<strong>1<\/strong>&nbsp;\u79d2\u65f6\u95f4\u7a97\u53e3\u5185\u7684\u4e8b\u52a1&nbsp;<strong>\/<\/strong>&nbsp;\u67e5\u8be2&nbsp;<strong>\/<\/strong>&nbsp;\u8bf7\u6c42\uff0c\u5b83\u662f\u4e00\u4e2a\u7edd\u5bf9\u503c\uff0c\u65e0\u65f6\u95f4\u7a97\u53e3<br \/>\n\t\t\t\u76f8\u5f53\u4e8e\u4e9a\u6beb\u79d2\u7ea7\u7684\uff0c\u6307\u4efb\u610f\u65f6\u95f4\u70b9\u5141\u8bb8\u7684\u5e76\u53d1\u6570\uff0c\u5f53\u8bf7\u6c42\u8fbe\u5230\u6216\u8d85\u8fc7\u8be5\u8bbe\u7f6e\u503c\u540e\uff0c\u5176\u5176\u4f59\u5c31\u4f1a\u88ab\u62d2\u7edd\uff0c\u9ed8\u8ba4\u503c\u662f100\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.execution.timeout.enabled<br \/>\n\t\t\t\u662f\u5426\u5f00\u542f\u8d85\u65f6\uff0c\u9ed8\u8ba4\u4e3atrue\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.execution.isolation.thread.interruptOnTimeout<br \/>\n\t\t\t\u53d1\u751f\u8d85\u65f6\u662f\u662f\u5426\u4e2d\u65ad\u7ebf\u7a0b\uff0c\u9ed8\u8ba4\u662ftrue\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.execution.isolation.thread.interruptOnCancel<br \/>\n\t\t\t\u53d6\u6d88\u65f6\u662f\u5426\u4e2d\u65ad\u7ebf\u7a0b\uff0c\u9ed8\u8ba4\u662ffalse\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.circuitBreaker.requestVolumeThreshold<br \/>\n\t\t\t\u5f53\u5728\u914d\u7f6e\u65f6\u95f4\u7a97\u53e3\u5185\u8fbe\u5230\u6b64\u6570\u91cf\u7684\u5931\u8d25\u540e\uff0c\u8fdb\u884c\u77ed\u8def\uff0c\u9ed8\u8ba420\u4e2a\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.circuitBreaker.sleepWindowInMilliseconds<br \/>\n\t\t\t\u77ed\u8def\u591a\u4e45\u4ee5\u540e\u5f00\u59cb\u5c1d\u8bd5\u662f\u5426\u6062\u590d\uff0c\u9ed8\u8ba45s\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.circuitBreaker.errorThresholdPercentage<br \/>\n\t\t\t\u51fa\u9519\u767e\u5206\u6bd4\u9608\u503c\uff0c\u5f53\u8fbe\u5230\u6b64\u9608\u503c\u540e\uff0c\u5f00\u59cb\u77ed\u8def\uff0c\u9ed8\u8ba450%\n\t\t<\/p>\n<\/li>\n<li>\n<p>\n\t\t\thystrix.command.default.fallback.isolation.semaphore.maxConcurrentRequests<br \/>\n\t\t\t\u8c03\u7528\u7ebf\u7a0b\u5141\u8bb8\u8bf7\u6c42 HystrixCommand.GetFallback() \u7684\u6700\u5927\u6570\u91cf\uff0c\u9ed8\u8ba410\uff0c\u8d85\u51fa\u65f6\u5c06\u4f1a\u6709\u5f02\u5e38\u629b\u51fa<br \/>\n\t\t\t\u6ce8\u610f\uff1a\u8be5\u9879\u914d\u7f6e\u5bf9\u4e8e thread \u9694\u79bb\u6a21\u5f0f\u4e5f\u8d77\u4f5c\u7528\n\t\t<\/p>\n<\/li>\n<\/ul>\n<p>\n\t\u4ee5\u4e0a\u5c31\u662f\u5217\u4e3e\u7684\u4e00\u4e9b\u5e38\u89c1\u914d\u7f6e\uff0c\u66f4\u591a\u5185\u5bb9\u53ef\u53c2\u8003\uff1a<a href=\"https:\/\/github.com\/Netflix\/Hystrix\/wiki\/Configuration\" target=\"_blank\">https:\/\/github.com\/Netflix\/Hystrix\/wiki\/Configuration<\/a>\n<\/p>\n<p>\n\t\u672c\u6587\u6e90\u7801\u5df2\u5171\u4eab\u81f3\uff1a<a href=\"https:\/\/github.com\/xmt1139057136\/xttblog-cloud\" name=\"Spring Cloud \u6559\u7a0b\" target=\"_blank\" title=\"Spring Cloud \u6559\u7a0b\">https:\/\/github.com\/xmt1139057136\/xttblog-cloud<\/a><\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2978\">Spring Cloud \u6559\u7a0b\u7b2c\u4e5d\u7ae0 Ribbon \u6574\u5408\u65ad\u8def\u5668 Hystrix<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u7ae0\u6211\u4eec\u8bb2\u4e86 Feign \u5f00\u542f\u65ad\u8def\u5668 Hystrix \u7684\u529f\u80fd\u3002\u7531\u4e8e Feign \u672c\u8eab\u5df2\u7ecf\u6574\u5408\u4e86 Ribbon [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1659,1661,1660,587,588],"class_list":["post-2978","post","type-post","status-publish","format-standard","hentry","category-java","tag-feign","tag-hystrix","tag-ribbon","tag-spring-boot","tag-spring-cloud"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2978"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2978\/revisions"}],"predecessor-version":[{"id":2979,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2978\/revisions\/2979"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}