SlideShare a Scribd company logo
Building APIs in a Cloud Native Era
December 10, 2020
Hello!
Nuwan Dias
VP and deputy CTO for API Management and Integration - WSO2
@nuwandias
Co-Author of Microservices Security in Action
"By 2021, over 75% of midsize and large
organizations will have adopted a multi-cloud and/or
hybrid IT strategy."
- Gartner
3
● APIs connect systems together.
● APIs are built by connecting systems together
APIs….
4
A simple Order Processing API
5
Order Processing API
Purchase order request
Save order in database
Purchase order response
An actual Order Processing API
6
Order Processing API
Python code that calls the Twilio Send SMS API
Initializing the Twilio
client with credentials
Sending Message
cURL request to send an SMS from Twilio
curl -X POST
https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Mess
ages.json 
--data-urlencode "Body=Hi there$EXCLAMATION_MARK" 
--data-urlencode "From=+15017122661" 
--data-urlencode "To=+15558675310" 
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
Basic Auth Header
Message Payload
That was the happy path!!
9
Wait! What? There’s an unhappy path too? It’s Twilio, what could possibly go wrong?
● How to deal with credentials securely
⦿ How to obtain credentials?
⦿ How to store credentials securely?
⦿ How to propagate credentials through CI/CD pipelines of the app?
● How to handle application errors.
⦿ When the phone number is invalid or disconnected
⦿ When the credentials are invalid or expired.
● How to handle connectivity issues.
⦿ Network connectivity issues.
⦿ APIs being retired.
⦿ Expired certificates.
What problems did you not see above?
10
● Lots of boilerplate code.
● The need for developers to learn things outside the scope of their business.
⦿ Learning how to use the APIs/SDKs (if available).
⦿ Learning how to obtain and manage credentials securely.
⦿ . . . .
● Risk of mistakes and the need of a good governance model to avert them.
● Developers having to keep up with the new versions of the endpoints
⦿ For security and other important updates.
● A repetition of all drawbacks above as more developers start connecting to the
same endpoints.
Drawbacks of writing code to connect well known endpoints
11
Introducing Integration APIs to solve the problem
12
Orders
Microservice
Products
Microservice
Cloud Services
Integration APIs Utility APIs
● Can be implemented using low-code/no-code tooling.
● Flexible enough to be extended using code (doesn’t stop at low/no code).
● Has all characteristics of a proper cloud-native microservice
⦿ Atomic execution.
⦿ Lightweight in distribution and resource utilization.
⦿ Supports GitOps based CI/CD flows.
⦿ Observable.
⦿ . . . . .
● Has a rich family of connectors to well known cloud APIs.
● Provides rich value for connecting to any endpoint (even non-SaaS)
● Has rich constructs for well known integration needs (data mapping, error
handling, etc)
Important characteristics of Integration APIs
13
Q: Isn’t this what a Service Mesh is for?
14
A: No
● The primary goal of a service mesh is to solve problems in a MSA when service
communicate with each other.
⦿ Service discoverability
⦿ Transport level security
⦿ Circuit breaking
⦿ Message tracing and observability
What is a service mesh and what problems does it solve?
15
Orders Microservice Shipping Microservice
We now have a functional API. What does it take to
run this in production?
16
● Granting secure access to the API.
⦿ Standard protocols such as OAuth2.0/OIDC.
⦿ Security federation across cloud IDPs.
⦿ Security context propagation to upstream microservices.
● Updating the API with no downtime and client impact.
⦿ API versions and revisions.
⦿ Seamless migration of clients to newer versions of the API.
● Supporting different styles of APIs and protocols
⦿ Regular, request/response type APIs
⦿ Event driven APIs
⦿ HTTP, gRPC, GraphQL, WebSockets, SSEs, WebHooks.
● Setting up automated tests for the API.
● Hybrid deployment patterns.
Running an API in Production in a Cloud Native Era
17
API Management
18
Orders
Microservice
Products
Microservice
Integration APIs Utility APIsEdge APIs - API Gateways
Control Plane
API Management - Expanded
19
Orders
Microservice
Products
Microservice
Integration APIs Utility APIsEdge APIs - API Gateways
API Governance
Policy Management
Business Insights
Developer Portals
Low code tooling
Connector Governance
Artificial Intelligence
CI/CD and deployment mgt
Observability
CI/CD and deployment mgt
Observability
wso2.com
Thanks!

More Related Content

PDF
apidays LIVE Paris - Creating a scalable ecosystem of Microservices by Archan...
PDF
Voxxed Days Minsk. Microservices:
 The phantom menace
. Istio Service Mesh: 
...
PDF
Kong summit, japan 2021 スペシャルセッション 「Kongと共に歩んだAIプラットフォーム構築までの軌跡」野田 明良 氏 Vice ...
PDF
apidays LIVE Paris 2021 - API Attack Simulator - Find your API vulnerabilitie...
PPTX
apidays LIVE New York 2021 - Top 10 API security threats every API team shoul...
PDF
apidays LIVE Paris - Protecting financial grade API: adopting the right secur...
PDF
APIdays Paris 2019 - Zero Downtime in API Management by Waldemar Rosenfeld, A...
PPTX
apidays LIVE Paris - Principles for API security by Alan Glickenhouse
apidays LIVE Paris - Creating a scalable ecosystem of Microservices by Archan...
Voxxed Days Minsk. Microservices:
 The phantom menace
. Istio Service Mesh: 
...
Kong summit, japan 2021 スペシャルセッション 「Kongと共に歩んだAIプラットフォーム構築までの軌跡」野田 明良 氏 Vice ...
apidays LIVE Paris 2021 - API Attack Simulator - Find your API vulnerabilitie...
apidays LIVE New York 2021 - Top 10 API security threats every API team shoul...
apidays LIVE Paris - Protecting financial grade API: adopting the right secur...
APIdays Paris 2019 - Zero Downtime in API Management by Waldemar Rosenfeld, A...
apidays LIVE Paris - Principles for API security by Alan Glickenhouse

What's hot (20)

PDF
[APIdays INTERFACE 2021] Now that we have K8s, can we stop re-inventing API p...
PDF
apidays LIVE Paris 2021 - Synchronous Communication Patterns by Sébastien Ber...
PDF
[WSO2 Integration Summit San Francisco 2019] Protecting API Infrastructures —...
PDF
apidays LIVE Hong Kong 2021 - Event-driven APIs & Schema governance for Apach...
PDF
apidays LIVE Paris 2021 - Why Can’t Us Consumers Have APIs by Salman Farmanfa...
PDF
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
PDF
apidays LIVE Paris 2021 - The Real World, API Security Edition by Michael Isb...
PDF
[apidays Live Australia] How do you enhance customer experience through event...
PDF
apidays LIVE Paris 2021 - Addressing OWASP API Security Top 10 by Isabelle Ma...
PDF
apidays LIVE London 2021 - Application to API Security, drivers to the Shift ...
PDF
apidays LIVE New York 2021 - API design is where culture and tech meet each o...
PDF
Mobile - Your API Security Blindspot by David Stewart, Approov
PDF
[WSO2 Integration Summit San Francisco 2019] The Composable Enterprise
PDF
apidays LIVE Paris - Connectivity rules everything around us by Marco Palladino
PDF
API Driven Applications - An ecosystem architecture
PDF
API Management within a Microservice Architecture
PDF
[WSO2 Integration Summit San Francisco 2019] The API-driven World
PDF
[WSO2 Integration Summit Stuttgart 2019] Decentralizing APIs for Agile Busine...
PDF
apidays LIVE Paris - Potential of API integrations, common traps and advices ...
PDF
Deploy and Secure Your API Gateway with NGINX: From Zero to Hero – APCJ
[APIdays INTERFACE 2021] Now that we have K8s, can we stop re-inventing API p...
apidays LIVE Paris 2021 - Synchronous Communication Patterns by Sébastien Ber...
[WSO2 Integration Summit San Francisco 2019] Protecting API Infrastructures —...
apidays LIVE Hong Kong 2021 - Event-driven APIs & Schema governance for Apach...
apidays LIVE Paris 2021 - Why Can’t Us Consumers Have APIs by Salman Farmanfa...
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
apidays LIVE Paris 2021 - The Real World, API Security Edition by Michael Isb...
[apidays Live Australia] How do you enhance customer experience through event...
apidays LIVE Paris 2021 - Addressing OWASP API Security Top 10 by Isabelle Ma...
apidays LIVE London 2021 - Application to API Security, drivers to the Shift ...
apidays LIVE New York 2021 - API design is where culture and tech meet each o...
Mobile - Your API Security Blindspot by David Stewart, Approov
[WSO2 Integration Summit San Francisco 2019] The Composable Enterprise
apidays LIVE Paris - Connectivity rules everything around us by Marco Palladino
API Driven Applications - An ecosystem architecture
API Management within a Microservice Architecture
[WSO2 Integration Summit San Francisco 2019] The API-driven World
[WSO2 Integration Summit Stuttgart 2019] Decentralizing APIs for Agile Busine...
apidays LIVE Paris - Potential of API integrations, common traps and advices ...
Deploy and Secure Your API Gateway with NGINX: From Zero to Hero – APCJ
Ad

Similar to Building APIs in a Cloud Native Era (20)

PDF
WSO2 User Group Bangalore Meetup
PDF
Delivering New Digital Experiences Fast - Introducing Choreo
PDF
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
PDF
5 Pillars of Building Enterprise0grade APIs
PDF
Compose Gen-AI Apps With Real-Time Data - In Minutes, Not Weeks
PDF
[WSO2 API Day Toronto 2019] Cloud-native Integration for the Enterprise
PPTX
API Management Within a Microservices Architecture
PPTX
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
PDF
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
PDF
[API World 2021 ] - Understanding Cloud Native Deployment
PDF
Infrastructure as Code in Large Scale Organizations
PDF
Challenges In Modern Application
PDF
Design - Start Your API Journey Today
PDF
AWS Community Day - Amy Negrette - Gateways to Gateways
PDF
Introducing The WSO2 Platform
PDF
Meetup 2022 - API Gateway landscape.pdf
PDF
Perth Meetup August 2021
PDF
Implementing API-led Cloud-native apps on OCI
PDF
[APIdays INTERFACE 2021] Programming the Cloud through APIs
PPTX
Role of integration in Digital Transformation
WSO2 User Group Bangalore Meetup
Delivering New Digital Experiences Fast - Introducing Choreo
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
5 Pillars of Building Enterprise0grade APIs
Compose Gen-AI Apps With Real-Time Data - In Minutes, Not Weeks
[WSO2 API Day Toronto 2019] Cloud-native Integration for the Enterprise
API Management Within a Microservices Architecture
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
[API World 2021 ] - Understanding Cloud Native Deployment
Infrastructure as Code in Large Scale Organizations
Challenges In Modern Application
Design - Start Your API Journey Today
AWS Community Day - Amy Negrette - Gateways to Gateways
Introducing The WSO2 Platform
Meetup 2022 - API Gateway landscape.pdf
Perth Meetup August 2021
Implementing API-led Cloud-native apps on OCI
[APIdays INTERFACE 2021] Programming the Cloud through APIs
Role of integration in Digital Transformation
Ad

More from Nuwan Dias (7)

PDF
Accelerating Platformless Modernization With Choreo - WSO2Con 2025.pdf
PDF
The Kubernetes Gateway API and its role in Cloud Native API Management
PDF
Leveraging Async APIs to deliver cross domain agile collaboration
PDF
Building an API Factory: Turn your APIs into Products
PDF
How to design a good rest api tools, techniques and best practices.
PDF
Delivering the Modern API: Know what it takes
PPTX
Decentralized APIs for Agile Businesses
Accelerating Platformless Modernization With Choreo - WSO2Con 2025.pdf
The Kubernetes Gateway API and its role in Cloud Native API Management
Leveraging Async APIs to deliver cross domain agile collaboration
Building an API Factory: Turn your APIs into Products
How to design a good rest api tools, techniques and best practices.
Delivering the Modern API: Know what it takes
Decentralized APIs for Agile Businesses

Recently uploaded (20)

PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
L1 - Introduction to python Backend.pptx
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPT
Introduction Database Management System for Course Database
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
medical staffing services at VALiNTRY
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Introduction to Artificial Intelligence
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
ISO 45001 Occupational Health and Safety Management System
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
top salesforce developer skills in 2025.pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Odoo Companies in India – Driving Business Transformation.pdf
L1 - Introduction to python Backend.pptx
VVF-Customer-Presentation2025-Ver1.9.pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Introduction Database Management System for Course Database
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Adobe Illustrator 28.6 Crack My Vision of Vector Design
medical staffing services at VALiNTRY
Softaken Excel to vCard Converter Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Upgrade and Innovation Strategies for SAP ERP Customers
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Introduction to Artificial Intelligence
Design an Analysis of Algorithms II-SECS-1021-03
ManageIQ - Sprint 268 Review - Slide Deck
Understanding Forklifts - TECH EHS Solution
ISO 45001 Occupational Health and Safety Management System

Building APIs in a Cloud Native Era

  • 1. Building APIs in a Cloud Native Era December 10, 2020
  • 2. Hello! Nuwan Dias VP and deputy CTO for API Management and Integration - WSO2 @nuwandias Co-Author of Microservices Security in Action
  • 3. "By 2021, over 75% of midsize and large organizations will have adopted a multi-cloud and/or hybrid IT strategy." - Gartner 3
  • 4. ● APIs connect systems together. ● APIs are built by connecting systems together APIs…. 4
  • 5. A simple Order Processing API 5 Order Processing API Purchase order request Save order in database Purchase order response
  • 6. An actual Order Processing API 6 Order Processing API
  • 7. Python code that calls the Twilio Send SMS API Initializing the Twilio client with credentials Sending Message
  • 8. cURL request to send an SMS from Twilio curl -X POST https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Mess ages.json --data-urlencode "Body=Hi there$EXCLAMATION_MARK" --data-urlencode "From=+15017122661" --data-urlencode "To=+15558675310" -u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN Basic Auth Header Message Payload
  • 9. That was the happy path!! 9 Wait! What? There’s an unhappy path too? It’s Twilio, what could possibly go wrong?
  • 10. ● How to deal with credentials securely ⦿ How to obtain credentials? ⦿ How to store credentials securely? ⦿ How to propagate credentials through CI/CD pipelines of the app? ● How to handle application errors. ⦿ When the phone number is invalid or disconnected ⦿ When the credentials are invalid or expired. ● How to handle connectivity issues. ⦿ Network connectivity issues. ⦿ APIs being retired. ⦿ Expired certificates. What problems did you not see above? 10
  • 11. ● Lots of boilerplate code. ● The need for developers to learn things outside the scope of their business. ⦿ Learning how to use the APIs/SDKs (if available). ⦿ Learning how to obtain and manage credentials securely. ⦿ . . . . ● Risk of mistakes and the need of a good governance model to avert them. ● Developers having to keep up with the new versions of the endpoints ⦿ For security and other important updates. ● A repetition of all drawbacks above as more developers start connecting to the same endpoints. Drawbacks of writing code to connect well known endpoints 11
  • 12. Introducing Integration APIs to solve the problem 12 Orders Microservice Products Microservice Cloud Services Integration APIs Utility APIs
  • 13. ● Can be implemented using low-code/no-code tooling. ● Flexible enough to be extended using code (doesn’t stop at low/no code). ● Has all characteristics of a proper cloud-native microservice ⦿ Atomic execution. ⦿ Lightweight in distribution and resource utilization. ⦿ Supports GitOps based CI/CD flows. ⦿ Observable. ⦿ . . . . . ● Has a rich family of connectors to well known cloud APIs. ● Provides rich value for connecting to any endpoint (even non-SaaS) ● Has rich constructs for well known integration needs (data mapping, error handling, etc) Important characteristics of Integration APIs 13
  • 14. Q: Isn’t this what a Service Mesh is for? 14 A: No
  • 15. ● The primary goal of a service mesh is to solve problems in a MSA when service communicate with each other. ⦿ Service discoverability ⦿ Transport level security ⦿ Circuit breaking ⦿ Message tracing and observability What is a service mesh and what problems does it solve? 15 Orders Microservice Shipping Microservice
  • 16. We now have a functional API. What does it take to run this in production? 16
  • 17. ● Granting secure access to the API. ⦿ Standard protocols such as OAuth2.0/OIDC. ⦿ Security federation across cloud IDPs. ⦿ Security context propagation to upstream microservices. ● Updating the API with no downtime and client impact. ⦿ API versions and revisions. ⦿ Seamless migration of clients to newer versions of the API. ● Supporting different styles of APIs and protocols ⦿ Regular, request/response type APIs ⦿ Event driven APIs ⦿ HTTP, gRPC, GraphQL, WebSockets, SSEs, WebHooks. ● Setting up automated tests for the API. ● Hybrid deployment patterns. Running an API in Production in a Cloud Native Era 17
  • 18. API Management 18 Orders Microservice Products Microservice Integration APIs Utility APIsEdge APIs - API Gateways Control Plane
  • 19. API Management - Expanded 19 Orders Microservice Products Microservice Integration APIs Utility APIsEdge APIs - API Gateways API Governance Policy Management Business Insights Developer Portals Low code tooling Connector Governance Artificial Intelligence CI/CD and deployment mgt Observability CI/CD and deployment mgt Observability