SlideShare una empresa de Scribd logo
1 de 46
What’s Your Type?
Understanding API Types and Choosing
the Right One
Iddo Gino, Founder & CEO, RapidAPI
About RapidAPI
● World’s Largest API Marketplace
○ 1 Million Developers
○ >10,000 APIs
○ Billions of API Calls
● Founded in 2015
● Based in San Francisco & Tel Aviv
● Backed by:
Agenda
Proliferation of APIs1
2 APIs in the Enterprise
5 Questions (and Answers)
4 Next-generation Platform for All APIs
3 API Types – From REST to Kafka
Proliferation of APIs
● Developers are increasingly utilizing APIs to develop new applications and software
● API Economy is predicted to grow to $2.2 Trillion dollars
● Already yielded multiple unicorns:
Ovum, “Realizing the Business Value of APIs,” October 2014
Google Searches for “Rest API”, 2004-2019
Acquired - $3B Public - $15B Private - $35B
Acquired - $800M Public - $18B Private - $1.1B
Proliferation of APIs – Grows as Company Scales
16
29
52
82
92
160
307
Less than 10 10-50 51-100 101-500 501-1,000 1,001-5,000 5,001-10,000
Organization Size
How many APIs in your organization?
RapidAPI API Survey, 2019
3.2%
5.6%
8.8% 8.8%
10.4%
8.0%
10.8%
12.4%
8.0% 8.0%
7.2%
8.8%
How many APIs in your organization?
Imperva API Survey, 2018
APIs in the Enterprise
● Developers are increasingly utilizing APIs to
develop new applications and software
● 50% of organizations have more than 300
APIs
● Many have thousands of APIs
● Many organizations are enabling customers
and partners to leverage their APIs
APIs used in the Enterprise
Continuous Process
• Powering integrations with
select partners & customers
• Exposed on a per-need basis
• Requires direct business
agreement / relationship
Partner APIs
• Internal services created
by development team
• Used to build applications
and services
• Not exposed externally
Internal APIs
• Used by developers to speed
up development
• May be integrated on an ad-
hoc basis by developers
• Used for basic infrastructure
and functionality
Public APIs
API Types Explained
APIs - Many Shapes and Forms
● Technology and standards landscape in
APIs is shifting
● API standards are diverging – more
specialized standards are introduced
● Starting to adopt event driven
architecture
● Makes API discovery & integration
more difficult
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
REST SOAP Webhooks Severless & FaaS GraphQL gRPC
API Technology Adoption
Using in Production In POC Investigating Aware But Not Using Unfamiliar
RapidAPI API Survey, 2019
Older Mature Cutting Edge
RPC
SOAP
Webhooks
REST
Pub/Sub
GraphQL
Protobuffs
gRPC
Kafka
API Types Maturity Scale
1960s
1990s
2000s 2010s
API Diversity
APIs / microservices play varied roles in applications
● Data retrieval
● CRUD
● Job executions (encoding, sending, etc)
● Conversion
Thus the technical requirements vary
● Data exploration
● Low latency / low overhead
● Load management / async behavior
There isn’t a one size fit all…
● REST APIs are used to call resources and
allow software to communicate based on
standardized principles, properties, and
constraints
● Uses HTTP requests to GET, PUT, POST and
DELETE data
Who uses it
REST (Representative State Transfer)
GraphQL
Kafka Webhooks PUB/SUB
RPC gRPC Protobufs
SOAPSOAPREST
● REST operates on a simple
request/response system
● Response returns relevant data, which
can be formatted as JSON, XML, plain
text, images etc.
● RESTful APIs can be designed with
different endpoints that return
different data
● Accessing multiple endpoints requires
multiple calls
How REST Works
REST
REST
RESTClient Database
● Relies on XML to make requests and
receive responses
● Ideal for transactions that involve multiple
calls or applications where security is the
main consideration
● Less complex – requires less coding in the
app layer for transactions, security and
other functions
Who uses it
SOAP (Simple Object Protocol)
REST
GraphQL
Kafka Webhooks PUB/SUB
RPC gRPC Protobufs
REST SOAP
When to use REST vs. SOAP
Familiarity – Dev team has used, short learning curve
Interoperability – Most platforms/frameworks interface
with REST
Flexibility – REST APIs can handle multiple types of calls
and return different data formats.
Performance – Recommend for higher loads and
processes.
Development efficiencies – Rest APIs are reusable; can
build independent microservices that work
independently of one another
REST
Legacy – many older platforms will come with SOAP based
APIs
Extensibility – Allows for extensions that introduce powerful
features (Windows Server)
Neutrality – Operates over a wide range of protocols
Transactional reliability – Reliable for financial transactions
Independence – Compatible with nearly any programming
language
Standardization – Designed rules and specs
SOAP
● Query language developed by Facebook
that lets the client define the structure of
the data required
○ Request data from multiple sources in a
single request
○ Control exactly what information your
application receives in the response
Who uses it
GraphQL
REST
Kafka Webhooks PUB/SUB
RPC gRPC Protobufs
SOAPSOAP GraphQL
● Pre-defined schema is what allows the
client to specify the exact shape of
data returned
● Ability to define exact request and
response structure cuts down on the
resources and bandwidth required
● Returns only the desired data in the
response
How GraphQL Works
REST
Easy of Use – Aggregates data from multiple
sources into one convenient API
When to Use GraphQL
REST
Kafka Webhooks PUB/SUB
RPC gRPC Protobufs
SOAPSOAP GraphQL
Performance – combine queries & omit
unnecessary data
Development efficiencies – decouples front end
and backend development
Ease of onboarding – self documenting APIs
● Stream-processing software platform
developed by LinkedIn
● Popular with large enterprise due to the
unique ability to handle and process data
streams and ingest/move large amounts of
data quickly
● 5 core Kafka-based APIs: Producer,
Consumer, Streams, Connector, Admin
Who uses it
Kafka (async / queue based APIs)
GraphQL
Webhooks PUB/SUB
RPC gRPC Protobufs
SOAPSOAPREST
Kafka
How Queue Based APIs Work
Queue
Web Client
Encoding
Service
Encode
Request
Encode
Request
Confirmation
Encode
Request
Async Processing– Processes / flows don’t
happen in real-time
High Performance – Due to low latency, Kafka
can handle more messages of high
volume/velocity
Scalable – Distributed system that can be
scaled independently
Reliable – Record processes and handle failures
gracefully
When to Use Kafka
REST
Webhooks PUB/SUB
RPC gRPC Protobufs
SOAPSOAP GraphQL
Kafka
● Webhook – Method for server-side app to notify
client-side app that an event has occurred
Other API Types – Webhooks and Pub/Sub
Webhooks
Pub/Sub
● Pub/Sub – Asynchronous communication method
where messages are exchanged between
applications without knowing the sender or
recipient
When to Use: Real-time events that require you
to send data from one application to another
When to use: For event-driven architectures,
balancing workloads or data streaming
Other API Types – RPC, gRPC, and Protobufs
Open sourced version of RPC
introduced by Google (uses
HTTP/2)
Use case: Used for low
latency, scalable, distributed
systems (i.e. mobile
application development)
Uses a client-server model to
enable one program to request
a service from another program
over a network
Use case: RPC is used to call
other processes on a remote
system with the same
Google’s language-neutral,
platform-neutral, extensible
mechanism for serializing
structured data
Use case: Smaller and faster than
XML, used for RPC systems and
storage of data.
RPC gRPC Protobufs
A Heterogeneous Environment
Transactions
Service
RPC
Account
Balances
SOAP
User IDs
REST
International
Wires
Kafka
Product
Information
GraphQL
Loan
Approvals
REST
Credit Score
Checks
REST
Facebook
Login
GraphQL
Credit Card
Network
REST
OCR Service
REST
On-premise Private Cloud 3rd Party
A Homogenous Environment
Transactions
Service
RPC
Account
Balances
SOAP
User IDs
REST
International
Wires
Kafka
Product
Information
GraphQL
Loan
Approvals
REST
Credit Score
Checks
REST
Facebook
Login
GraphQL
Credit Card
Network
RE
OCR Service
REST
API Hub
Next-generation API Platform
Microservices: 68% are Using or Investigating
● Internal APIs = microservices & internal systems
● Hundreds of internal APIs VS tens of external
APIs
● Most APIs start as internal and graduate to be
public facing
29%
15%
24%
30%
Using microservices in
production
Using microservices in
development
Investigating
microservices
Other (2%)
Not using
microservices
Ngnix Survey, 2015
APIs – Start Inside Out
Internal APIs.
Used by: internal developers.
Used for: creating new products and integrations.
Partner APIs.
Used by: existing customers & partners.
Used for: deep integrations, dashboarding, reports.
Public APIs.
Used by: any 3rd party developer (self-service).
Used for: new applications & services.
Internal APIs – Unlocking Innovation
● To innovate, developers need access to data and
functionality
● That data and functionality is siloed behind APIs
● Organizing internal APIs
○ Makes data and functionality more accessible
○ Enables developers to innovate
○ Speeds up time to market
New Digital Experience
API API API API
Enterprise API Hub
Enterprise
API Hub
API Creators
Publish APIs
Internal Developers
Discover & Connect
to APIs
External Developers
Governance Team
Manage APIs
API Platform
Publish API Documentation
CI/CD & Gateway Integration
Access & Visibility Control
Support for All API Types
Monetization
API Platform
API Search
Tagging and Filtering
Interactive API Testing
Code Snippets for Integration
Monitoring & Analytics
API Platform Control API Visibility
Define API Readiness Requirements
Ensure Compliance
Track API Usage
RapidAPI
RapidAPI – Powering the API Economy
Discover APIs
Developers use RapidAPI to search for APIs, test APIs and compare them based on latency,
uptime and popularity.
Connect to APIs
RapidAPI gives developers a single SDK and access point to connect to any API. Developers
pay for APIs via RapidAPI.
Monitor & Analyze APIs
Developers use RapidAPI dashboard to monitor API performance and switch APIs seamlessly.
RapidAPI – API Discovery
● Search through a catalog of over
10,000 APIs.
● Instantly see API metrics, including
uptime, latency and popularity.
● Powerful API search including API
tags and metadata.
RapidAPI – API Connection
● See all API endpoints &
their parameters.
● Test any API directly from
the website.
● Copy code snippets to
embed API connection
into your application.
RapidAPI – API Consumption Analytics
● View analytics on API
call volume, latency and
error rate.
● Identify issues by digging
into log level
information on API calls.
RapidAPI – API Monetization
● Create billing plans
● Automatically invoice users
● Bill per object
● Rate limiting by plan
● Limit endpoint by plan
● Require DocuSign Signature
● Built-in credit card, ACH support
Built for Every API
REST / SOAP
GraphQL
Kafka
Conclusion
● Determine how the API works, when to use it, and if it is at a
point in maturity that makes sense for your application
● Try out new API Types and narrow down the right one that works
for your project.
● With the proliferation of APIs, companies needs a centralized API
Platform that is runtime agnostic, supports internal and external
APIs, and accommodates multiple API types
● The ”right” API type depends on your project goals

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

5 Pillars of Building Enterprise0grade APIs
5 Pillars of Building Enterprise0grade APIs5 Pillars of Building Enterprise0grade APIs
5 Pillars of Building Enterprise0grade APIs
 
GlueCon 2019: Beyond REST - Moving to Event-Based APIs and Streaming
GlueCon 2019: Beyond REST - Moving to Event-Based APIs and StreamingGlueCon 2019: Beyond REST - Moving to Event-Based APIs and Streaming
GlueCon 2019: Beyond REST - Moving to Event-Based APIs and Streaming
 
Tools and techniques for APIs
Tools and techniques for APIsTools and techniques for APIs
Tools and techniques for APIs
 
Building a REST API for Longevity
Building a REST API for LongevityBuilding a REST API for Longevity
Building a REST API for Longevity
 
apidays LIVE Australia 2020 - Have your cake and eat it too: GraphQL? REST? W...
apidays LIVE Australia 2020 - Have your cake and eat it too: GraphQL? REST? W...apidays LIVE Australia 2020 - Have your cake and eat it too: GraphQL? REST? W...
apidays LIVE Australia 2020 - Have your cake and eat it too: GraphQL? REST? W...
 
Api Gateway
Api GatewayApi Gateway
Api Gateway
 
Designing API Platforms that Developers Love - New York Life Build Blue May 2017
Designing API Platforms that Developers Love - New York Life Build Blue May 2017Designing API Platforms that Developers Love - New York Life Build Blue May 2017
Designing API Platforms that Developers Love - New York Life Build Blue May 2017
 
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
apidays LIVE Helsinki - Implementing OpenAPI and GraphQL Services with gRPC b...
 
Architecting an Enterprise API Management Strategy
Architecting an Enterprise API Management StrategyArchitecting an Enterprise API Management Strategy
Architecting an Enterprise API Management Strategy
 
What is an API Gateway?
What is an API Gateway?What is an API Gateway?
What is an API Gateway?
 
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
Oracle API Platform Cloud Service Best Practices & Lessons LearntOracle API Platform Cloud Service Best Practices & Lessons Learnt
Oracle API Platform Cloud Service Best Practices & Lessons Learnt
 
WSO2 API Platform: Vision and Roadmap
WSO2 API Platform: Vision and RoadmapWSO2 API Platform: Vision and Roadmap
WSO2 API Platform: Vision and Roadmap
 
Lessons in Transforming the Enterprise to an API Platform
Lessons in Transforming the Enterprise to an API PlatformLessons in Transforming the Enterprise to an API Platform
Lessons in Transforming the Enterprise to an API Platform
 
Ultimate Guide to 30+ API Documentation Solutions
Ultimate Guide to 30+ API Documentation SolutionsUltimate Guide to 30+ API Documentation Solutions
Ultimate Guide to 30+ API Documentation Solutions
 
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?
 
Api design part 1
Api design part 1Api design part 1
Api design part 1
 
REST API Doc Best Practices
REST API Doc Best PracticesREST API Doc Best Practices
REST API Doc Best Practices
 
REST vs. GraphQL: Critical Look
REST vs. GraphQL: Critical LookREST vs. GraphQL: Critical Look
REST vs. GraphQL: Critical Look
 
Another API-Blueprint, RAML and Swagger Comparison
Another API-Blueprint, RAML and Swagger ComparisonAnother API-Blueprint, RAML and Swagger Comparison
Another API-Blueprint, RAML and Swagger Comparison
 
MuleSoft Madrid Meetup #5 slides 21st January 2021
MuleSoft Madrid Meetup #5 slides 21st January 2021MuleSoft Madrid Meetup #5 slides 21st January 2021
MuleSoft Madrid Meetup #5 slides 21st January 2021
 

Similar a INTERFACE by apidays_What's your Type? Understanding API Types and Choosing the Right One by Iddo Gino

Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
HostedbyConfluent
 

Similar a INTERFACE by apidays_What's your Type? Understanding API Types and Choosing the Right One by Iddo Gino (20)

apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...
apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...
apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...
 
Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?
 
RefCard API Architecture Strategy
RefCard API Architecture StrategyRefCard API Architecture Strategy
RefCard API Architecture Strategy
 
A Snapshot of API Design Trends In 2019
A Snapshot of API Design Trends In 2019A Snapshot of API Design Trends In 2019
A Snapshot of API Design Trends In 2019
 
[Workshop] Managing the API lifecycle with Open Source Technologies
[Workshop] Managing the API lifecycle with Open Source Technologies[Workshop] Managing the API lifecycle with Open Source Technologies
[Workshop] Managing the API lifecycle with Open Source Technologies
 
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
 
Kochi Mulesoft Meetup #6
Kochi Mulesoft Meetup #6Kochi Mulesoft Meetup #6
Kochi Mulesoft Meetup #6
 
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
 
Extend soa with api management spoug- Madrid
Extend soa with api management   spoug- MadridExtend soa with api management   spoug- Madrid
Extend soa with api management spoug- Madrid
 
API Management within a Microservice Architecture
API Management within a Microservice ArchitectureAPI Management within a Microservice Architecture
API Management within a Microservice Architecture
 
API Management Within a Microservices Architecture
API Management Within a Microservices Architecture API Management Within a Microservices Architecture
API Management Within a Microservices Architecture
 
MuleSoft_Meetup_Datagraph and Async APIs.pptx.pdf
MuleSoft_Meetup_Datagraph and Async APIs.pptx.pdfMuleSoft_Meetup_Datagraph and Async APIs.pptx.pdf
MuleSoft_Meetup_Datagraph and Async APIs.pptx.pdf
 
João Emilio Santos Bento da Silva - Estratégia de APIs
João Emilio Santos Bento da Silva - Estratégia de APIsJoão Emilio Santos Bento da Silva - Estratégia de APIs
João Emilio Santos Bento da Silva - Estratégia de APIs
 
INTERFACE, by apidays - The 8 Key Components of a Modern API Stack by Iddo G...
INTERFACE, by apidays  - The 8 Key Components of a Modern API Stack by Iddo G...INTERFACE, by apidays  - The 8 Key Components of a Modern API Stack by Iddo G...
INTERFACE, by apidays - The 8 Key Components of a Modern API Stack by Iddo G...
 
Extend soa with api management Sangam18
Extend soa with api management Sangam18Extend soa with api management Sangam18
Extend soa with api management Sangam18
 
[WSO2 Integration Summit Bern 2019] Transforming Your Business through APIs
[WSO2 Integration Summit Bern 2019] Transforming Your Business through APIs[WSO2 Integration Summit Bern 2019] Transforming Your Business through APIs
[WSO2 Integration Summit Bern 2019] Transforming Your Business through APIs
 
Building an API Factory: Turn your APIs into Products
Building an API Factory: Turn your APIs into ProductsBuilding an API Factory: Turn your APIs into Products
Building an API Factory: Turn your APIs into Products
 
The Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdfThe Complete Guide to API Development in 2022.pdf
The Complete Guide to API Development in 2022.pdf
 
A_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdfA_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdf
 
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
Apicurio Registry: Event-driven APIs & Schema governance for Apache Kafka | F...
 

Más de apidays

Más de apidays (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
 
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
 
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
 
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
 
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
 
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
 
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
 
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
 
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
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
 
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
 

Último (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
"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 ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

INTERFACE by apidays_What's your Type? Understanding API Types and Choosing the Right One by Iddo Gino

  • 1. What’s Your Type? Understanding API Types and Choosing the Right One Iddo Gino, Founder & CEO, RapidAPI
  • 2. About RapidAPI ● World’s Largest API Marketplace ○ 1 Million Developers ○ >10,000 APIs ○ Billions of API Calls ● Founded in 2015 ● Based in San Francisco & Tel Aviv ● Backed by:
  • 3. Agenda Proliferation of APIs1 2 APIs in the Enterprise 5 Questions (and Answers) 4 Next-generation Platform for All APIs 3 API Types – From REST to Kafka
  • 4. Proliferation of APIs ● Developers are increasingly utilizing APIs to develop new applications and software ● API Economy is predicted to grow to $2.2 Trillion dollars ● Already yielded multiple unicorns: Ovum, “Realizing the Business Value of APIs,” October 2014 Google Searches for “Rest API”, 2004-2019 Acquired - $3B Public - $15B Private - $35B Acquired - $800M Public - $18B Private - $1.1B
  • 5. Proliferation of APIs – Grows as Company Scales 16 29 52 82 92 160 307 Less than 10 10-50 51-100 101-500 501-1,000 1,001-5,000 5,001-10,000 Organization Size How many APIs in your organization? RapidAPI API Survey, 2019
  • 6. 3.2% 5.6% 8.8% 8.8% 10.4% 8.0% 10.8% 12.4% 8.0% 8.0% 7.2% 8.8% How many APIs in your organization? Imperva API Survey, 2018 APIs in the Enterprise ● Developers are increasingly utilizing APIs to develop new applications and software ● 50% of organizations have more than 300 APIs ● Many have thousands of APIs ● Many organizations are enabling customers and partners to leverage their APIs
  • 7. APIs used in the Enterprise Continuous Process • Powering integrations with select partners & customers • Exposed on a per-need basis • Requires direct business agreement / relationship Partner APIs • Internal services created by development team • Used to build applications and services • Not exposed externally Internal APIs • Used by developers to speed up development • May be integrated on an ad- hoc basis by developers • Used for basic infrastructure and functionality Public APIs
  • 9. APIs - Many Shapes and Forms ● Technology and standards landscape in APIs is shifting ● API standards are diverging – more specialized standards are introduced ● Starting to adopt event driven architecture ● Makes API discovery & integration more difficult 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% REST SOAP Webhooks Severless & FaaS GraphQL gRPC API Technology Adoption Using in Production In POC Investigating Aware But Not Using Unfamiliar RapidAPI API Survey, 2019
  • 10. Older Mature Cutting Edge RPC SOAP Webhooks REST Pub/Sub GraphQL Protobuffs gRPC Kafka API Types Maturity Scale 1960s 1990s 2000s 2010s
  • 11. API Diversity APIs / microservices play varied roles in applications ● Data retrieval ● CRUD ● Job executions (encoding, sending, etc) ● Conversion Thus the technical requirements vary ● Data exploration ● Low latency / low overhead ● Load management / async behavior There isn’t a one size fit all…
  • 12. ● REST APIs are used to call resources and allow software to communicate based on standardized principles, properties, and constraints ● Uses HTTP requests to GET, PUT, POST and DELETE data Who uses it REST (Representative State Transfer) GraphQL Kafka Webhooks PUB/SUB RPC gRPC Protobufs SOAPSOAPREST
  • 13. ● REST operates on a simple request/response system ● Response returns relevant data, which can be formatted as JSON, XML, plain text, images etc. ● RESTful APIs can be designed with different endpoints that return different data ● Accessing multiple endpoints requires multiple calls How REST Works REST REST RESTClient Database
  • 14. ● Relies on XML to make requests and receive responses ● Ideal for transactions that involve multiple calls or applications where security is the main consideration ● Less complex – requires less coding in the app layer for transactions, security and other functions Who uses it SOAP (Simple Object Protocol) REST GraphQL Kafka Webhooks PUB/SUB RPC gRPC Protobufs REST SOAP
  • 15. When to use REST vs. SOAP Familiarity – Dev team has used, short learning curve Interoperability – Most platforms/frameworks interface with REST Flexibility – REST APIs can handle multiple types of calls and return different data formats. Performance – Recommend for higher loads and processes. Development efficiencies – Rest APIs are reusable; can build independent microservices that work independently of one another REST Legacy – many older platforms will come with SOAP based APIs Extensibility – Allows for extensions that introduce powerful features (Windows Server) Neutrality – Operates over a wide range of protocols Transactional reliability – Reliable for financial transactions Independence – Compatible with nearly any programming language Standardization – Designed rules and specs SOAP
  • 16. ● Query language developed by Facebook that lets the client define the structure of the data required ○ Request data from multiple sources in a single request ○ Control exactly what information your application receives in the response Who uses it GraphQL REST Kafka Webhooks PUB/SUB RPC gRPC Protobufs SOAPSOAP GraphQL
  • 17. ● Pre-defined schema is what allows the client to specify the exact shape of data returned ● Ability to define exact request and response structure cuts down on the resources and bandwidth required ● Returns only the desired data in the response How GraphQL Works REST
  • 18. Easy of Use – Aggregates data from multiple sources into one convenient API When to Use GraphQL REST Kafka Webhooks PUB/SUB RPC gRPC Protobufs SOAPSOAP GraphQL Performance – combine queries & omit unnecessary data Development efficiencies – decouples front end and backend development Ease of onboarding – self documenting APIs
  • 19. ● Stream-processing software platform developed by LinkedIn ● Popular with large enterprise due to the unique ability to handle and process data streams and ingest/move large amounts of data quickly ● 5 core Kafka-based APIs: Producer, Consumer, Streams, Connector, Admin Who uses it Kafka (async / queue based APIs) GraphQL Webhooks PUB/SUB RPC gRPC Protobufs SOAPSOAPREST Kafka
  • 20. How Queue Based APIs Work Queue Web Client Encoding Service Encode Request Encode Request Confirmation Encode Request
  • 21. Async Processing– Processes / flows don’t happen in real-time High Performance – Due to low latency, Kafka can handle more messages of high volume/velocity Scalable – Distributed system that can be scaled independently Reliable – Record processes and handle failures gracefully When to Use Kafka REST Webhooks PUB/SUB RPC gRPC Protobufs SOAPSOAP GraphQL Kafka
  • 22. ● Webhook – Method for server-side app to notify client-side app that an event has occurred Other API Types – Webhooks and Pub/Sub Webhooks Pub/Sub ● Pub/Sub – Asynchronous communication method where messages are exchanged between applications without knowing the sender or recipient When to Use: Real-time events that require you to send data from one application to another When to use: For event-driven architectures, balancing workloads or data streaming
  • 23. Other API Types – RPC, gRPC, and Protobufs Open sourced version of RPC introduced by Google (uses HTTP/2) Use case: Used for low latency, scalable, distributed systems (i.e. mobile application development) Uses a client-server model to enable one program to request a service from another program over a network Use case: RPC is used to call other processes on a remote system with the same Google’s language-neutral, platform-neutral, extensible mechanism for serializing structured data Use case: Smaller and faster than XML, used for RPC systems and storage of data. RPC gRPC Protobufs
  • 24. A Heterogeneous Environment Transactions Service RPC Account Balances SOAP User IDs REST International Wires Kafka Product Information GraphQL Loan Approvals REST Credit Score Checks REST Facebook Login GraphQL Credit Card Network REST OCR Service REST On-premise Private Cloud 3rd Party
  • 25. A Homogenous Environment Transactions Service RPC Account Balances SOAP User IDs REST International Wires Kafka Product Information GraphQL Loan Approvals REST Credit Score Checks REST Facebook Login GraphQL Credit Card Network RE OCR Service REST API Hub
  • 27. Microservices: 68% are Using or Investigating ● Internal APIs = microservices & internal systems ● Hundreds of internal APIs VS tens of external APIs ● Most APIs start as internal and graduate to be public facing 29% 15% 24% 30% Using microservices in production Using microservices in development Investigating microservices Other (2%) Not using microservices Ngnix Survey, 2015
  • 28. APIs – Start Inside Out Internal APIs. Used by: internal developers. Used for: creating new products and integrations. Partner APIs. Used by: existing customers & partners. Used for: deep integrations, dashboarding, reports. Public APIs. Used by: any 3rd party developer (self-service). Used for: new applications & services.
  • 29. Internal APIs – Unlocking Innovation ● To innovate, developers need access to data and functionality ● That data and functionality is siloed behind APIs ● Organizing internal APIs ○ Makes data and functionality more accessible ○ Enables developers to innovate ○ Speeds up time to market New Digital Experience API API API API
  • 30. Enterprise API Hub Enterprise API Hub API Creators Publish APIs Internal Developers Discover & Connect to APIs External Developers Governance Team Manage APIs
  • 31.
  • 32. API Platform Publish API Documentation CI/CD & Gateway Integration Access & Visibility Control Support for All API Types Monetization
  • 33. API Platform API Search Tagging and Filtering Interactive API Testing Code Snippets for Integration Monitoring & Analytics
  • 34. API Platform Control API Visibility Define API Readiness Requirements Ensure Compliance Track API Usage
  • 35.
  • 37. RapidAPI – Powering the API Economy Discover APIs Developers use RapidAPI to search for APIs, test APIs and compare them based on latency, uptime and popularity. Connect to APIs RapidAPI gives developers a single SDK and access point to connect to any API. Developers pay for APIs via RapidAPI. Monitor & Analyze APIs Developers use RapidAPI dashboard to monitor API performance and switch APIs seamlessly.
  • 38. RapidAPI – API Discovery ● Search through a catalog of over 10,000 APIs. ● Instantly see API metrics, including uptime, latency and popularity. ● Powerful API search including API tags and metadata.
  • 39. RapidAPI – API Connection ● See all API endpoints & their parameters. ● Test any API directly from the website. ● Copy code snippets to embed API connection into your application.
  • 40. RapidAPI – API Consumption Analytics ● View analytics on API call volume, latency and error rate. ● Identify issues by digging into log level information on API calls.
  • 41. RapidAPI – API Monetization ● Create billing plans ● Automatically invoice users ● Bill per object ● Rate limiting by plan ● Limit endpoint by plan ● Require DocuSign Signature ● Built-in credit card, ACH support
  • 45. Kafka
  • 46. Conclusion ● Determine how the API works, when to use it, and if it is at a point in maturity that makes sense for your application ● Try out new API Types and narrow down the right one that works for your project. ● With the proliferation of APIs, companies needs a centralized API Platform that is runtime agnostic, supports internal and external APIs, and accommodates multiple API types ● The ”right” API type depends on your project goals