Light Router Server
While we have provided a client module in light-4j for the service consumer to interact with the service provider, there are certain scenarios in which it cannot be utilized. For example, the consumer is a PEGA workflow application that cannot easily include client.jar or the consumer is a service that is implemented with DotNet which cannot leverage the client.jar
We are in the process of providing client modules for other languages and even providing frameworks for other languages; however, it takes time for these solutions to be production ready.
In order to resolve the current issue, we decided to provide a router for the clients that cannot leverage client.jar in light-4j. This is how light-router came to Light.
As this is a client router, it should be deployed on the same machine on the client and it can provide service discovery and route for all the services this particular client is accessing to. This architecture also saves one network level round trip as your client and light-router communication is local. Another option is to put it in your data center with a fixed IP address to discovery and route to the services dynamically deployed in the cloud.
When you have APIs exposed to the Internet for Single Page Apps or Mobile Native Apps, outside clients are not supposed to access APIs directly. In this scenario, you can put light-router into the DMZ to act as a distributed gateway to protect the internal APIs.
Compared with the client.jar direct connection, the performance with light-router can be bad. We will publish some benchmark data regarding this later. The cost of deploying another service and supporting it needs to be counted as well.
You can find more details about light-router in the service section.
Also, if you want to learn how to use it, there is a tutorial to show you steps to get it implemented.