SlideShare a Scribd company logo
Microservice API
Gateways
with NGINX
/Geoff Filippi @geofffilippi
Geoff Filippi
Senior Architect
DISH Network
Oildex
A cloud service company for oil and gas
2 years
Formerly:
Time Warner Cable
(Now Charter)
12 years
Experience
DISH Projects
Microservices
Spring Boot
Continuous Delivery
Domain Driven Design
Client Side Components
Experience
Oildex Projects
Rewrite 10+-year-old apps
Angular 2
Typescript
Microservices
NoSQL
Mongo
Experience
Worked on streaming media (Voice over IP), 6 years
5 million phone customers
Experience
Worked on video and streaming video, 4 years
Projects
twctv.com
Video streaming website
backbone.js
Video streaming Set-Top Box (STB) web application
We will cover
Microservice Architectures
API Gateways
NGINX
Microservice Architectures
Decoupling is the Primary Benefit of
Microservice Architectures
Development
Deployment
Dependencies
Interest Over Time
Client Challenge
Keeping track of what to call
Microservice Architecture Before API
Gateway
Microservice API Gateways with NGINX
Interactive - Microservice Architecture Before
API Gateway
API Gateways
API Gateways replace tight coupling with
loose coupling
Help manage large numbers of microservices
Hide infrastructure complexity from clients
Reverse Proxy
Handles incoming requests from clients
Calls a service to get the data to satsify the request
Returns the data to the client
An API Gateway is a Reverse Proxy
Microservice Architecture Before API
Gateway
Microservice API Gateways with NGINX
Interactive - Microservice Architecture Before
API Gateway
Microservice Architecture A er API Gateway
Interactive - Microservice Architecture A er
API Gateway
API Gateway Implementations
Open Source
Built on NGINX
NGINX
Netflix Zuul
Kong
API Gateway Implementations
"Open Source-Based" Enterprise Offering
Built on KONG/NGINX
NGINX-plus
Mashape
API Gateway Implementations
Cloud Services
Amazon API Gateway
Google Cloud Platform - Cloud Endpoints
Azure API Management
API Gateway Implementations
Proprietary
Owned by Google
Apigee
MuleSo
Mashery
CA API Gateway
Oracle API Gateway
IBM Bluemix API Gateway
3scale by Red Hat
NGINX
NGINX
API Gateway
Load Balancer
Content Cache
Web Server
NGINX is Open Source
NGINX source code
NGINX source code - GitHub mirror
Contributing to NGINX
License
NGINX has a Commercial Offering
NGINX-plus
We will not cover the commercial features
Some Companies That Use NGINX
Netflix
Hulu
Pinterest
GitHub
Heroku
MaxCDN
NGINX Getting Started
Install
OS Package
Red Hat/CentOS
Debian/Ubuntu
Win32 Binary
Build from source
NGINX Getting Started
Docker
NGINX Getting Started
Mac Homebrew
NGINX Documentation
NGINX Concepts
Modules
Directives
Contexts
Events
Upstreams
NGINX Architecture
Multiprocess vs. Multithread
One master process
Multiple worker processes
Modules
ngx_http_proxy_module
Directives
Contexts
main
http
server
upstream
location
mail
Variables
NGINX Configuration
nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
NGINX Reverse Proxy Configuration
server {
listen 8080;
server_name localhost;
location /server-a/ {
proxy_pass http://127.0.0.1:3002;
}
location /server-b/ {
proxy_pass http://127.0.0.1:3004;
}
}
Common NGINX Configuration
Mistakes
Questions?
References
NGINX
NGINX Wiki
NGINX Docker
NGINX source code
NGINX source code - GitHub mirror
Contributing to NGINX
NGINX - Andrew Alexeev
7:15 - 8:15pm - Microservice API Gateways with NGINX -
Geoffrey Filippi
(NGINX is pronounced "engine x".)
Microservices are a popular architectural solution. Clients of
microservices may experience some difficulty keeping track
of the various instances and endpoints they have to call. An
API gateway can help manage large numbers of
microservices and hide the infrastructure complexity from
your clients. We will review a microservice architecture
before and a er the addition of an API gateway.
An API gateway is a reverse proxy. A reverse proxy handles
incoming requests from clients and calls a service to get the
data to satisfy that request. The reverse proxy returns that
data to the client. Many developers write these proxies by
data to the client. Many developers write these proxies by
hand in custom code, not realizing the are better solutions
available. We will mention a number of popular solutions,
some open source and some cloud-based services. For this
talk, we will focus on NGINX, a popular open source reverse
proxy and API Gateway. (NGINX also sells an enterprise
offering, NGINX Plus, but this talk will only cover the features
available in the open-source version.)
We will show how to set up NGINX as an API Gateway. We
will dive into the configuration and operation of NGINX.

More Related Content

What's hot (20)

PPTX
Introduction to Google Cloud Services / Platforms
Nilanchal
 
PDF
Bootstrap
Jadson Santos
 
PDF
Starting with Git & GitHub
Nicolás Tourné
 
PDF
Best Practices for Streaming IoT Data with MQTT and Apache Kafka
Kai Wähner
 
PDF
JVM Performance Tuning
Jeremy Leisy
 
PDF
Introduction to asp.net
SHADAB ALI
 
PPTX
Introduction to Node js
Akshay Mathur
 
PDF
Service workers
jungkees
 
PPTX
What Is Express JS?
Simplilearn
 
PDF
Rest web services
Paulo Gandra de Sousa
 
PPTX
Node js introduction
Joseph de Castelnau
 
PDF
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
PPTX
Intro to git and git hub
Venkat Malladi
 
PDF
Git and Github slides.pdf
Tilton2
 
PDF
Apache Flink internals
Kostas Tzoumas
 
PPTX
Introduction to GraphQL
Bhargav Anadkat
 
PPT
Ajax Presentation
alaa.moustafa
 
PPTX
Functional Application Logging : Code Examples Using Spring Boot and Logback
Mohammad Sabir Khan
 
PDF
Introduction to Apache Flink - Fast and reliable big data processing
Till Rohrmann
 
PPTX
Introduction to SASS
Jon Dean
 
Introduction to Google Cloud Services / Platforms
Nilanchal
 
Bootstrap
Jadson Santos
 
Starting with Git & GitHub
Nicolás Tourné
 
Best Practices for Streaming IoT Data with MQTT and Apache Kafka
Kai Wähner
 
JVM Performance Tuning
Jeremy Leisy
 
Introduction to asp.net
SHADAB ALI
 
Introduction to Node js
Akshay Mathur
 
Service workers
jungkees
 
What Is Express JS?
Simplilearn
 
Rest web services
Paulo Gandra de Sousa
 
Node js introduction
Joseph de Castelnau
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Edureka!
 
Intro to git and git hub
Venkat Malladi
 
Git and Github slides.pdf
Tilton2
 
Apache Flink internals
Kostas Tzoumas
 
Introduction to GraphQL
Bhargav Anadkat
 
Ajax Presentation
alaa.moustafa
 
Functional Application Logging : Code Examples Using Spring Boot and Logback
Mohammad Sabir Khan
 
Introduction to Apache Flink - Fast and reliable big data processing
Till Rohrmann
 
Introduction to SASS
Jon Dean
 

Similar to Microservice API Gateways with NGINX (20)

PPTX
Using an API Gateway for Microservices (APAC Webinar)
NGINX, Inc.
 
PPTX
API Gateway: Nginx way
inovia
 
PPTX
Using an API Gateway for Microservices
NGINX, Inc.
 
PDF
APIs: Intelligent Routing, Security, & Management
NGINX, Inc.
 
PPTX
The 3 Models in the NGINX Microservices Reference Architecture
NGINX, Inc.
 
PDF
Achieve Full API Lifecycle Management Using NGINX Controller – EMEA
NGINX, Inc.
 
PDF
Microservices & API Gateways
Kong Inc.
 
PPTX
Achieve Full API Lifecycle Management Using NGINX Controller
NGINX, Inc.
 
PDF
nginxcontrollerapimanagementwebinar-190123215258.pdf
Andri Wahyudi
 
PPTX
Accelerating Your Web Application with NGINX
Kevin Jones
 
PPTX
Deployment Patterns for API gateways
NGINX, Inc.
 
PDF
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX, Inc.
 
PPTX
Flawless Application Delivery with NGINX Plus
Peter Guagenti
 
PPTX
NGINX Microservices Reference Architecture: Ask Me Anything
NGINX, Inc.
 
PPTX
Gain multi-cloud versatility with software load balancing designed for cloud-...
Ashnikbiz
 
PDF
MRA AMA: Ingenious: The Journey to Service Mesh using a Microservices Demo App
NGINX, Inc.
 
PPTX
Nginx Conference 2016 - Learnings and State of the Industry
Benjamin Scholler
 
PPTX
NGINX Lunch and Learn Event: Kubernetes and the NGINX Plus Ingress controller
Katherine Bagood
 
PPTX
Session: A Reference Architecture for Running Modern APIs with NGINX Unit and...
NGINX, Inc.
 
PDF
Deploy and Secure Your API Gateway with NGINX: From Zero to Hero – APCJ
NGINX, Inc.
 
Using an API Gateway for Microservices (APAC Webinar)
NGINX, Inc.
 
API Gateway: Nginx way
inovia
 
Using an API Gateway for Microservices
NGINX, Inc.
 
APIs: Intelligent Routing, Security, & Management
NGINX, Inc.
 
The 3 Models in the NGINX Microservices Reference Architecture
NGINX, Inc.
 
Achieve Full API Lifecycle Management Using NGINX Controller – EMEA
NGINX, Inc.
 
Microservices & API Gateways
Kong Inc.
 
Achieve Full API Lifecycle Management Using NGINX Controller
NGINX, Inc.
 
nginxcontrollerapimanagementwebinar-190123215258.pdf
Andri Wahyudi
 
Accelerating Your Web Application with NGINX
Kevin Jones
 
Deployment Patterns for API gateways
NGINX, Inc.
 
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX, Inc.
 
Flawless Application Delivery with NGINX Plus
Peter Guagenti
 
NGINX Microservices Reference Architecture: Ask Me Anything
NGINX, Inc.
 
Gain multi-cloud versatility with software load balancing designed for cloud-...
Ashnikbiz
 
MRA AMA: Ingenious: The Journey to Service Mesh using a Microservices Demo App
NGINX, Inc.
 
Nginx Conference 2016 - Learnings and State of the Industry
Benjamin Scholler
 
NGINX Lunch and Learn Event: Kubernetes and the NGINX Plus Ingress controller
Katherine Bagood
 
Session: A Reference Architecture for Running Modern APIs with NGINX Unit and...
NGINX, Inc.
 
Deploy and Secure Your API Gateway with NGINX: From Zero to Hero – APCJ
NGINX, Inc.
 
Ad

Recently uploaded (20)

PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HydITEx corporation Booklet 2025 English
Георгий Феодориди
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PPTX
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Top Managed Service Providers in Los Angeles
Captain IT
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HydITEx corporation Booklet 2025 English
Георгий Феодориди
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Ad

Microservice API Gateways with NGINX