<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngyuki</author_name>
  <author_url>https://blog.hatena.ne.jp/ngyuki/</author_url>
  <blog_title>ngyukiの日記</blog_title>
  <blog_url>https://ngyuki.hatenablog.com/</blog_url>
  <categories>
    <anon>NodeJS</anon>
  </categories>
  <description>NodeJS で非奨励の Domain を使ってコンテキスト的なものを持ち回すことなく横断的なトランザクション というのをやってみましたが、よくよく見てみれば Async hooks でも同じことができそうでした。 Domain は Deprecated でしたが Async hooks は Experimental なのでこっちのほうが良いです。しかも下記のコードを見るに Domain も実は Async hooks で実装されているんですね。 https://github.com/nodejs/node/blob/v14.10.0/lib/domain.js 例えば次のように非同期コールバ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fngyuki.hatenablog.com%2Fentry%2F2020%2F09%2F18%2F235626&quot; title=&quot;NodeJS で実験的な Async hooks を使って横断的なトランザクション - ngyukiの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-18 23:56:26</published>
  <title>NodeJS で実験的な Async hooks を使って横断的なトランザクション</title>
  <type>rich</type>
  <url>https://ngyuki.hatenablog.com/entry/2020/09/18/235626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
