3logy
3logy

Reputation: 2712

What is the purpose of generating an Entity into the Jhipster Gateway?

I saw in many tutorials that we need to go back to gateway and generate an entity after generating a microservice application with the same entity.

Can someone explain me, the architectural benefits of doing so?

What is the goal of generating those entities again in Gateway?

Upvotes: 1

Views: 247

Answers (2)

Jochen Haßfurter
Jochen Haßfurter

Reputation: 915

You can use different ways for different purposes to reach the service a microservice is offering to you. As mentioned here you don't have to use AngularJS or Angular, but you can also use React and/or Ionic.

In general you can use more than one gateway to all or only a choice of microservices per gateway (a very good example implementing different gateways is shown here).

Upvotes: 0

Pierre Besson
Pierre Besson

Reputation: 740

One of the points of doing that is to implement the Backend for Frontend pattern. Basically you proxy all calls from your front-end to your microservices through the gateway. For convenience reasons the frontend is packaged together with the gateway. JHipster just adapted the exisiting entity generators from monoliths to let users generate the backend and front-end of an entity separately on microservices and gateways respectively. Of course this is an optional feature and you are free to use it the way you want.

Upvotes: 2

Related Questions