Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Postman Tokyo Meetup - Serverless Integration w...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bohnen
February 25, 2024
Technology
280
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Postman Tokyo Meetup - Serverless Integration with Flows
bohnen
February 25, 2024
More Decks by bohnen
See All by bohnen
Momento会 #9 TiDB ServerlessとMomentoの話
bohnen
0
110
Cloud on the beach - いろいろな雲のかたち
bohnen
1
110
TiUG #1 TiDB overview and update
bohnen
0
310
みんなのPython勉強会: 最近のDB事情 TiDB Serverlessの紹介
bohnen
1
900
Serverless Meetup Re:boot 福岡 TiDB Serverlessの紹介
bohnen
1
190
Serverless Meetup Fukuoka Workshop TiDB
bohnen
0
120
TiUG #0 発表資料: TiDBの紹介と最新情報
bohnen
0
310
Momento会 #8 Serverless with TiDB/Momento/Postman
bohnen
0
110
Momento Topics使ってみた
bohnen
0
230
Other Decks in Technology
See All in Technology
AIは推し活である。
kurazuuuuuu
1
860
AI時代の「技術的負債」の変質ー概念の終焉と再解釈、エージェントと共に向かう先
nwiizo
1
2.9k
Azure Serverless 2026:Production-ready な AI エージェント基盤 / Azure Serverless 2026: Production-Ready AI Agent Platform
miyake
2
370
時うどん〜Socket.getifaddrsで学ぶネットワーク編 / Tokiudon: The Socket.getifaddrs Edition
coe401_
3
160
開発投資の期待値を上げるプロダクトロードマップづくり ~プロダクトエンジニアが越境して事業を伸ばす~
kekekenta
1
230
作って終わりじゃないサーバーレス 〜9年運用する大規模EC物流API基盤の設計・運用のリアル〜
zozotech
PRO
0
300
SREの視点で考えるSIEM活用術 〜AWS環境でのセキュリティ強化〜
cscengineer
PRO
0
130
映像変換サーバーなしで端末内でHLSを生成してライブ配信
hikarusato
0
130
Railsのように考える: See through the Master
snoozer05
PRO
4
1.2k
AgentCore Runtime上にAgentic Coding基盤を構築・展開する際の設計ポイントと限界点 / Design considerations and limitations when building an agentic coding platform on AgentCore Runtime
har1101
5
490
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
4
680
AIで社員の自主発信に広報目線を組み込む
_mossann_t
0
130
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
We Are The Robots
honzajavorek
0
380
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Rails Girls Zürich Keynote
gr2m
96
14k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
850
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
540
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
280
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Technical Leadership for Architectural Decision Making
baasie
3
570
Transcript
Postman Flowsで お⼿軽サーバレスサービス連携 PingCAP Developer Advocate 関⼝匡稔 @bohnen
関⼝匡稔 @bohnen PingCAP株式会社 Developer Advocate (⾒習い) Solution Architect (本業)
会社紹介 Our Mission エンジニアのみなさまへの価値提供によって ビジネスのスケール、スピード、アジリティに貢 献します NewSQL + HTAP MySQL互換の分散型SQLデータベース
グローバル 以上で採⽤ 3,000社
Postman Flows 複数のサービスを連携させ、 処理を実⾏させるノーコード ツール • 簡単なVisual Scripting • ループもできる処理構⽂
• XML/JSONを⾃動パース • Webhookとして公開できる
Postman Flowsのユースケース 本命の使い⽅ • ビジネスプロセス実⾏ • サービス連携 シェルのような感覚 • 汎⽤Decorator
• バックエンドのサービ ス連携のプロトタイプ • 簡単な動作確認 • etc. 今回はコレ。便利です。 APIを介してLLMと接続 GPTsライクな処理も⾏けそ う サービス連携 プロトタイプ Visual LangChain
TiDB ServerlessのData API TiDB ① テーブル定義 ② API⽣成 ③ Postman連携
ChatGPTにお任せ 単純CRUDなら全⾃動 URLをimportするだけ
実装タイム!
サービス連携の例 〜 Momento Exchange Rate Publisher Order Executor (本来は)LPの価格に利益を乗せて顧客に提供する 価格はtopicsを使ってリアルタイ
ムに同報通信 注文はRESTエンドポイントを呼び 出し 注文が実勢価格よりも一定以上 乖離しているとnothing(失効) 実際はLPに投げる LP(Liquidity Provider) 業者向けに価格を提供して、 その値段で注文を受け付け る業者 金融機関や取引所など ここの部分を追加 https://speakerdeck.com/bohnen/postman
ギャップを埋める TiDB Postman Momento REST API (API Key) • Basic/Digest認証
• パラメーター設定は SQL に合わせて Postman Flows • 認証の設定 • Webhookの生成 • データの詰め替え Pub/Sub + Webhook • 認証なし • 来たメッセージをPOSTの Bodyに突っ込む • なぜかapplication/jsonで はなくtextで入ってくる
Postman Flows での開発 ① API変数設定 ② Flows作成 ③ テスト 認証トークン設定
ポチポチ ログを⾒ながら Postman
認証 Env Varとし て設定済み データ詰め替え FQLの関数を利 用。AI支援もある Webhook Flowsはwebhookと して公開できる
例その2 〜 新刊情報をDBに保存 IT系出版社の直近一ヶ月の新刊情 報を取得 タイトル、著者、出版社、その 他まるっとJSON保存 OpenSearch APIを利用 レスポンスはRSS2.0
(XML) 属性が任意で扱いが 面倒
テーブル定義とPOST API TiDB URLは https://ndlsearch.ndl.go.jp/books/R100000002-I033282127 のような形で書誌IDが含まれている
国会図書館サーチ APIの呼び出し 取得件数分 ループ POST Bodyの 作成 TiDB APIコール
まとめ 〜 Flowsのメリット • Postmanに統合されているのでAPIのデバッグが楽 ◦ API機能の⽅でAPIの呼び出しエラーを修正できる • データの取り回しが⾮常に楽 ◦
XML/JSON関係無いのは良い • 実際のデータに基づいてselect書けるのは良い ◦ データの結果が出⼒ノードで確認できる • FQLが強⼒ ◦ jqっぽい
THANK YOU. https://pingcap.co.jp/tidb-cloud/ 是非試してみてください!