I am trying to learn/understand scala+lagom+kafka in detail. While searching through the web found a sample Twitter project that explains it pretty nicely (https://github.com/knoldus/lagom-scala.g8/tree/master/src/main/g8). In this project two Lagom microservices (consumer & producer) are created and they communicate over a kafka topic. However both the service run on the same server/machine.
I was wondering if it is possible to have communication between two lagom+kafka microservice running on two different servers/machines using kafka topic. I was able to achieve this configuration by simple kafka (without Lagom), by modifying kafka configuration files (zookeeper.properties and server.properties).
Questions:
- Is this configuration (producer and consumer on two different servers) possible using Lagom+Kafka.
- How do I add kafka configuration (zookeeper.properties and server.properties) inside lagom framework.
- Is there any project that utilizes above configuration. So that, I can use this as a reference to understand Lagom+Kafka in easily.