{"id":1720,"date":"2017-06-19T17:25:21","date_gmt":"2017-06-19T08:25:21","guid":{"rendered":"http:\/\/kazu.tv\/blog\/?p=1720"},"modified":"2017-06-19T17:25:21","modified_gmt":"2017-06-19T08:25:21","slug":"scala-%e3%81%a8%e3%81%8b-play-%e3%81%ae-future-%e3%81%a8-executioncontext-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2017\/06\/19\/scala-%e3%81%a8%e3%81%8b-play-%e3%81%ae-future-%e3%81%a8-executioncontext-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"Scala \u3068\u304b Play \u306e Future \u3068 ExecutionContext \u306b\u3064\u3044\u3066"},"content":{"rendered":"<h1>\u80cc\u666f<\/h1>\n<p>Scala \u3084 Play! framework \u3067 Future \u4f7f\u3046\u3068\u304d\u306b\u3001ExecutionContext \u3092\u6e21\u305b\u3068\u8a00\u308f\u308c\u308b\u3002\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u3068\u308a\u3042\u3048\u305a<\/p>\n<pre class=\"brush: scala; title: ; notranslate\" title=\"\">\r\nimport scala.concurrent.ExecutionContext.Implicits.global\r\n<\/pre>\n<p>\u3068\u3084\u3063\u3066\u304a\u3051\u3070\u3001\u3068\u308a\u3042\u3048\u305a\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u901a\u308b\u3093\u3060\u3051\u3069\u3001\u3088\u304f\u5206\u304b\u3089\u305a\u306b\u3084\u3063\u3066\u3044\u308b\u4eba\u3082\u591a\u3044\u3068\u601d\u3046\uff08\u30ce\uff09\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u305d\u3063\u304b\u3089\u5148\u306e\u8a71\u3002<\/p>\n<p><!--more--><\/p>\n<h1>Future \u306f\u3069\u3046\u3084\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\uff1f<\/h1>\n<p>Future \u306e\u51e6\u7406\u306f\u3001ExecutionContext \u3068\u3044\u3046\u3082\u306e\u306b\u3088\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\u3002ExecutionContext \u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u304c\u3042\u308b\u3002<\/p>\n<p><a href=\"http:\/\/docs.scala-lang.org\/overviews\/core\/futures.html\" target=\"_blank\" rel=\"noopener\">Futures and Promises &#8211; Scala Documentation<\/a><\/p>\n<p>\uff08\u3061\u306a\u307f\u306b\u3001<a href=\"http:\/\/docs.scala-lang.org\/ja\/overviews\/core\/futures.html\" target=\"_blank\" rel=\"noopener\">\u65e5\u672c\u8a9e\u8a33<\/a>\u306f\u53e4\u3044\u305b\u3044\u304b\u3001\u82f1\u8a9e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5185\u5bb9\u304c\u7570\u306a\u308b\u3002\uff09<\/p>\n<p>1\u3064\u306e Future \u304c\u3069\u3046\u5b9f\u884c\u3055\u308c\u308b\u304b\u306f ExecutionContext \u6b21\u7b2c\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u304c\u3042\u308a\u3046\u308b\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u8aac\u660e\u3092\u3060\u3044\u305f\u3044\u305d\u306e\u307e\u307e\u66f8\u304f\u3068\u3001<\/p>\n<ul>\n<li>\u65b0\u898f\u30b9\u30ec\u30c3\u30c9\u304c\u7acb\u3061\u4e0a\u304c\u308b<\/li>\n<li>\u30b9\u30ec\u30c3\u30c9\u30d7\u30fc\u30eb\u304b\u3089\u7a7a\u3044\u3066\u3044\u308b\u30b9\u30ec\u30c3\u30c9\u3092\u53d6\u3063\u3066\u304d\u3066\u3001\u305d\u306e\u30b9\u30ec\u30c3\u30c9\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u308b<\/li>\n<li>\u5b9f\u884c\u5143\u306e\u30b9\u30ec\u30c3\u30c9\u3068\u540c\u3058\u30b9\u30ec\u30c3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b\uff08\u975e\u63a8\u5968\uff09<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u611f\u3058\u3002<\/p>\n<p>\u307e\u3001\u3053\u3053\u307e\u3067\u306f\u77e5\u3063\u3066\u308b\u4eba\u3082\u591a\u3044\u3068\u601d\u3046\u3002<\/p>\n<h1>ExecutionContext \u306e\u7a2e\u985e<\/h1>\n<p>\u5927\u96d1\u628a\u306b\u4ee5\u4e0b\u306e3\u3064\u306b\u5206\u3051\u3066\u8aac\u660e\u3002<\/p>\n<ol>\n<li>scala.concurrent.ExecutionContext.Implicits.global<\/li>\n<li>play.api.libs.concurrent.Execution.Implicits.defaultContext (Play! framework \u306e\u5834\u5408)<\/li>\n<li>\u81ea\u5206\u3067\u4f5c\u308b<\/li>\n<\/ol>\n<h2>scala.concurrent.ExecutionContext.Implicits.global<\/h2>\n<p>Scala \u306e\u6a19\u6e96\u306e\uff1f ExecutionContext \u3002\u9577\u3044\u306e\u3067\u3001\u4ee5\u4e0b global \u3068\u547c\u3076\u3002\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3053\u308c\u3092\u4f7f\u3046\u3002(\u305f\u3060\u3057\u3001Play! framework \u306e\u5834\u5408\u306f\u3001\u5f8c\u8ff0\u306e play.api.libs.concurrent.Execution.Implicits.defaultContext \u3092\u4f7f\u3046\u3068\u826f\u3044\u3002)<\/p>\n<p>\u3053\u306e global \u306f\u3001\u3069\u3093\u306a\u5834\u9762\u3067\u3082\u305d\u308c\u306a\u308a\u306b\u7121\u96e3\u306b\u52d5\u304f\u8a2d\u8a08\u304c\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u306e global \u306e\u6319\u52d5\u3082\u5148\u307b\u3069\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u304c\u3042\u308b\u304c\u3001\u5177\u4f53\u7684\u306b\u306f<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/java\/util\/concurrent\/ForkJoinPool.html\" target=\"_blank\" rel=\"noopener\">ForkJoinPool<\/a> \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b<\/li>\n<li>\u4e26\u5217\u5ea6\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fCPU\u30b3\u30a2\u6570\u3068\u540c\u3058\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\n<ul>\n<li>\u5909\u66f4\u3059\u308b\u5834\u5408\u306f\u3001\u524d\u56de\u66f8\u3044\u305f<a href=\"http:\/\/kazu.tv\/blog\/2017\/06\/13\/scala-parallel-collections-run-in-serial\/\">\u4e26\u5217\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u540c\u69d8<\/a>\u3001scala.concurrent.context.* \u3092\u3044\u3058\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>play.api.libs.concurrent.Execution.Implicits.defaultContext<\/h2>\n<p>Play! \u306e\u5834\u5408\u306f\u3001play.api.libs.concurrent.Execution.Implicits.defaultContex \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e ExecutionContext \u3067\u3001\u300c\u5927\u62b5\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3053\u308c\u3092\u4f7f\u3048\u3070OK\u300d\uff08\u7b46\u8005\u8d85\u8a33\uff09\u3068\u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3042\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.playframework.com\/documentation\/2.5.x\/ThreadPools#Using-the-default-thread-pool\">ThreadPools &#8211; 2.5.x<\/a><\/p>\n<p>\u3053\u308c\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u306f\u3001application.conf \u3092\u3044\u3058\u308b\u3002\u8a73\u7d30\u306f\u4e0a\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u53c2\u7167\u3002<\/p>\n<p>\uff08Play! \u306e\u5834\u5408\u306f\u3001 global \u306f\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u826f\u3044\u3001\u3063\u3066\u306e\u306f\u3069\u3063\u304b\u306b\u66f8\u3044\u3066\u3042\u3063\u305f\u3051\u3069\u898b\u3064\u304b\u3089\u305a\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u306a\u304b\u3063\u305f\u304b\u3082\u3002\u7406\u7531\u3068\u3057\u3066\u306f\u3001\u8a2d\u5b9a\u5909\u66f4\u3068\u304b\u306e\u7ba1\u7406\u304c\u3057\u3065\u3089\u3044\uff08application.conf \u3067\u306f\u8a2d\u5b9a\u3067\u304d\u306a\u3044\u306e\u3067\uff09\u3068\u304b\u305d\u3046\u3044\u3063\u305f\u7406\u7531\u3060\u3063\u305f\u306f\u305a\u3002\uff09<\/p>\n<h2>\u81ea\u5206\u3067\u4f5c\u308b<\/h2>\n<h3>Scala \u7de8<\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u9577\u304f\u304b\u304b\u308b\u51e6\u7406\u3082\u3059\u3050\u306b\u7d42\u308f\u308b\u51e6\u7406\u3082\u3001\u540c\u3058\u30b9\u30ec\u30c3\u30c9\u30d7\u30fc\u30eb\u3092\u4f7f\u308f\u308c\u3066\u3057\u307e\u3046\u3068\u56f0\u308b\u5834\u5408\u3082\u3042\u308b\u3068\u601d\u3046\u3002\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306a\u3069\u306b\u306f\u3001\u81ea\u524d\u3067 ExecutionContext \u3092\u4f5c\u308b\u3068\u3044\u3046\u65b9\u6cd5\u304c\u3042\u308b\u3002<\/p>\n<p>\u4f5c\u308a\u65b9\u306f\u3001\u751f\u306e Scala \u306e\u5834\u5408\u3001\u524d\u8ff0\u306e <a href=\"http:\/\/docs.scala-lang.org\/overviews\/core\/futures.html\" target=\"_blank\" rel=\"noopener\">Futures and Promises<\/a> \u306b\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: scala; title: ; notranslate\" title=\"\">\r\nExecutionContext.fromExecutor(new ThreadPoolExecutor( \/* your configuration *\/ ))\r\n<\/pre>\n<h3>Play \u7de8<\/h3>\n<p>Play \u306e\u5834\u5408\u3001ExecutionContext \u306e\u5b9f\u88c5\u306f\u3001Akka \u306e dispatcher \u306a\u306e\u3067\u3001application.conf \u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3068\u306f\u5225\u306e Akka \u306e\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u304a\u304d\u3001\u305d\u308c\u3092 lookup \u3057\u3066\u4f7f\u3046\u3068\u3044\u3046\u65b9\u6cd5\u3092\u3059\u308b\u3002<\/p>\n<p>\u8a73\u7d30\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e <a href=\"https:\/\/www.playframework.com\/documentation\/2.5.x\/ThreadPools#Using-other-thread-pools\" target=\"_blank\" rel=\"noopener\">Using other thread pools<\/a> \u306e\u9805\u3092\u53c2\u7167\u3002<\/p>\n<h2>Akka<\/h2>\n<p>\u3061\u3087\u3063\u3068\u672c\u984c\u304b\u3089\u306f\u305a\u308c\u308b\u3051\u3069\u3001Akka \u306e\u5834\u5408\u306f\u3001MessageDispatcher \u304c ExecutionContext \u306e\u50cd\u304d\u3092\u3059\u308b\u3002\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3002<\/p>\n<p><a href=\"http:\/\/doc.akka.io\/docs\/akka\/current\/scala\/futures.html#execution-contexts\">Futures \u2022 Akka Documentation<\/a><\/p>\n<p>Actor \u5185\u304b\u3089\u3067\u3042\u308c\u3070\u3001context.dispatcher \u3092 import \u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<pre class=\"brush: scala; title: ; notranslate\" title=\"\">\r\nclass A extends Actor {\r\n  import context.dispatcher\r\n  val f = Future(&quot;hello&quot;)\r\n  def receive = {\r\n    case _ =&gt;\r\n  }\r\n}\r\n<\/pre>\n<h1>Future \u95a2\u9023\u306e\u6ce8\u610f\u70b9\u3068\u304b\u305d\u306e\u4ed6<\/h1>\n<h2>ExecutionContext \u306e\u6e21\u3057\u65b9<\/h2>\n<p>\u5206\u304b\u308b\u3068\u306f\u601d\u3046\u3051\u3069\u4e00\u5fdc\u3002<\/p>\n<pre class=\"brush: scala; title: ; notranslate\" title=\"\">\r\nval ec = ... \/\/ ExecutionContext\r\nFuture {\r\n  \/\/ \u306a\u3093\u304b\u306e\u51e6\u7406\r\n}(ec)\r\n<\/pre>\n<h2>blocking \u3063\u3066\u4f55\uff1f<\/h2>\n<p>Future \u5185\u90e8\u3067\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b blocking \u3068\u3044\u3046\u306e\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u826f\u3044\u3002<\/p>\n<pre class=\"brush: scala; title: ; notranslate\" title=\"\">\r\nFuture {\r\n  blocking {\r\n    \/\/ \u306a\u3093\u304b\u306e\u30d6\u30ed\u30c3\u30af\u51e6\u7406\r\n  }\r\n}\r\n<\/pre>\n<p>\u7406\u7531\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u306e2\u3064\u3002<\/p>\n<ul>\n<li>ExecutionContext \u5185\u90e8\u3067\u3001\u5225\u6271\u3044\u3067\u51e6\u7406\u3057\u3066\u304f\u308c\u308b<strong>\u5834\u5408\u304c\u3042\u308b<\/strong><\/li>\n<li>\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u4eba\u306b\u3068\u3063\u3066\u3001\u300c\u3042\u3001\u3053\u3053\u306f\u30d6\u30ed\u30c3\u30af\u3059\u308b\u306e\u306d\u300d\u3001\u3068\u308f\u304b\u308a\u3084\u3059\u3044<\/li>\n<\/ul>\n<p>\u524d\u8005\u306b\u95a2\u3057\u3066\u306f\u3001\u3053\u3061\u3089\u3082\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a18\u8f09\u304c\u3042\u308b\u304c\u3001global \u3068\u304b\u306f blocking \u3068\u305d\u3046\u3067\u306a\u3044\u306e\u306f\u9055\u3063\u305f\u51e6\u7406\u304c\u3055\u308c\u308b\u304c\u3001Executors.newFixedThreadPool \u3067\u4f5c\u3063\u305f\u3082\u306e\u3068\u304b\u3060\u3068\u3001 blocking \u3068\u66f8\u3044\u3066\u3042\u3063\u3066\u3082\u7121\u8996\u3055\u308c\u308b\u3002Stack Overflow \u306b<a href=\"https:\/\/stackoverflow.com\/a\/29069021\/564246\" target=\"_blank\" rel=\"noopener\">\u8a73\u3057\u3044\u89e3\u8aac<\/a>\u3092\u66f8\u3044\u3066\u308b\u4eba\u304c\u3044\u305f\u3002<\/p>\n<h2>Await \u4f7f\u3046\u5834\u5408\u306f\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u8a2d\u5b9a\u3057\u305f\u307b\u3046\u304c\u826f\u3044<\/h2>\n<p>Await.result \u3068\u304b\u306f\u6975\u529b\u4f7f\u3046\u306a\u3068\u304b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u4f7f\u308f\u3056\u308b\u3092\u5f97\u306a\u3044\u3002\u3067\u3001\u305d\u306e\u5834\u5408\u306f\u3001 Duration.Inf \u306f\u4f7f\u308f\u305a\u3001\u9069\u5207\u306a\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u5024\u3092\u8a2d\u5b9a\u3059\u3079\u304d\u3060\u3068\u601d\u3046\u3002<\/p>\n<p>Await \u3059\u308b\u306e\u304c\u8907\u6570\u7b87\u6240\u3042\u3063\u305f\u5834\u5408\u3001\u30b9\u30ec\u30c3\u30c9\u30d7\u30fc\u30eb\u304b\u3089\u306e\u30b9\u30ec\u30c3\u30c9\u53d6\u5f97\u5f85\u3061\u3067\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3057\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u8a70\u3080\u3002\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u3001\u7c21\u5358\u306a\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u306e\u4f8b\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u53c2\u8003\u307e\u3067\u3002<\/p>\n<p><a href=\"http:\/\/asznajder.github.io\/thread-pool-induced-deadlocks\/\">How to avoid thread pool induced deadlocks? \u2013 Adam Sznajder &#8211; personal blog<\/a><\/p>\n<h1>\u95a2\u9023\u3059\u308b\u60c5\u5831<\/h1>\n<p>\u4ee5\u4e0b\u3001\u81ea\u5206\u7528\u30e1\u30e2\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/twitter.github.io\/scala_school\/concurrency.html\">Scala School &#8211; Concurrency in Scala<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/alexandru\/scala-best-practices\/blob\/master\/sections\/4-concurrency-parallelism.md\">scala-best-practices\/4-concurrency-parallelism.md at master \u00b7 alexandru\/scala-best-practices<\/a><\/li>\n<li><a href=\"http:\/\/mandubian.com\/2013\/02\/22\/scala-future-fatal-exception\/\">Being aware Scala 2.10.0 Futures conceal Fatal exceptions &#8211; Mandubian Blog<\/a><\/li>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/16304471\/scala-futures-built-in-timeout\">concurrency &#8211; Scala Futures &#8211; built in timeout? &#8211; Stack Overflow<\/a><\/li>\n<\/ul>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u4e8c\u6d41\u30d7\u30ed\u30b0\u30e9\u30de\u306b\u3068\u3063\u3066\u306f\u3053\u306e\u8fba\u306f\u96e3\u3057\u3044\u308f\u30fc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f Scala \u3084 Play! framework \u3067 Future \u4f7f\u3046\u3068\u304d\u306b\u3001ExecutionContext \u3092\u6e21\u305b\u3068\u8a00\u308f\u308c\u308b\u3002\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u3068\u308a\u3042\u3048\u305a import scala.concurrent.E&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[20],"tags":[967,968,947],"class_list":["post-1720","post","type-post","status-publish","format-standard","hentry","category-scala","tag-concurrency","tag-future","tag-scala"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=1720"}],"version-history":[{"count":2,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1720\/revisions"}],"predecessor-version":[{"id":1722,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1720\/revisions\/1722"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=1720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=1720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=1720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}