SlideShare a Scribd company logo
1 of 29
API のことはすべてシーマンが教えてくれた
@charlier_shoe
自己紹介
早川 博(はやかわ ひろし)
@charlier_shoe
• 日本オラクルのプリセールス・エンジニア
- 製品選定のコンサルティング、アーキテクチャ設計など、販売活動の
技術的支援がミッション
- Java SE / Java EE / WebLogic / PaaS…
• (ErgoDoxユーザー)
自己紹介
シーマン(しーまん)
@SEAMANBOT
• 魚の胴体に、人の顔を持った姿(ギルマン形態時)の生物
• 古代エジプトの壁画ある「偉大なる神の使い」という説あり
• 著書:
• 「シーマン語録」/ダイヤモンド社 ・ 「シーマン語録〈2〉」/幻冬舎
• ラジオ出演:
• 「シーマンのラジカントロプスA.D.2000
〜禁断のペット・禁断の生放送〜
(アール・エフ・ラジオ日本)」
Hey Jim, can you add that
column to the database
before lunch?
あんた、あっちのチームの
人でしょ…。
“ ほどよい距離感を保つこと。
これって、サービス精神なんだよ。
職場の人間関係について悩んでいるユーザーに対する助言
― シーマン ―
あなた チームメンバー
• 目標 :共通の目標をもつ
• コミュニケーション :対面で、いつでも
• サービスのリリース時期 :同じ
いろいろな距離感
あなた
他サービス担当の
開発者
いろいろな距離感
• 目標 :上位の目標を共有。短期の利害は一致
しないことも
• コミュニケーション :テキストが多いが対面も可
• サービスのリリース時期 :合わせる場合は調整が必要
あなた
フロントエンドの
開発者
いろいろな距離感
• 目標 :上位の目標を共有。短期の利害は一致
しないことも
• コミュニケーション :テキストが多いが対面も可(組織による)
• サービスのリリース時期 :合わせる場合は調整が必要(組織による)
なぞのそしき
!
あなた
一般の開発者
別のグループ会社の人
いろいろな距離感
• 目標 :目標を共有しない
• コミュニケーション :ドキュメントを見て仕様を確認。問い合わ
せは然るべき窓口経由
• サービスのリリース時期 :違う。合わせたくても合わせられない
なぞのそしき
!
“ ほどよい距離感を保つこと。
これって、サービス精神なんだよ。
職場の人間関係について悩んでいるユーザーに対する助言
― シーマン ―
マイクロ
APIに求められること
どんな使い方をさ
れるかわからない
…
使いづらくて苦労
させるかも。使って
くれないかも
実装を変更できな
くなるかも
攻撃にあったらど
うしよう
大量に呼び出しさ
れたら落ちたりし
ないか?
APIに求められること
1. コンシューマーにとって扱いやすい
2. 疎結合
3. 利用量監視
4. 流量制御
5. セキュリティ
 よく定義されたAPI
• 正常系/異常系、パラメータによるバリエーション
• ライフサイクル(バージョンニング)ポリシー
• ドキュメンテーションのわかりやすさ
 シンプル
 オープンな仕様に基づく
 すぐに試せる
参考)
「コンシューマーにとって扱いやすい」
とはどういうこと?
マイクロサービスで作ってみよう
サービス
DB
DB
DB
サービス
サービス
{} REST
非同期メッセージング
pub sub
サービス
認証 監視流量
制御
認証 監視流量
制御
認証 監視流量
制御
認証 監視流量
制御
DB
{} REST
クライアント
{} REST
{} REST
{} REST
API
API
API
API
マイクロサービスで作ってみよう
サービス
DB
DB
DB
サービス
サービス
{} REST
非同期メッセージング
pub sub
サービス
DB
{} REST
クライアント
{} REST
{} REST
{} REST
API
API
API
API
API Gateway
流量制御、認証、監視
API
API
API
API
必要なデータだけ送るようにできない?
2つ呼ばないとデータが揃わないくせに、他
の余分なのがたくさんあるんだっつーの。
パフォーマンス出ねぇだろうが
無関係なデータまとめて送るなんて、美しくない…。
それに、そんなの他の人は使わないでしょ?
“ おまえの未来を最もせばめてい
る原因、それは「面倒くさい」と思
う自分だよ
中年のビジネスマンとの仕事の会話にて
― シーマン ―
クライアントのAPI呼び出しを仲介するレイヤー
クライアントに最適化した形式に変換
• データの最適化
• 複数API呼び出しの集約(API aggregation)
Backend for Frontend
マイクロサービスで作ってみよう
サービス
DB
DB
DB
サービス
サービス
{} REST
非同期メッセージング
pub sub
サービス
DB
{} REST
クライアント
{} REST
{} REST
{} REST
API
API
API
API
APIゲートウェイ
流量制御、認証、監視
API
API
API
API
BFF
API変換/集約
スマートフォン
タブレット
APIAPI
{} REST
ここからは宣伝です…。
API Gateway製品を近日リリース!
https://cloud.oracle.com/ja_JP/api-platform/
API Platform Cloud Service
設計
実装
デプロイ
管理
発見・利用
監視
API Platform Cloud Service の特徴
1. APIライフサイクルをサポートす
る機能群
2. 環境を選ばずに利用可能
(オンプレミス/クラウド)
3. Apiary機能統合
API ライフサイクル
設計
実装
デプロイ
管理
発見・利用
監視
デプロイ フェーズ
 デプロイ先の自由
 オンプレミス
 3rd Party Cloud
 Oracle Cloud
 設計したAPIを選択した実行環境に
配布
アーキテクチャ
Apiary.io
API設計者
Identity Cloud Service
API Platform
Cloud Service
Oracle Cloud
API管理者
API実装者
Gateway管理者
{request}
{response}
ゲートウェイFW/LB
サービス
サービス
サービス
Oracle Cloud
{APIs, Policies}
定期的に
アウトバウンド・リクエスト
{Analytics}
{request}
{response}
クライアント
3rd Party Cloud
On Premise
API利用者
開発者
ポータル
 APIドキュメントを
SwaggerやAPI Blueprintで記述
 作成したAPIドキュメントは、開発者
ポータルにワンクリックで公開
 APIのモックを自動生成
設計
実装
デプロイ
管理
発見・利用
監視
設計、発見・利用フェーズ
参考)
Documentation Driven Contracts
http://thoughtworks.github.io/pacto/patterns/documentation_driven/
In Documentation-Driven Contracts you
want to make your documentation the
source of truth for the contract.
・Create Contracts based on the documented structure
・Create sample requests for simulated consumers to test providers
・Create stubbed responses to test consumers
開発者向けイベント開催決定!
”Oracle Code”
Oracle Code
http://
東京開催は
5月予定!
https://developer.oracle.com/code

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Apiのことはすべてシーマンが教えてくれた

Editor's Notes

  1. アプリケーションに固有のAPIの仕様変更の話 RESTをDisったり。
  2. Swaggerの言い方 Open API Initiativeの一員