VOOZH about

URL: https://thenewstack.io/api-gateways-age-microservices/

⇱ The Role of API Gateways in Microservice Architectures - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2017-09-21 12:54:30
The Role of API Gateways in Microservice Architectures
API Management / Cloud Native Ecosystem / Microservices / Service Mesh / Software Development

The Role of API Gateways in Microservice Architectures

Sep 21st, 2017 12:54pm by Joab Jackson
👁 Featued image for: The Role of API Gateways in Microservice Architectures
Feature image via Pixabay.

Despite their differences in nomenclature, newly emerging service meshes aren’t all that different that API Gateways, and the similarities between the two will continue to grow over time, so predicts Marco Palladino, Chief Technology Officer of API Gateway provider Mashape.

The two technologies actually offer quite similar functionality, Palladino noted. API Gateways, such as Amazon Web Services‘ API Gateway or Mashape’s own open source Kong, have been primarily used over the last decade or so for mapping external traffic to internal resources, whereas the more recently developed service meshes — such as Lyft’s Envoy or Uber’s Catylist— have been primarily been on brokering internal resources in a microservices architecture.

“When you think of gateways, you usually think of a centralized layer, an extra hop in the network that is processing additional features. But that doesn’t necessarily have to be true,” Palladino said, speaking at MesosCon 2017, held last week in Los Angeles. Gateways can also offer an effective way to handle communications across microservices. “You can also run Kong alongside your existing microservices, getting rid of the extra hop and reducing the latency,” he said.

👁 Image

APIs have been a favored method of communication exchange for the past 10 years, and Docker made it easy to set a microservices architecture, in which applications and services are composed of smaller, exchangeable components. But these components need a way to find and communicate with one another. This is where API gateways come in.

API gateways “can become an abstraction layer that sits on the execution path of every request that goes to one of these microservices,” Palladino said.

The gateway consolidates the path to all of a system’s commonly used features, such as authentication or service discovery, which can be recognized by the gateway through plug-ins. “Plug-ins are effectively middleware functionality that you can dynamically apply on top of any microservice,” he said.

API gateways can also aggregate service requests to and from these features. The client can make one response, which the gateway can break into multiple service requests, saving the bandwidth of having the client make all the calls itself.  The gateway will also keep track of the requests.

Carving #Microservices from monoliths is like making chicken nuggets from a chicken, while keeping the chicken alive –@thefosk #MesosCon pic.twitter.com/medzXUITyb

— The New Stack (@thenewstack) September 14, 2017

As an organization starts breaking down a monolithic app into microservices, the gateway can also minimize the impact the resulting changes would have on the client itself. “The gateway can be that curtain that you put in front of the monolithic application. The client will deal with the gateway only, and you can decouple your monolithic app behind the curtain, and not have to worry about updating your clients,” he said.

“This is particularly useful if you do not control your clients,” he said.

Traditionally, API gateways have been used at the edge of an organization’s networks, handling traffic that was mostly between a monolithic application and outside clients. A microservices architecture, however, shifts most of this traffic to inside the internal network itself, as different microservices communicate among themselves.  “You still have the external client use case, but that becomes one of the many clients that are now consuming those microservices,” Palladino explained.

Built on top of the Nginx high-performance server software, Mashape’s Kong is the most widely used open source API gateway, with more than 200,000 running instance a month, Palladino boasted. With Kong, Nginx is extended with the middleware, which can be dynamically provisioned called through a JSON RESTful call.

👁 Image

TRENDING STORIES
Joab Jackson is a senior editor for The New Stack, covering cloud native computing and system operations. He has reported on IT infrastructure and development for over 30 years, including stints at IDG and Government Computer News. Before that, he...
Read more from Joab Jackson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.