SlideShare a Scribd company logo
1 of 18
Download to read offline
SDK-first: the new
API-first?
Nordic APIs - 18/10/2023
Nolan Di Mare Sullivan
Head of developer relations at Speakeasy,
working to bring a first-class DevEx to every
company’s API.
Previously led product for LiveRamp’s API
Platform.
Here’s a pattern…
- Company launches an API initiative
as part of a platformization effort
- Makes important parts of their API
available publicly
Initiative starts with excitement
Then you run into problems
- Adoption has been slower than
hoped
- Integration takes a long time:
months, quarters.
What’s going on??
- Company launches an API initiative as part
of a platformization effort
- Makes important parts of their API available
publicly
- Adoption has been slower than hoped
- Integration takes a long time: months,
quarters.
Now Imagine…
A restaurant with fantastic food that doesn’t have
a front door.
Instead, potential customers climb through the
front window…
Today: API Integrations =
entering through the window
Read API
Docs
1
Identify the
relevant
endpoints
2
Curl API in
sequence to
check it
works
3
Write auth &
networking
boilerplate
4
Write
production
API calls
5
Expand API
usage for
new use
cases
10
Add retries,
pagination &
rate limiting
9
Write code
for error
handling.
8
Test &
debug
7
Parse & use
Response
data
6
The Solution: Become
SDK-first
API Integrations via SDK =
A beautiful front door
Install the
Package
1
Copy & paste
relevant code
snippets
2
Adjust
snippet for
your use
case
3
Test &
debug
4
Expand to
new use
cases
5
Some Social Proof
While everyone was busy becoming API-first,
Stripe became SDK-first…
How SDKs Help API Users
1. Reduce users time to ‘200’
2. Remove room for error
3. Supercharge your
documentation
Faster Time to 200? Provide the Boilerplate
- SDKs handle the tedious aspects of building API integrations for
your users:
- Authentication
- Networking Client Code
- They can also handle the features that support enterprise use
cases:
- Retries
- Pagination
- Rate Limiting
Eliminate Errors? Type Safety
- Type safety is the single best
tool you can give to your users
- In IDE hints make life 10x
better
- You’ll prevent runtime
errors
- SDKs make Co-Pilot even more
powerful
Unhelpful Docs? Add Usage Snippets
- If you build it, they will come doesn’t work for API Docs
- There’s nothing more tedious than having to meander through
technical references to find relevant API Details.
- Usage snippets are great, developers love to copy & paste, then
adjust as needed.
- Fetch commands are fine, but usage Snippets are even more
powerful when they’re linked with an official SDK.
How SDKs Help API Builders
For Internal Developers, SDKs are a great
communication interface.
- Share types natively between
teams.
- Package relevant APIs into custom
team-dependent generations.
- Track exact versions of an API for
client and server at time of
deployment.
How to Build an SDK
Strategy
Consistent
Idempotent
Backward Compatible
Documented
Versioned
Secure
Stable
Generalizable
S
i
m
p
l
e
Start with an API Strategy
Idiomatic
Layer 1 SDKs (HTTP Client)
- HTTP clients are a great first step in
your SDK strategy:
- They alleviate the pain of
writing boilerplate code.
- They dramatically reduce
errors
- They enhance usage with
enterprise features
- They enrich your docs
Layer 2 SDKs (API Client)
- Level 2 SDKs add in business logic that
lives outside the API itself.
- You chain together API primitives into
methods that are tailored to a specific
use case
They’re called layer 2 because they sit
on top of your HTTP client.
- Don’t build this until you’ve found PMF
with your API.
Generate your SDKs!
Thank You!
Email: nolan@speakeasyapi.dev
Linkedin: https://www.linkedin.com/in/nolan-dm-sullivan-010/
Phone: +44 7795-371694
Meet me outside!
Resources
Why SDKs ?
- Ebook: Supercharge your API
adoption
- Speakeasy feature week
Speakeasy v OpenAPI Generator:
- Typescript
- Go
- Python

More Related Content

Similar to From API-First to SDK-First

APIs +Micro services technology for Computing
APIs +Micro services technology for ComputingAPIs +Micro services technology for Computing
APIs +Micro services technology for Computing
wismoyo92
 

Similar to From API-First to SDK-First (20)

Why You Should Be Doing Contract-First API Development
Why You Should Be Doing Contract-First API DevelopmentWhy You Should Be Doing Contract-First API Development
Why You Should Be Doing Contract-First API Development
 
apidays LIVE Paris 2021 - Low-Code API DevOps approach to API Lifecycle Manag...
apidays LIVE Paris 2021 - Low-Code API DevOps approach to API Lifecycle Manag...apidays LIVE Paris 2021 - Low-Code API DevOps approach to API Lifecycle Manag...
apidays LIVE Paris 2021 - Low-Code API DevOps approach to API Lifecycle Manag...
 
Rebooting APIs at scale
Rebooting APIs at scaleRebooting APIs at scale
Rebooting APIs at scale
 
Spec-first API Design for Speed and Safety
Spec-first API Design for Speed and SafetySpec-first API Design for Speed and Safety
Spec-first API Design for Speed and Safety
 
Clickslide Datadipity Beta V1
Clickslide Datadipity Beta V1Clickslide Datadipity Beta V1
Clickslide Datadipity Beta V1
 
APIs as a Product Strategy
APIs as a Product StrategyAPIs as a Product Strategy
APIs as a Product Strategy
 
Building a REST API for Longevity
Building a REST API for LongevityBuilding a REST API for Longevity
Building a REST API for Longevity
 
6 Best OpenAPI Documentation Tools that You must Know
6 Best OpenAPI Documentation Tools that You must Know6 Best OpenAPI Documentation Tools that You must Know
6 Best OpenAPI Documentation Tools that You must Know
 
Creating Datadipity
Creating DatadipityCreating Datadipity
Creating Datadipity
 
Why big organizations like tesla, facebook, walmart, skype are using react na...
Why big organizations like tesla, facebook, walmart, skype are using react na...Why big organizations like tesla, facebook, walmart, skype are using react na...
Why big organizations like tesla, facebook, walmart, skype are using react na...
 
My presentation at Grace Hopper Conference 2014, about Rewrite/Refactor with ...
My presentation at Grace Hopper Conference 2014, about Rewrite/Refactor with ...My presentation at Grace Hopper Conference 2014, about Rewrite/Refactor with ...
My presentation at Grace Hopper Conference 2014, about Rewrite/Refactor with ...
 
Securely expose protected resources as ap is with app42 api gateway
Securely expose protected resources as ap is with app42 api gatewaySecurely expose protected resources as ap is with app42 api gateway
Securely expose protected resources as ap is with app42 api gateway
 
INF104 - HCL Domino AppDev Pack – The Future of Domino App Dev Nobody Knows A...
INF104 - HCL Domino AppDev Pack – The Future of Domino App Dev Nobody Knows A...INF104 - HCL Domino AppDev Pack – The Future of Domino App Dev Nobody Knows A...
INF104 - HCL Domino AppDev Pack – The Future of Domino App Dev Nobody Knows A...
 
How AWS Mobile Services Providers Will Benefit From Amplify Studio_.pdf
How AWS Mobile Services Providers Will Benefit From Amplify Studio_.pdfHow AWS Mobile Services Providers Will Benefit From Amplify Studio_.pdf
How AWS Mobile Services Providers Will Benefit From Amplify Studio_.pdf
 
To SDK or not to SDK?
To SDK or not to SDK?To SDK or not to SDK?
To SDK or not to SDK?
 
Dev Learn Handout - Session 604
Dev Learn Handout - Session 604Dev Learn Handout - Session 604
Dev Learn Handout - Session 604
 
Meetup 2022 - API Gateway landscape.pdf
Meetup 2022 - API Gateway landscape.pdfMeetup 2022 - API Gateway landscape.pdf
Meetup 2022 - API Gateway landscape.pdf
 
Mobile apps for web developers
Mobile apps for web developersMobile apps for web developers
Mobile apps for web developers
 
APIs +Micro services technology for Computing
APIs +Micro services technology for ComputingAPIs +Micro services technology for Computing
APIs +Micro services technology for Computing
 
Pain Points In API Development? They’re Everywhere
Pain Points In API Development? They’re EverywherePain Points In API Development? They’re Everywhere
Pain Points In API Development? They’re Everywhere
 

More from Nordic APIs

The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...
The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...
The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...
Nordic APIs
 
Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...
Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...
Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...
Nordic APIs
 

More from Nordic APIs (20)

How I Built Bill, the AI-Powered Chatbot That Reads Our Docs for Fun , by Tod...
How I Built Bill, the AI-Powered Chatbot That Reads Our Docs for Fun , by Tod...How I Built Bill, the AI-Powered Chatbot That Reads Our Docs for Fun , by Tod...
How I Built Bill, the AI-Powered Chatbot That Reads Our Docs for Fun , by Tod...
 
The Art of API Design, by David Biesack at Apiture
The Art of API Design, by David Biesack at ApitureThe Art of API Design, by David Biesack at Apiture
The Art of API Design, by David Biesack at Apiture
 
ABAC, ReBAC, Zanzibar, ALFA… How Should I Implement AuthZ in My APIs? by Dav...
ABAC, ReBAC, Zanzibar, ALFA…  How Should I Implement AuthZ in My APIs? by Dav...ABAC, ReBAC, Zanzibar, ALFA…  How Should I Implement AuthZ in My APIs? by Dav...
ABAC, ReBAC, Zanzibar, ALFA… How Should I Implement AuthZ in My APIs? by Dav...
 
Crafting a Cloud Native API Platform to Accelerate Your Platform Maturity - B...
Crafting a Cloud Native API Platform to Accelerate Your Platform Maturity - B...Crafting a Cloud Native API Platform to Accelerate Your Platform Maturity - B...
Crafting a Cloud Native API Platform to Accelerate Your Platform Maturity - B...
 
The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...
The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...
The Federated Future: Pioneering Next-Gen Solutions in API Management - Marku...
 
API Authorization Using an Identity Server and Gateway - Aldo Pietropaolo, SGNL
API Authorization Using an Identity Server and Gateway - Aldo Pietropaolo, SGNLAPI Authorization Using an Identity Server and Gateway - Aldo Pietropaolo, SGNL
API Authorization Using an Identity Server and Gateway - Aldo Pietropaolo, SGNL
 
API Discovery from Crawl to Run - Rob Dickinson, Graylog
API Discovery from Crawl to Run - Rob Dickinson, GraylogAPI Discovery from Crawl to Run - Rob Dickinson, Graylog
API Discovery from Crawl to Run - Rob Dickinson, Graylog
 
Productizing and Monetizing APIs - Derric Gilling, Moseif
Productizing and Monetizing APIs - Derric Gilling, MoseifProductizing and Monetizing APIs - Derric Gilling, Moseif
Productizing and Monetizing APIs - Derric Gilling, Moseif
 
Securely Boosting Any Product with Generative AI APIs - Ruben Sitbon, Sipios
Securely Boosting Any Product with Generative AI APIs - Ruben Sitbon, SipiosSecurely Boosting Any Product with Generative AI APIs - Ruben Sitbon, Sipios
Securely Boosting Any Product with Generative AI APIs - Ruben Sitbon, Sipios
 
Security of LLM APIs by Ankita Gupta, Akto.io
Security of LLM APIs by Ankita Gupta, Akto.ioSecurity of LLM APIs by Ankita Gupta, Akto.io
Security of LLM APIs by Ankita Gupta, Akto.io
 
I'm an API Hacker, Here's How to Go from Making APIs to Breaking Them - Katie...
I'm an API Hacker, Here's How to Go from Making APIs to Breaking Them - Katie...I'm an API Hacker, Here's How to Go from Making APIs to Breaking Them - Katie...
I'm an API Hacker, Here's How to Go from Making APIs to Breaking Them - Katie...
 
Unleashing the Potential of GraphQL with Streaming Data - Kishore Banala, Net...
Unleashing the Potential of GraphQL with Streaming Data - Kishore Banala, Net...Unleashing the Potential of GraphQL with Streaming Data - Kishore Banala, Net...
Unleashing the Potential of GraphQL with Streaming Data - Kishore Banala, Net...
 
Reigniting the API Description Wars with TypeSpec and the Next Generation of ...
Reigniting the API Description Wars with TypeSpec and the Next Generation of...Reigniting the API Description Wars with TypeSpec and the Next Generation of...
Reigniting the API Description Wars with TypeSpec and the Next Generation of ...
 
Establish, Grow, and Mature Your API Platform - James Higginbotham, LaunchAny
Establish, Grow, and Mature Your API Platform - James Higginbotham, LaunchAnyEstablish, Grow, and Mature Your API Platform - James Higginbotham, LaunchAny
Establish, Grow, and Mature Your API Platform - James Higginbotham, LaunchAny
 
Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...
Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...
Inclusive, Accessible Tech: Bias-Free Language in Code and Configurations - A...
 
Going Platinum: How to Make a Hit API by Bill Doerrfeld, Nordic APIs
Going Platinum: How to Make a Hit API by Bill Doerrfeld, Nordic APIsGoing Platinum: How to Make a Hit API by Bill Doerrfeld, Nordic APIs
Going Platinum: How to Make a Hit API by Bill Doerrfeld, Nordic APIs
 
Getting Better at Risk Management Using Event Driven Mesh Architecture - Ragh...
Getting Better at Risk Management Using Event Driven Mesh Architecture - Ragh...Getting Better at Risk Management Using Event Driven Mesh Architecture - Ragh...
Getting Better at Risk Management Using Event Driven Mesh Architecture - Ragh...
 
GenAI: Producing and Consuming APIs by Paul Dumas, Gartner
GenAI: Producing and Consuming APIs by Paul Dumas, GartnerGenAI: Producing and Consuming APIs by Paul Dumas, Gartner
GenAI: Producing and Consuming APIs by Paul Dumas, Gartner
 
The SAS developer portal – developer.sas.com 2.0: How we built it by Joe Furb...
The SAS developer portal –developer.sas.com 2.0: How we built it by Joe Furb...The SAS developer portal –developer.sas.com 2.0: How we built it by Joe Furb...
The SAS developer portal – developer.sas.com 2.0: How we built it by Joe Furb...
 
How Netflix Uses Data Abstraction to Operate Services at Scale - Vidhya Arvin...
How Netflix Uses Data Abstraction to Operate Services at Scale - Vidhya Arvin...How Netflix Uses Data Abstraction to Operate Services at Scale - Vidhya Arvin...
How Netflix Uses Data Abstraction to Operate Services at Scale - Vidhya Arvin...
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 

From API-First to SDK-First

  • 2. Nolan Di Mare Sullivan Head of developer relations at Speakeasy, working to bring a first-class DevEx to every company’s API. Previously led product for LiveRamp’s API Platform.
  • 3. Here’s a pattern… - Company launches an API initiative as part of a platformization effort - Makes important parts of their API available publicly Initiative starts with excitement Then you run into problems - Adoption has been slower than hoped - Integration takes a long time: months, quarters. What’s going on?? - Company launches an API initiative as part of a platformization effort - Makes important parts of their API available publicly - Adoption has been slower than hoped - Integration takes a long time: months, quarters.
  • 4. Now Imagine… A restaurant with fantastic food that doesn’t have a front door. Instead, potential customers climb through the front window…
  • 5. Today: API Integrations = entering through the window Read API Docs 1 Identify the relevant endpoints 2 Curl API in sequence to check it works 3 Write auth & networking boilerplate 4 Write production API calls 5 Expand API usage for new use cases 10 Add retries, pagination & rate limiting 9 Write code for error handling. 8 Test & debug 7 Parse & use Response data 6
  • 7. API Integrations via SDK = A beautiful front door Install the Package 1 Copy & paste relevant code snippets 2 Adjust snippet for your use case 3 Test & debug 4 Expand to new use cases 5
  • 8. Some Social Proof While everyone was busy becoming API-first, Stripe became SDK-first…
  • 9. How SDKs Help API Users 1. Reduce users time to ‘200’ 2. Remove room for error 3. Supercharge your documentation
  • 10. Faster Time to 200? Provide the Boilerplate - SDKs handle the tedious aspects of building API integrations for your users: - Authentication - Networking Client Code - They can also handle the features that support enterprise use cases: - Retries - Pagination - Rate Limiting
  • 11. Eliminate Errors? Type Safety - Type safety is the single best tool you can give to your users - In IDE hints make life 10x better - You’ll prevent runtime errors - SDKs make Co-Pilot even more powerful
  • 12. Unhelpful Docs? Add Usage Snippets - If you build it, they will come doesn’t work for API Docs - There’s nothing more tedious than having to meander through technical references to find relevant API Details. - Usage snippets are great, developers love to copy & paste, then adjust as needed. - Fetch commands are fine, but usage Snippets are even more powerful when they’re linked with an official SDK.
  • 13. How SDKs Help API Builders For Internal Developers, SDKs are a great communication interface. - Share types natively between teams. - Package relevant APIs into custom team-dependent generations. - Track exact versions of an API for client and server at time of deployment.
  • 14. How to Build an SDK Strategy
  • 16. Layer 1 SDKs (HTTP Client) - HTTP clients are a great first step in your SDK strategy: - They alleviate the pain of writing boilerplate code. - They dramatically reduce errors - They enhance usage with enterprise features - They enrich your docs Layer 2 SDKs (API Client) - Level 2 SDKs add in business logic that lives outside the API itself. - You chain together API primitives into methods that are tailored to a specific use case They’re called layer 2 because they sit on top of your HTTP client. - Don’t build this until you’ve found PMF with your API. Generate your SDKs!
  • 17. Thank You! Email: nolan@speakeasyapi.dev Linkedin: https://www.linkedin.com/in/nolan-dm-sullivan-010/ Phone: +44 7795-371694 Meet me outside!
  • 18. Resources Why SDKs ? - Ebook: Supercharge your API adoption - Speakeasy feature week Speakeasy v OpenAPI Generator: - Typescript - Go - Python