<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>GCP</anon>
    <anon>PubSub</anon>
  </categories>
  <description>Overview ema-hiro.hatenablog.com 上記で書いた gRPC サーバーを local で立ち上げる方法を下に、local で起動したその gRPC サーバーを利用して pubsub の動作(今回は subscriber の動作）をエミュレートするテストを書いてみます。 local でテスト用の pubsub クライアントを実装する // grpc サーバーを起動する listener, err := net.Listen(&quot;tcp&quot;, &quot;localhost:0&quot;) if err != nil { t.Fatal(err) } ts := grpc.NewServer…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2024%2F12%2F11%2F003050&quot; title=&quot;local で Cloud Pub/Sub の動作をエミュレートする - emahiro/b.log&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>2024-12-11 00:30:50</published>
  <title>local で Cloud Pub/Sub の動作をエミュレートする</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/2024/12/11/003050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
