Even though microservices are made up of different services, for end users, they should be a single, unified product. There are a lot of services that are designed to work in a lot of different ways, but there should be a single entry point for users. Thus, we need a gateway application since they form the frontend of your application. This is called the proxy pattern or gateway pattern.
They segregate internal contracts and services from external users. We may have application-level internal services that we shouldn't expose to external users, so these can be masked away. This also adds another level of security to the application.
We can use JDL to convert an existing monolithic application into a microservice gateway. If you want to create everything from scratch, skip the following note and just follow along.
We will start by converting the monolithic application configuration that we have generated into a microservice gateway application with JDL.