{"id":3115,"date":"2022-05-06T23:15:13","date_gmt":"2022-05-06T15:15:13","guid":{"rendered":"https:\/\/www.zeroheart.xyz\/wordpress\/?p=3115"},"modified":"2022-05-06T23:15:13","modified_gmt":"2022-05-06T15:15:13","slug":"%e7%ba%bf%e7%a8%8b%e6%b1%a0%e9%9a%94%e7%a6%bb","status":"publish","type":"post","link":"https:\/\/www.zeroheart.xyz\/wordpress\/?p=3115","title":{"rendered":"\u7ebf\u7a0b\u6c60\u9694\u79bb"},"content":{"rendered":"\n<p>Spring Cloud \u91cc\u9762\u7684 Hystrix \u7ec4\u4ef6\uff0c\u5c31\u662f\u57fa\u4e8e\u7ebf\u7a0b\u6c60\u6765\u505a\u7684\u7194\u65ad\uff0c\u8d44\u6e90\u9694\u79bb\u3002<br>\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u5bf9\u5e94\u4e00\u4e2a\u7ebf\u7a0b\u6c60\uff0c\u53ef\u4ee5\u6839\u636e\u4efb\u52a1\u8017\u65f6\u53ca\u5e76\u53d1\u60c5\u51b5\uff0c\u8c03\u6574\u7ebf\u7a0b\u6c60\u5927\u5c0f\u3002\u5c06\u4e0d\u540c\u7684\u8bf7\u6c42\u9694\u79bb\u5f00\u6765\uff08\u6bd4\u5982\uff1a\u67e5\u8be2\uff0c\u4ea4\u6613\uff0c\u4f1a\u5458\u2026\uff09\uff0c\u8fd9\u6837\u5373\u4f7f\u67d0\u4e2a\u63a5\u53e3\u51fa\u73b0\u95ee\u9898\uff0c\u4e0d\u4f1a\u8017\u5c3d\u7cfb\u7edf\u8d44\u6e90\uff0c\u5bfc\u81f4\u522b\u7684\u63a5\u53e3\u7528\u4e0d\u4e86\u3002<\/p>\n\n\n\n<p>\u67d0\u4e9b\u4e1a\u52a1\u7684\u5e76\u53d1\u6bd4\u8f83\u9ad8\uff0c\u53ef\u4ee5\u5355\u72ec\u8bbe\u7f6e\u7ebf\u7a0b\u6c60\uff0c\u9632\u6b62\u5176\u4ed6\u63a5\u53e3\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n\n\n\n<p><a href=\"http:\/\/www.shaoqun.com\/a\/1019054.html\"><a href=\"https:\/\/www.cnblogs.com\/xjknight\/p\/15311290.html\">Spring Boot\u4e2d\u6709\u591a\u4e2a@Async\u5f02\u6b65\u4efb\u52a1\u65f6\uff0c\u8bb0\u5f97\u505a\u597d\u7ebf\u7a0b\u6c60\u7684\u9694\u79bb\uff01 &#8211; \u7a0b\u5e8f\u733fKnight &#8211; \u535a\u5ba2\u56ed (cnblogs.com)<\/a><\/a><\/p>\n\n\n\n<p>\u4e3a\u4e86\u63a7\u5236\u5f02\u6b65\u4efb\u52a1\u7684\u5e76\u53d1\u4e0d\u5f71\u54cd\u5230\u5e94\u7528\u7684\u6b63\u5e38\u8fd0\u4f5c\uff0c\u6211\u4eec\u5fc5\u987b\u8981\u5bf9\u7ebf\u7a0b\u6c60\u505a\u597d\u76f8\u5e94\u7684\u914d\u7f6e\uff0c\u9632\u6b62\u8d44\u6e90\u7684\u8fc7\u6e21\u4f7f\u7528\u3002\u9664\u4e86\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\u7684\u914d\u7f6e\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u7c7b\u573a\u666f\uff0c\u4e5f\u662f\u5f88\u5e38\u89c1\u7684\uff0c\u90a3\u5c31\u662f\u591a\u4efb\u52a1\u60c5\u51b5\u4e0b\u7684\u7ebf\u7a0b\u6c60\u9694\u79bb\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4ec0\u4e48\u662f\u7ebf\u7a0b\u6c60\u7684\u9694\u79bb\u4e3a\u4ec0\u4e48\u8981\u9694\u79bb\">\u4ec0\u4e48\u662f\u7ebf\u7a0b\u6c60\u7684\u9694\u79bb\uff0c\u4e3a\u4ec0\u4e48\u8981\u9694\u79bb<\/h3>\n\n\n\n<p>\u53ef\u80fd\u6709\u7684\u5c0f\u4f19\u4f34\u8fd8\u4e0d\u592a\u4e86\u89e3 \u4ec0\u4e48\u662f\u7ebf\u7a0b\u6c60\u7684\u9694\u79bb\uff0c\u4e3a\u4ec0\u4e48\u8981\u9694\u79bb \uff1f\u3002\u6240\u4ee5\uff0c\u6211\u4eec\u5148\u6765\u770b\u770b\u4e0b\u9762\u7684\u573a\u666f\u6848\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@RestController\npublic class HelloController {\n\n    @Autowired\n    private AsyncTasks asyncTasks;\n        \n    @GetMapping(\"\/api-1\")\n    public String taskOne() {\n        CompletableFuture&lt;String&gt; task1 = asyncTasks.doTaskOne(\"1\");\n        CompletableFuture&lt;String&gt; task2 = asyncTasks.doTaskOne(\"2\");\n        CompletableFuture&lt;String&gt; task3 = asyncTasks.doTaskOne(\"3\");\n        \n        CompletableFuture.allOf(task1, task2, task3).join();\n        return \"\";\n    }\n    \n    @GetMapping(\"\/api-2\")\n    public String taskTwo() {\n        CompletableFuture&lt;String&gt; task1 = asyncTasks.doTaskTwo(\"1\");\n        CompletableFuture&lt;String&gt; task2 = asyncTasks.doTaskTwo(\"2\");\n        CompletableFuture&lt;String&gt; task3 = asyncTasks.doTaskTwo(\"3\");\n        \n        CompletableFuture.allOf(task1, task2, task3).join();\n        return \"\";\n    }\n    \n}\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6709\u4e24\u4e2aAPI\u63a5\u53e3\uff0c\u8fd9\u4e24\u4e2a\u63a5\u53e3\u7684\u5177\u4f53\u6267\u884c\u903b\u8f91\u4e2d\u90fd\u4f1a\u628a\u6267\u884c\u8fc7\u7a0b\u62c6\u5206\u4e3a\u4e09\u4e2a\u5f02\u6b65\u4efb\u52a1\u6765\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p>\u597d\u4e86\uff0c\u601d\u8003\u4e00\u5206\u949f\uff0c\u60f3\u4e00\u4e0b\u3002\u5982\u679c\u8fd9\u6837\u5b9e\u73b0\uff0c\u4f1a\u6709\u4ec0\u4e48\u95ee\u9898\u5417\uff1f<\/p>\n\n\n\n<p>\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\uff0c\u5728API\u8bf7\u6c42\u5e76\u53d1\u4e0d\u9ad8\uff0c\u540c\u65f6\u5982\u679c\u6bcf\u4e2a\u4efb\u52a1\u7684\u5904\u7406\u901f\u5ea6\u4e5f\u591f\u5feb\u7684\u65f6\u5019\uff0c\u662f\u6ca1\u6709\u95ee\u9898\u7684\u3002\u4f46\u5982\u679c\u5e76\u53d1\u4e0a\u6765\u6216\u5176\u4e2d\u67d0\u51e0\u4e2a\u5904\u7406\u8fc7\u7a0b\u626f\u540e\u817f\u4e86\u7684\u65f6\u5019\u3002\u8fd9\u4e24\u4e2a\u63d0\u4f9b\u4e0d\u76f8\u5e72\u670d\u52a1\u7684\u63a5\u53e3\u53ef\u80fd\u4f1a\u4e92\u76f8\u5f71\u54cd\u3002\u6bd4\u5982\uff1a\u5047\u8bbe\u5f53\u524d\u7ebf\u7a0b\u6c60\u914d\u7f6e\u7684\u6700\u5927\u7ebf\u7a0b\u6570\u67092\u4e2a\uff0c\u8fd9\u4e2a\u65f6\u5019\/api-1\u63a5\u53e3\u4e2dtask1\u548ctask2\u5904\u7406\u901f\u5ea6\u5f88\u6162\uff0c\u963b\u585e\u4e86\uff1b\u90a3\u4e48\u6b64\u65f6\uff0c\u5f53\u7528\u6237\u8c03\u7528api-2\u63a5\u53e3\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u670d\u52a1\u4e5f\u4f1a\u963b\u585e\uff01<\/p>\n\n\n\n<p>\u9020\u6210\u8fd9\u79cd\u73b0\u573a\u7684\u539f\u56e0\u662f\uff1a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u7528 @Async \u521b\u5efa\u7684\u5f02\u6b65\u4efb\u52a1\u90fd\u662f\u5171\u7528\u7684\u4e00\u4e2a\u7ebf\u7a0b\u6c60\uff0c\u6240\u4ee5\u5f53\u6709\u4e00\u4e9b\u5f02\u6b65\u4efb\u52a1\u78b0\u5230\u6027\u80fd\u95ee\u9898\u7684\u65f6\u5019\uff0c\u662f\u4f1a\u76f4\u63a5\u5f71\u54cd\u5176\u4ed6\u5f02\u6b65\u4efb\u52a1\u7684\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u5c31\u9700\u8981\u5bf9\u5f02\u6b65\u4efb\u52a1\u505a\u4e00\u5b9a\u7684\u7ebf\u7a0b\u6c60\u9694\u79bb\uff0c\u8ba9\u4e0d\u540c\u7684\u5f02\u6b65\u4efb\u52a1\u4e92\u4e0d\u5f71\u54cd\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4e0d\u540c\u5f02\u6b65\u4efb\u52a1\u914d\u7f6e\u4e0d\u540c\u7ebf\u7a0b\u6c60\">\u4e0d\u540c\u5f02\u6b65\u4efb\u52a1\u914d\u7f6e\u4e0d\u540c\u7ebf\u7a0b\u6c60<\/h3>\n\n\n\n<p>\u4e0b\u9762\uff0c\u6211\u4eec\u5c31\u6765\u5b9e\u9645\u64cd\u4f5c\u4e00\u4e0b\uff01<\/p>\n\n\n\n<p>\u7b2c\u4e00\u6b65\uff1a\u521d\u59cb\u5316\u591a\u4e2a\u7ebf\u7a0b\u6c60\uff0c\u6bd4\u5982\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@EnableAsync\n@Configuration\npublic class TaskPoolConfig {\n\n    @Bean\n    public Executor taskExecutor1() {\n        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n        executor.setCorePoolSize(2);\n        executor.setMaxPoolSize(2);\n        executor.setQueueCapacity(10);\n        executor.setKeepAliveSeconds(60);\n        executor.setThreadNamePrefix(\"executor-1-\");\n        executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());\n        return executor;\n    }\n\n    @Bean\n    public Executor taskExecutor2() {\n        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n        executor.setCorePoolSize(2);\n        executor.setMaxPoolSize(2);\n        executor.setQueueCapacity(10);\n        executor.setKeepAliveSeconds(60);\n        executor.setThreadNamePrefix(\"executor-2-\");\n        executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());\n        return executor;\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\uff1a\u8fd9\u91cc\u7279\u5730\u7528 executor.setThreadNamePrefix \u8bbe\u7f6e\u4e86\u7ebf\u7a0b\u540d\u7684\u524d\u7f00\uff0c\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u89c2\u5bdf\u540e\u9762\u5177\u4f53\u6267\u884c\u7684\u987a\u5e8f\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff1a\u521b\u5efa\u5f02\u6b65\u4efb\u52a1\uff0c\u5e76\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u7ebf\u7a0b\u6c60\u540d\u79f0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@Slf4j\n@Component\npublic class AsyncTasks {\n\n    public static Random random = new Random();\n\n    @Async(\"taskExecutor1\")\n    public CompletableFuture&lt;String&gt; doTaskOne(String taskNo) throws Exception {\n        log.info(\"\u5f00\u59cb\u4efb\u52a1\uff1a{}\", taskNo);\n        long start = System.currentTimeMillis();\n        Thread.sleep(random.nextInt(10000));\n        long end = System.currentTimeMillis();\n        log.info(\"\u5b8c\u6210\u4efb\u52a1\uff1a{}\uff0c\u8017\u65f6\uff1a{} \u6beb\u79d2\", taskNo, end - start);\n        return CompletableFuture.completedFuture(\"\u4efb\u52a1\u5b8c\u6210\");\n    }\n\n    @Async(\"taskExecutor2\")\n    public CompletableFuture&lt;String&gt; doTaskTwo(String taskNo) throws Exception {\n        log.info(\"\u5f00\u59cb\u4efb\u52a1\uff1a{}\", taskNo);\n        long start = System.currentTimeMillis();\n        Thread.sleep(random.nextInt(10000));\n        long end = System.currentTimeMillis();\n        log.info(\"\u5b8c\u6210\u4efb\u52a1\uff1a{}\uff0c\u8017\u65f6\uff1a{} \u6beb\u79d2\", taskNo, end - start);\n        return CompletableFuture.completedFuture(\"\u4efb\u52a1\u5b8c\u6210\");\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p>\u8fd9<strong>\u91cc @Async \u6ce8\u89e3\u4e2d\u5b9a\u4e49\u7684 taskExecutor1 \u548c taskExecutor2 \u5c31\u662f\u7ebf\u7a0b\u6c60<\/strong>\u7684\u540d\u5b57\u3002\u7531\u4e8e\u5728\u7b2c\u4e00\u6b65\u4e2d\uff0c\u6211\u4eec\u6ca1\u6709\u5177\u4f53\u5199\u4e24\u4e2a\u7ebf\u7a0b\u6c60Bean\u7684\u540d\u79f0\uff0c\u6240\u4ee5\u9ed8\u8ba4\u4f1a\u4f7f\u7528\u65b9\u6cd5\u540d\uff0c\u4e5f\u5c31\u662f taskExecutor1 \u548c taskExecutor2 \u3002<\/p>\n\n\n\n<p>\u7b2c\u4e09\u6b65\uff1a\u5199\u4e2a\u5355\u5143\u6d4b\u8bd5\u6765\u9a8c\u8bc1\u4e0b\uff0c\u6bd4\u5982\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@Slf4j\n@SpringBootTest\npublic class Chapter77ApplicationTests {\n\n    @Autowired\n    private AsyncTasks asyncTasks;\n\n    @Test\n    public void test() throws Exception {\n        long start = System.currentTimeMillis();\n\n        \/\/ \u7ebf\u7a0b\u6c601\n        CompletableFuture&lt;String&gt; task1 = asyncTasks.doTaskOne(\"1\");\n        CompletableFuture&lt;String&gt; task2 = asyncTasks.doTaskOne(\"2\");\n        CompletableFuture&lt;String&gt; task3 = asyncTasks.doTaskOne(\"3\");\n\n        \/\/ \u7ebf\u7a0b\u6c602\n        CompletableFuture&lt;String&gt; task4 = asyncTasks.doTaskTwo(\"4\");\n        CompletableFuture&lt;String&gt; task5 = asyncTasks.doTaskTwo(\"5\");\n        CompletableFuture&lt;String&gt; task6 = asyncTasks.doTaskTwo(\"6\");\n\n        \/\/ \u4e00\u8d77\u6267\u884c\n        CompletableFuture.allOf(task1, task2, task3, task4, task5, task6).join();\n\n        long end = System.currentTimeMillis();\n\n        log.info(\"\u4efb\u52a1\u5168\u90e8\u5b8c\u6210\uff0c\u603b\u8017\u65f6\uff1a\" + (end - start) + \"\u6beb\u79d2\");\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p>\u5728\u4e0a\u9762\u7684\u5355\u5143\u6d4b\u8bd5\u4e2d\uff0c\u4e00\u5171\u542f\u52a8\u4e866\u4e2a\u5f02\u6b65\u4efb\u52a1\uff0c\u524d\u4e09\u4e2a\u7528\u7684\u662f\u7ebf\u7a0b\u6c601\uff0c\u540e\u4e09\u4e2a\u7528\u7684\u662f\u7ebf\u7a0b\u6c602\u3002<\/p>\n\n\n\n<p>\u5148\u4e0d\u6267\u884c\uff0c\u6839\u636e\u8bbe\u7f6e\u7684\u6838\u5fc3\u7ebf\u7a0b2\u548c\u6700\u5927\u7ebf\u7a0b\u65702\uff0c\u6765\u5206\u6790\u4e00\u4e0b\uff0c\u5927\u6982\u4f1a\u662f\u600e\u4e48\u6837\u7684\u6267\u884c\u60c5\u51b5\uff1f<\/p>\n\n\n\n<ul><li>\u7ebf\u7a0b\u6c601\u7684\u4e09\u4e2a\u4efb\u52a1\uff0ctask1\u548ctask2\u4f1a\u5148\u83b7\u5f97\u6267\u884c\u7ebf\u7a0b\uff0c\u7136\u540etask3\u56e0\u4e3a\u6ca1\u6709\u53ef\u5206\u914d\u7ebf\u7a0b\u8fdb\u5165\u7f13\u51b2\u961f\u5217<\/li><li>\u7ebf\u7a0b\u6c602\u7684\u4e09\u4e2a\u4efb\u52a1\uff0ctask4\u548ctask5\u4f1a\u5148\u83b7\u5f97\u6267\u884c\u7ebf\u7a0b\uff0c\u7136\u540etask6\u56e0\u4e3a\u6ca1\u6709\u53ef\u5206\u914d\u7ebf\u7a0b\u8fdb\u5165\u7f13\u51b2\u961f\u5217<\/li><li>\u4efb\u52a1task3\u4f1a\u5728task1\u6216task2\u5b8c\u6210\u4e4b\u540e\uff0c\u5f00\u59cb\u6267\u884c<\/li><li>\u4efb\u52a1task6\u4f1a\u5728task4\u6216task5\u5b8c\u6210\u4e4b\u540e\uff0c\u5f00\u59cb\u6267\u884c<\/li><\/ul>\n\n\n\n<p>\u5206\u6790\u597d\u4e4b\u540e\uff0c\u6267\u884c\u4e0b\u5355\u5143\u6d4b\u8bd5\uff0c\u770b\u770b\u662f\u5426\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2021-09-15 23:45:11.369  INFO 61670 --- &#91;   executor-1-1] com.didispace.chapter77.AsyncTasks       : \u5f00\u59cb\u4efb\u52a1\uff1a1\n2021-09-15 23:45:11.369  INFO 61670 --- &#91;   executor-2-2] com.didispace.chapter77.AsyncTasks       : \u5f00\u59cb\u4efb\u52a1\uff1a5\n2021-09-15 23:45:11.369  INFO 61670 --- &#91;   executor-2-1] com.didispace.chapter77.AsyncTasks       : \u5f00\u59cb\u4efb\u52a1\uff1a4\n2021-09-15 23:45:11.369  INFO 61670 --- &#91;   executor-1-2] com.didispace.chapter77.AsyncTasks       : \u5f00\u59cb\u4efb\u52a1\uff1a2\n2021-09-15 23:45:15.905  INFO 61670 --- &#91;   executor-2-1] com.didispace.chapter77.AsyncTasks       : \u5b8c\u6210\u4efb\u52a1\uff1a4\uff0c\u8017\u65f6\uff1a4532 \u6beb\u79d2\n2021-09-15 23:45:15.905  INFO 61670 --- &#91;   executor-2-1] com.didispace.chapter77.AsyncTasks       : \u5f00\u59cb\u4efb\u52a1\uff1a6\n2021-09-15 23:45:18.263  INFO 61670 --- &#91;   executor-1-2] com.didispace.chapter77.AsyncTasks       : \u5b8c\u6210\u4efb\u52a1\uff1a2\uff0c\u8017\u65f6\uff1a6890 \u6beb\u79d2\n2021-09-15 23:45:18.263  INFO 61670 --- &#91;   executor-1-2] com.didispace.chapter77.AsyncTasks       : \u5f00\u59cb\u4efb\u52a1\uff1a3\n2021-09-15 23:45:18.896  INFO 61670 --- &#91;   executor-2-2] com.didispace.chapter77.AsyncTasks       : \u5b8c\u6210\u4efb\u52a1\uff1a5\uff0c\u8017\u65f6\uff1a7523 \u6beb\u79d2\n2021-09-15 23:45:19.842  INFO 61670 --- &#91;   executor-1-2] com.didispace.chapter77.AsyncTasks       : \u5b8c\u6210\u4efb\u52a1\uff1a3\uff0c\u8017\u65f6\uff1a1579 \u6beb\u79d2\n2021-09-15 23:45:20.551  INFO 61670 --- &#91;   executor-1-1] com.didispace.chapter77.AsyncTasks       : \u5b8c\u6210\u4efb\u52a1\uff1a1\uff0c\u8017\u65f6\uff1a9178 \u6beb\u79d2\n2021-09-15 23:45:24.117  INFO 61670 --- &#91;   executor-2-1] com.didispace.chapter77.AsyncTasks       : \u5b8c\u6210\u4efb\u52a1\uff1a6\uff0c\u8017\u65f6\uff1a8212 \u6beb\u79d2\n2021-09-15 23:45:24.117  INFO 61670 --- &#91;           main] c.d.chapter77.Chapter77ApplicationTests  : \u4efb\u52a1\u5168\u90e8\u5b8c\u6210\uff0c\u603b\u8017\u65f6\uff1a12762\u6beb\u79d2<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Cloud \u91cc\u9762\u7684 Hystrix \u7ec4\u4ef6\uff0c\u5c31\u662f\u57fa\u4e8e\u7ebf\u7a0b\u6c60\u6765\u505a\u7684\u7194\u65ad\uff0c\u8d44\u6e90\u9694\u79bb\u3002\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u5bf9\u5e94\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3115"}],"collection":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3115"}],"version-history":[{"count":4,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3115\/revisions"}],"predecessor-version":[{"id":3119,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3115\/revisions\/3119"}],"wp:attachment":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}