Fronting Ballerina services with an API gateway
Integrating services in a microservices application is essential as there are services that need to be connected. When client services are required to access a backend service, then the request should be routed to the target service. An API gateway is a component that is used to decouple internal services from external services. In this section, we will discuss building an API gateway with Ballerina and how to use the existing API gateway to handle requests.
Building an API gateway with Ballerina
An API gateway contains an API that exposes external services and applications to interact with. The API gateway provides a single entry point for client applications to connect with the backend application. The API gateway plays a major role in microservice architecture as it provides the following features:
- Routing requests: The API gateway endpoint needs to route requests to the corresponding services that can handle a particular...