SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
API Gateway is essential to business
Zhiyuan Ju Aug 24, 2022
- Head of Global, API7.ai
- Apache APISIX PMC Member
- Apache Software Foundation Member
- freeCodeCamp China Core Organizer
@jjzhiyuan
@juzhiyuan
juzhiyuan@apache.org
About me
Zhiyuan Ju / 琚致远 July 1997
APIs
from api7.ai
API Evolution
The monolithic architecture is considered to be a traditional way
of building applications. A monolithic application is built as a single
and indivisible unit. Usually, such a solution comprises a
client-side user interface, a server side-application, and a
database. It is unified and all the functions are managed and
served in one place.
Disadvantages
- Large code base
- Lack modularity
- …
API Evolution
#1 Monolithic
from n-ix.com
The microservice architectural style is an approach to developing
a single application as a suite of small services, each running in
its own process and communicating with lightweight
mechanisms, often an HTTP resource API.
Challenge
- Manage massive amounts of APIs
- API Security
- Quick Debug (Observability)
- Circuit Breaker
- …
API Evolution
#2 Microservice
from n-ix.com
A service mesh is a dedicated infrastructure layer for
handling service-to-service communication. It’s
responsible for the reliable delivery of requests through
the complex topology of services that comprise a
modern, cloud-native application. In practice, the service
mesh is typically implemented as an array of lightweight
network proxies that are deployed alongside application
code, without the application needing to be aware.
API Evolution
#3 Service Mesh
from DZone and RedHat
API Management
API Management
- Design
- Develop
- Test
- Publish (API Gateway)
- Monitor (API Gateway with Prometheus, etc.)
- Retirement
Full Lifecycle API Management
API Gateway
API Gateway
- Implement non-business-related logic on the API
Gateway
- Reduces the number of requests/roundtrips. For
example, the API gateway enables clients to retrieve
data from multiple services with a single round-trip.
- Simplifies the client by moving logic for calling multiple
services from the client to API gateway
- Translates from a “standard” public web-friendly API
protocol to whatever protocols are used internally
Benefit
from microservices.io and Apache APISIX
API Gateway
Security
“API security refers to the practice of preventing or
mitigating attacks on APIs. APIs work as the backend
framework for mobile and web applications. Therefore,
it is critical to protect the sensitive data they transfer. “
Cases:
- Broken User Authentication
- Security Misconfiguration
- Code Injection
- Insufficient Logging & Monitoring
- Functional Level Authorization
- …
from fortinet.com
API Gateway
Connect any APIs efficiently and securely in
any environment ⚡
Performance
API Gateway
Hundreds of global contributors building the
open-sourced but well-tested Infra software :)
Open Source
Apache APISIX
- Apache Software Foundation Top-level Project
- Donated by API7.ai Inc in 2019
- Dynamic, real-time, high performance API
Gateway
- Rich traffic management
- Dynamic upstream
- Authentication
- Observability
- and more
- API Gateway, Ingress Controller, Service Mesh
Apache APISIX
What’s Apache APISIX?
Apache APISIX
“The Apache Software Foundation (ASF) incorporated in 1999
with the mission of providing software for the common good.
Today the ASF is the world’s largest Open Source foundation,
stewarding 227M+ lines of code and providing $22B+ worth of
software to the public at 100% no cost. ASF projects are
integral to nearly every aspect of modern computing,
benefitting billions worldwide.”
from The ASF’s 2021 Annual Report
Apache Software Foundation
Apache APISIX
- Nginx
- Nginx doesn’t support hot reloading the nginx.conf
- Kong
- PostgreSQL becomes a bottleneck
- Route matching’s efficiency decreases when having
many routes
- Unify API Infrastructure by Apache APISIX: API
Gateway, Ingress Controller, Service Mesh
Why build a new API Gateway?
Apache APISIX
Dynamic
- What?
- Route/Upstream/Service/Consumer/SSL hot
reload
- Plugin hot updates
- Dynamic load balancer and heath check
- Why?
- Connection failed (HTTP, WebSocket, …) when
reloading configurations
- How?
- LuaJIT + Nginx
Apache APISIX
- Why
- Nginx takes very long time to reload thousands of
configuration files
- Kong usually takes 5 seconds to fetch configurations
(PostgreSQL)
- How
- ETCD’s Watch API provides an event-based interface
for asynchronously monitoring changes to keys less
than one millisecond
Real-time
Apache APISIX
- Route matching algorithm
- Apache APISIX: O(K) (K is URI length)
- Kong: O(n), (n is total number of Routes)
- IP matching algorithm: O(1)
- APISIX’s every plugin is carefully optimized
- APISIX’s dataplane is stateless (etcd), no
SPOF issue, higly scaleable
- …
High Performance
Apache APISIX
Security
- OpenID Connect
- TLS/mTLS
- Authentication
- Rate Limiting
- CORS
- Request Validation
- …
Apache APISIX
- Lua
- Plugin Runner
- Java
- Golang
- Python
- Node.js
- WASM
Plugins
Apache APISIX
- GitHub: nearly 10K stars and 470+ contributors
- Slack: 930+ community users
- Mailing List
- Meetup
Join in →
https://apisix.apache.org/docs/general/join/
Community Developers
https://lists.apache.org/list.html?dev@apisix.apache.org
Apache APISIX
- 27 PMC Members
- 19 Committers
- 470+ Contributors (apache/apisix-*)
Community Contributors
from https://git-contributor.com/
Apache APISIX
- Community Meeting, Meetup:
https://apisix.apache.org/docs/general/join/
- Apache APISIX Summit:
https://apisix-summit.org/
Community Meetings
Apache APISIX
1. Ask questions on GitHub, Slack, Mailing List
a. https://apisix.apache.org/docs/general/join/
2. Maintainers check and reply
3. Schedule a quick online meeting if necessary:
https://meetings.hubspot.com/zhiyuan
Community Support
Apache APISIX
Global Users
from https://apisix.apache.org/blog/ags/case-studies/
Q&A
@jjzhiyuan
@juzhiyuan
juzhiyuan@apache.org

Weitere ähnliche Inhalte

Ähnlich wie apidays Hong Kong - Why is API Gateway essential to business, Zhiyuan Ju, API7.ai

API Gateways are going through an identity crisis
API Gateways are going through an identity crisisAPI Gateways are going through an identity crisis
API Gateways are going through an identity crisis
Christian Posta
 
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
WSO2
 

Ähnlich wie apidays Hong Kong - Why is API Gateway essential to business, Zhiyuan Ju, API7.ai (20)

M meijer api management - tech-days 2015
M meijer   api management - tech-days 2015M meijer   api management - tech-days 2015
M meijer api management - tech-days 2015
 
API Gateways are going through an identity crisis
API Gateways are going through an identity crisisAPI Gateways are going through an identity crisis
API Gateways are going through an identity crisis
 
RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)
 
Agile integration architecture in relation to APIs and messaging
Agile integration architecture in relation to APIs and messagingAgile integration architecture in relation to APIs and messaging
Agile integration architecture in relation to APIs and messaging
 
What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...
 
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
 
Introduction to Kong API Gateway
Introduction to Kong API GatewayIntroduction to Kong API Gateway
Introduction to Kong API Gateway
 
API Management Microservices beyond HIP
API Management Microservices beyond HIPAPI Management Microservices beyond HIP
API Management Microservices beyond HIP
 
Nils Rhode - Does it always have to be k8s - TeC Day 2019
Nils Rhode - Does it always have to be k8s - TeC Day 2019Nils Rhode - Does it always have to be k8s - TeC Day 2019
Nils Rhode - Does it always have to be k8s - TeC Day 2019
 
Azure app service to create web and mobile apps
Azure app service to create web and mobile appsAzure app service to create web and mobile apps
Azure app service to create web and mobile apps
 
Building APIs in a Cloud Native Era
Building APIs in a Cloud Native EraBuilding APIs in a Cloud Native Era
Building APIs in a Cloud Native Era
 
apidays LIVE Paris - Building APIs in a Cloud Native era by Nuwan Dias
apidays LIVE Paris - Building APIs in a Cloud Native era by Nuwan Diasapidays LIVE Paris - Building APIs in a Cloud Native era by Nuwan Dias
apidays LIVE Paris - Building APIs in a Cloud Native era by Nuwan Dias
 
DEVNET-1128 Cisco Intercloud Fabric NB Api's for Business & Providers
DEVNET-1128	Cisco Intercloud Fabric NB Api's for Business & ProvidersDEVNET-1128	Cisco Intercloud Fabric NB Api's for Business & Providers
DEVNET-1128 Cisco Intercloud Fabric NB Api's for Business & Providers
 
apidays Singapore 2023 - Beyond REST, Claudio Tag, IBM
apidays Singapore 2023 - Beyond REST, Claudio Tag, IBMapidays Singapore 2023 - Beyond REST, Claudio Tag, IBM
apidays Singapore 2023 - Beyond REST, Claudio Tag, IBM
 
Oow2016 review--paas-microservices-
Oow2016 review--paas-microservices-Oow2016 review--paas-microservices-
Oow2016 review--paas-microservices-
 
APIdays Barcelona 2019 - How a Cloud native Architecture helps to drive Busin...
APIdays Barcelona 2019 - How a Cloud native Architecture helps to drive Busin...APIdays Barcelona 2019 - How a Cloud native Architecture helps to drive Busin...
APIdays Barcelona 2019 - How a Cloud native Architecture helps to drive Busin...
 
The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)
 
APIConnect Security Best Practice
APIConnect Security Best PracticeAPIConnect Security Best Practice
APIConnect Security Best Practice
 
Microservices&ap imanagement
Microservices&ap imanagementMicroservices&ap imanagement
Microservices&ap imanagement
 
sMash_for_zOS-users
sMash_for_zOS-userssMash_for_zOS-users
sMash_for_zOS-users
 

Mehr von apidays

Mehr von 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...
 

Kürzlich hochgeladen

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

Kürzlich hochgeladen (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
"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 ...
 
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
 
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
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

apidays Hong Kong - Why is API Gateway essential to business, Zhiyuan Ju, API7.ai

  • 1. API Gateway is essential to business Zhiyuan Ju Aug 24, 2022
  • 2. - Head of Global, API7.ai - Apache APISIX PMC Member - Apache Software Foundation Member - freeCodeCamp China Core Organizer @jjzhiyuan @juzhiyuan juzhiyuan@apache.org About me Zhiyuan Ju / 琚致远 July 1997
  • 5. The monolithic architecture is considered to be a traditional way of building applications. A monolithic application is built as a single and indivisible unit. Usually, such a solution comprises a client-side user interface, a server side-application, and a database. It is unified and all the functions are managed and served in one place. Disadvantages - Large code base - Lack modularity - … API Evolution #1 Monolithic from n-ix.com
  • 6. The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. Challenge - Manage massive amounts of APIs - API Security - Quick Debug (Observability) - Circuit Breaker - … API Evolution #2 Microservice from n-ix.com
  • 7. A service mesh is a dedicated infrastructure layer for handling service-to-service communication. It’s responsible for the reliable delivery of requests through the complex topology of services that comprise a modern, cloud-native application. In practice, the service mesh is typically implemented as an array of lightweight network proxies that are deployed alongside application code, without the application needing to be aware. API Evolution #3 Service Mesh from DZone and RedHat
  • 9. API Management - Design - Develop - Test - Publish (API Gateway) - Monitor (API Gateway with Prometheus, etc.) - Retirement Full Lifecycle API Management
  • 11. API Gateway - Implement non-business-related logic on the API Gateway - Reduces the number of requests/roundtrips. For example, the API gateway enables clients to retrieve data from multiple services with a single round-trip. - Simplifies the client by moving logic for calling multiple services from the client to API gateway - Translates from a “standard” public web-friendly API protocol to whatever protocols are used internally Benefit from microservices.io and Apache APISIX
  • 12. API Gateway Security “API security refers to the practice of preventing or mitigating attacks on APIs. APIs work as the backend framework for mobile and web applications. Therefore, it is critical to protect the sensitive data they transfer. “ Cases: - Broken User Authentication - Security Misconfiguration - Code Injection - Insufficient Logging & Monitoring - Functional Level Authorization - … from fortinet.com
  • 13. API Gateway Connect any APIs efficiently and securely in any environment ⚡ Performance
  • 14. API Gateway Hundreds of global contributors building the open-sourced but well-tested Infra software :) Open Source
  • 16. - Apache Software Foundation Top-level Project - Donated by API7.ai Inc in 2019 - Dynamic, real-time, high performance API Gateway - Rich traffic management - Dynamic upstream - Authentication - Observability - and more - API Gateway, Ingress Controller, Service Mesh Apache APISIX What’s Apache APISIX?
  • 17. Apache APISIX “The Apache Software Foundation (ASF) incorporated in 1999 with the mission of providing software for the common good. Today the ASF is the world’s largest Open Source foundation, stewarding 227M+ lines of code and providing $22B+ worth of software to the public at 100% no cost. ASF projects are integral to nearly every aspect of modern computing, benefitting billions worldwide.” from The ASF’s 2021 Annual Report Apache Software Foundation
  • 18. Apache APISIX - Nginx - Nginx doesn’t support hot reloading the nginx.conf - Kong - PostgreSQL becomes a bottleneck - Route matching’s efficiency decreases when having many routes - Unify API Infrastructure by Apache APISIX: API Gateway, Ingress Controller, Service Mesh Why build a new API Gateway?
  • 19. Apache APISIX Dynamic - What? - Route/Upstream/Service/Consumer/SSL hot reload - Plugin hot updates - Dynamic load balancer and heath check - Why? - Connection failed (HTTP, WebSocket, …) when reloading configurations - How? - LuaJIT + Nginx
  • 20. Apache APISIX - Why - Nginx takes very long time to reload thousands of configuration files - Kong usually takes 5 seconds to fetch configurations (PostgreSQL) - How - ETCD’s Watch API provides an event-based interface for asynchronously monitoring changes to keys less than one millisecond Real-time
  • 21. Apache APISIX - Route matching algorithm - Apache APISIX: O(K) (K is URI length) - Kong: O(n), (n is total number of Routes) - IP matching algorithm: O(1) - APISIX’s every plugin is carefully optimized - APISIX’s dataplane is stateless (etcd), no SPOF issue, higly scaleable - … High Performance
  • 22. Apache APISIX Security - OpenID Connect - TLS/mTLS - Authentication - Rate Limiting - CORS - Request Validation - …
  • 23. Apache APISIX - Lua - Plugin Runner - Java - Golang - Python - Node.js - WASM Plugins
  • 24. Apache APISIX - GitHub: nearly 10K stars and 470+ contributors - Slack: 930+ community users - Mailing List - Meetup Join in → https://apisix.apache.org/docs/general/join/ Community Developers https://lists.apache.org/list.html?dev@apisix.apache.org
  • 25. Apache APISIX - 27 PMC Members - 19 Committers - 470+ Contributors (apache/apisix-*) Community Contributors from https://git-contributor.com/
  • 26. Apache APISIX - Community Meeting, Meetup: https://apisix.apache.org/docs/general/join/ - Apache APISIX Summit: https://apisix-summit.org/ Community Meetings
  • 27. Apache APISIX 1. Ask questions on GitHub, Slack, Mailing List a. https://apisix.apache.org/docs/general/join/ 2. Maintainers check and reply 3. Schedule a quick online meeting if necessary: https://meetings.hubspot.com/zhiyuan Community Support
  • 28. Apache APISIX Global Users from https://apisix.apache.org/blog/ags/case-studies/