API Gateways: Do I Need One, None, or Many? (2024)

Video

Vanguard’s Casie Ropski (Technical Scrum Master), Sophia Trump, (Cloud Engineer), and Katie Zhuang (Cloud Engineer) discuss their journey through API modernization, shedding light on the complexities of managing API gateways.

As the industry increasingly leans towards adopting anAPI-first approach, the prominence of gateways can’t be overstated. APIs play a crucial role in modern technology, enabling businesses to deliver efficient services and functionalities. The decision of whether to implement one, none, or multiple API gateways can significantly impact an organization's API strategy.

The team at Vanguard found themselves at a crossroads on their API modernization journey, faced with the challenge of determining if an API gateway — or API gateways — were needed. Their experiences led them to uncover the advantages and potential drawbacks of employing one, none, or multiple API gateways.

Delve into the critical role of API gateways within the context of API strategy, and get an in-depth exploration of the fundamental concepts surrounding API gateways and pre-adoption considerations. And learn how a corporation of Vanguard's scale effectively maintains alignment among multiple API gateways within a unified strategy.

Shifting from monolith to microservices

With a substantial IT division, APIs have become vital in Vanguard’s shift from monolithic systems to APIs and microservices in the cloud.

API gateways act as intermediaries between API consumers and producers, simplifying API communication by serving as a single entry point for client requests. At Vanguard, API gateways offer control, flexibility, and the ability to maintain a loosely coupled microservices architecture, enhancing overall efficiency.

Do I need an API gateway?

To decide whether an API gateway is necessary, organizations need to weigh their unique requirements.

“You might be asking yourself if you even really need an API gateway, which is an important first thing to assess,” said. Katie Zhuang. “Generally, if you're foreseeing, you would need configurations for multiple API services to have security, optimization, or monitoring and logging activity, adding an API gateway to your architecture can be a great addition.”

Zhuang added that the value of having a gateway goes up in line with economies of scale. The more APIs you have, the harder they'll get to manage without a standardized platform.

Adding an API gateway becomes increasingly beneficial when managing multiple APIs. The gateway ensures uniform configurations for security, optimization, and monitoring, making it ideal for large-scale operations.

Do I need multiple API gateways?

There are some situations where a single API gateway can’t satisfy a team's needs.

As Vanguard matured in the API space, the team uncovered several mutually exclusive requirements that couldn't be satisfied by a single API gateway: including stable URLs, developer portals, global plugins, and API standardization.

1. Stable URLs for APIs

API gateways typically route traffic through specific URLs. However, for APIs undergoing frequent changes, having stable, unchanging URLs can be invaluable. These stable URLs, also known as persistent URLs, provide a way to call an API without worrying about its underlying architecture.

Vanguard introduced an external API gateway with stable URLs for their externally-facing APIs, ensuring a consistent and reliable access point for external consumers. However, as the majority of their APIs were for internal use, they required a solution to offer the same stability to their in-house developers.

The solution? A separate internal API gateway exclusively for these internal APIs.

2. Developer Portals

Developer portals are indispensable for internal teams with a plethora of APIs. They serve as a comprehensive directory, making it easy for developers to discover and access APIs.

While Vanguard's external APIs catered to specific vendors and didn't require a general developer portal, their internal developers could significantly benefit from such a portal. Vanguard addressed this need by creating an internal Kong API gateway with an integrated developer portal. Now, teams have an organized way to explore the full range of available internal APIs.

3. Custom Global Plugins

One unique aspect of API gateways is the ability to use custom plugins to enhance functionality.

However, some plugins need to be applied universally, impacting all APIs on a gateway. What if a particular API has unique requirements and doesn't align with these universal plugins? It would pose a roadblock to onboarding that API to the gateway.

To tackle this, Vanguard considered having separate API gateways to cater to different use cases. This approach allowed teams to take advantage of universally mandated plugins without sacrificing the unique needs of their APIs.

4. API Standardization

Vanguard imposes rigorous standards on its external APIs to ensure compliance, best practices, and high-quality code. They use a linter to check APIs for security and quality issues. However, applying the same level of rigor to internal APIs could potentially hinder development, especially when APIs are still in non-production stages.

To address this, Vanguard decided that internal APIs could deploy to their own separate gateway, free from the strict linting requirements. This allowed internal APIs to be more flexible in their development while still following best practices.

Challenges of multiple API gateways

However, implementing multiple gateways isn't without its challenges. It requires careful consideration of cost, latency, and security concerns. Teams must ensure they have a valid use case that justifies the investment and evaluate whether alternative solutions can serve their needs.

  • Monetary cost: This encompassed license fees, cloud costs, and staffing expenses related to both building and maintaining the gateway.
  • Added latency: The concern about potential delays caused by routing API calls through an additional step in the gateway, which could become more pronounced with the inclusion of custom plugins and business logic.
  • Single point of failure: API gateways introduce the risk of being a single point of failure. They can couple independent microservices, potentially disrupting the entire system if the gateway's configuration is compromised.

Vanguard weighed the financial, performance, and security considerations when deciding to use API gateways, ultimately opting to leverage their benefits while being aware of the associated risks.

“Ultimately, we decided the benefits outweighed the risks,” Sophia Trump said. “And today at Vanguard, we have multiple Kong API gateways that satisfy our unique use cases.”

The benefits of using multiple API gateways

There are many benefits of using multiple API gateways for both external and internal traffic.

For external traffic, benefits realized can include:

  • Authentication, authorization, and auditing— ensuring only valid users have access to Vanguard APIs and enforcing the standard in a centralized way.
  • Traffic management— to product underlying services behind the gateway, in particular, with server-level throttling to prevent attacks, and enforcing per-consumer level traffic quotas.
  • Threat protection— beyond the security measures baked into Kong, organizations can integrate with their own WAF (web application firewall) and use custom security plugins.
  • Analytics— via logging integration and Kong Vitals.

For internal traffic, benefits realized can include addressing unique use cases rather than cluttering a single API gateway with multiple types of traffic. In particular, for the team at Vanguard, this meant addressing an internal need identified for API standardization and stable URLs — and universal plugins that can be applied to calls all across services linked to the gateway.

Conclusion

The decision to implement API gateways ultimately depends on the specific needs of your organization. A well-thought-out strategy can enhance API management, improve security, and provide valuable insights into API performance. Whether it's one, none, or many, API gateways should align with your organization's unique requirements and goals.

Tags:API Summit

API Gateways: Do I Need One, None, or Many? (2024)

FAQs

API Gateways: Do I Need One, None, or Many? ›

There are many benefits of using multiple API gateways for both external and internal traffic. For external traffic, benefits realized can include: Authentication, authorization, and auditing — ensuring only valid users have access to Vanguard APIs and enforcing the standard in a centralized way.

When to not use an API Gateway? ›

For applications that consist of just a few microservices or that only need to handle a limited range of API requests, a gateway might be overkill. API gateways also might not work well for specialized types of application deployments like microservices running on edge IoT devices with limited CPU and memory resources.

How many requests can you have on API Gateway? ›

API Gateway has account-level quotas, per Region. The throttle quota is 10,000 requests per second (RPS) with an additional burst capacity provided by the token bucket algorithm. The maximum bucket capacity is 5,000 requests per account and Region.

What is the most widely used API Gateway? ›

The Top 8 API Gateways Include:
  1. Amazon API Gateway.
  2. Azure API Management.
  3. Boomi API Management.
  4. Google API Gateway.
  5. IBM API Connect.
  6. Kong Gateway.
  7. MuleSoft Anypoint Flex Gateway.
  8. WSO2 API Manager.
Jul 8, 2024

How many calls can API Gateway handle? ›

Note: API Gateway employs efficient caching algorithms so it doesn't call Service Control every time your API is called. So while the default limit is 10,000,000 per 100 seconds, your API can support a much higher volume.

Do I need multiple API gateways? ›

There are many benefits of using multiple API gateways for both external and internal traffic. For external traffic, benefits realized can include: Authentication, authorization, and auditing — ensuring only valid users have access to Vanguard APIs and enforcing the standard in a centralized way.

What are the disadvantages of API gateway? ›

Disadvantages of using API Gateway
  • Additional Complexity. Introducing an API Gateway adds an extra layer of complexity to your architecture. ...
  • Single Point of Failure. ...
  • Latency. ...
  • Vendor Lock-in. ...
  • Cost. ...
  • Maintenance Overhead. ...
  • Configuration Complexity.

What is too many requests to API? ›

Causes of HTTP Error 429: Too Many Requests

A 429 response is not technically an error — it's a response from a server, application programming interface (API), or plugin that tells the client application to stop sending requests because they simply don't have enough resources to accept it at this time.

Can an API handle multiple requests? ›

By utilizing async/await patterns and asynchronous I/O operations, your API can handle multiple requests concurrently without blocking threads, leading to improved responsiveness and scalability.

Is API Gateway high availability? ›

API Gateway provides an active/active high availability solution for the Admin Node Manager that supports multiple DMZ deployment patterns.

Is API gateway bottleneck? ›

While API gateways generally increase efficiency, they can introduce latency. The added processing steps for tasks like request routing, composition, and protocol translation can increase response time. Optimizing the performance of the API gateway will prevent it from forming a bottleneck.

How to pick an API gateway? ›

Considerations for Choosing an API Gateway
  1. Architecture – Where you deploy the API gateway can impact your choice of tooling, as can the decision to use built-in options from your cloud provider. ...
  2. Performance – Performance is critical for high-traffic websites and applications.

What is the main purpose of API gateway? ›

An API gateway manages incoming requests and routes them based on key factors such as request path, headers, and query parameters, among others. It allows for efficient distribution of traffic and ensures proper load balancing among target endpoints.

Are too many API calls bad? ›

Making frequent API calls can impact the performance and responsiveness of your application. Assessing size allows you to identify potential bottlenecks and optimize your code accordingly.

What is the difference between load balancer and API Gateway? ›

Both services can function together, although they do not require each other to work. For instance, the API gateway connects between microservices. The load balancer redirects multiple instances of a microservice component (to scale the deployment).

Does API Gateway use rest? ›

API Gateway allows you to build REST APIs consisting of resources and methods. A method reflects an API request submitted by a user and the corresponding response, while a resource is a piece of logic that applications can access via a resource path.

When not to use API keys? ›

Secure Authorization: API keys should not be used for secure authorization because they are not as secure as authentication tokens.

Do microservices always need an API gateway? ›

An application that utilizes a great number of microservices forces client apps to handle too many endpoints. Additionally, when a client app is coupled to internal endpoints, any future change to these microservices can significantly impact the client apps. An API gateway helps solve these issues.

Is API gateway mandatory? ›

An API Gateway is not mandatory because it depends on the specific requirements and complexities of the system.

What are the security concerns of API gateway? ›

API security can be jeopardized by a variety of risks, including vulnerability exploits, authorization errors, authentication issues, and denial-of-service attacks.

Top Articles
Five Dollar Notes | Sterling & Currency
​​Best UK Forex Brokers of 2024
Fiskars X27 Kloofbijl - 92 cm | bol
Jail Inquiry | Polk County Sheriff's Office
Manhattan Prep Lsat Forum
Algebra Calculator Mathway
What Are the Best Cal State Schools? | BestColleges
T Mobile Rival Crossword Clue
The Realcaca Girl Leaked
Sprague Brook Park Camping Reservations
Tyrunt
Music Archives | Hotel Grand Bach - Hotel GrandBach
biBERK Business Insurance Provides Essential Insights on Liquor Store Risk Management and Insurance Considerations
Items/Tm/Hm cheats for Pokemon FireRed on GBA
Indiana Immediate Care.webpay.md
Jack Daniels Pop Tarts
Classroom 6x: A Game Changer In The Educational Landscape
ocala cars & trucks - by owner - craigslist
Conan Exiles Thrall Master Build: Best Attributes, Armor, Skills, More
Mzinchaleft
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
Glenda Mitchell Law Firm: Law Firm Profile
Scout Shop Massapequa
Sea To Dallas Google Flights
Anotherdeadfairy
F45 Training O'fallon Il Photos
Sofia the baddie dog
Page 2383 – Christianity Today
Wood Chipper Rental Menards
Radical Red Ability Pill
Hwy 57 Nursery Michie Tn
Rek Funerals
Little Einsteins Transcript
Greyson Alexander Thorn
Nurofen 400mg Tabletten (24 stuks) | De Online Drogist
Mosley Lane Candles
Account Now Login In
Mg Char Grill
Bozjan Platinum Coins
Whas Golf Card
Supermarkt Amsterdam - Openingstijden, Folder met alle Aanbiedingen
How to Draw a Sailboat: 7 Steps (with Pictures) - wikiHow
Keir Starmer looks to Italy on how to stop migrant boats
Clausen's Car Wash
US-amerikanisches Fernsehen 2023 in Deutschland schauen
Is Ameriprise A Pyramid Scheme
Ghareeb Nawaz Texas Menu
Yale College Confidential 2027
Tacos Diego Hugoton Ks
Where and How to Watch Sound of Freedom | Angel Studios
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 5670

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.