Gateway application

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.

If you want to use the existing monolith application we created in the previous chapters and convert that, then make sure the application was created inside a folder such as e-commerce-app. Rename the online-store application folder to store. Then, navigate to the store folder and commit the changes. Now, create a new Git branch with git checkout -b microservice-conversion so that we can do a clean merge back to the master once we are done.

We will start by converting the monolithic application configuration that we have generated into a microservice gateway application with JDL.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.238.20