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
910
Serverless Meetup Re:boot 福岡 TiDB Serverlessの紹介
bohnen
1
190
Serverless Meetup Fukuoka Workshop TiDB
bohnen
0
120
TiUG #0 発表資料: TiDBの紹介と最新情報
bohnen
0
320
Momento会 #8 Serverless with TiDB/Momento/Postman
bohnen
0
110
Momento Topics使ってみた
bohnen
0
230
Other Decks in Technology
See All in Technology
オンラインゲームのシステム全体像 - コロプラ 2026年度 新卒研修
colopl
0
1k
AI時代のPRレビューにどう向き合うか?
kairim0
1
120
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
140
Deep Data Security 機能解説
oracle4engineer
PRO
2
740
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
140
契約書画像からの情報抽出に特化した視覚接地モデルを育てる話
sansantech
PRO
1
160
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.2k
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
130
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
150
AIは爆速なのに、私が詰まっていた話 ― 音声入力と鳴くマスコットでボトルネックを削る
yama3133
0
570
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
320
今さら理解するウェブフォントver.2026
takanorip
3
530
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Rails Girls Zürich Keynote
gr2m
96
14k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
A Soul's Torment
seathinner
8
3.7k
Navigating Weather and Climate Data
rabernat
0
550
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Chasing Engaging Ingredients in Design
codingconduct
0
350
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
860
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Designing Experiences People Love
moore
143
24k
HDC tutorial
michielstock
2
950
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/ 是非試してみてください!