<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Lebry39</author_name>
  <author_url>https://blog.hatena.ne.jp/Lebry39/</author_url>
  <blog_title>Buri Memo:</blog_title>
  <blog_url>https://burion.net/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>ソフトウェア設計</anon>
    <anon>Programming</anon>
  </categories>
  <description>Node.js で依存関係をうまく制御するために、Pub/Sub パターンを使いたかった。調べて見つけた Rxjs の Subject を利用することで上手く実装できたと思う。Pub/Sub を使うと何が嬉しいのかと、Subject を使った実装をまとめてみる。 例には以下の FizzBuzz クラスを使う。300ms ごとに 1~15までカウントアップして、Fizz Buzz が表示されるだけ。 そして、このクラスに対して Fizz が表示される回数を数える ことを考えてみる。 class FizzBuzz { static async run(): Promise&lt;void&gt;{ const…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fburion.net%2Fentry%2F2022%2F08%2F14%2F180850&quot; title=&quot;RxjsのSubjectを活用したNode.jsプログラムの依存関係制御 - Buri Memo:&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>2022-08-14 18:08:50</published>
  <title>RxjsのSubjectを活用したNode.jsプログラムの依存関係制御</title>
  <type>rich</type>
  <url>https://burion.net/entry/2022/08/14/180850</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
