In this section, we will build a tiny Twitter-like application using Play and Lagom, which will contain the following features:
- Simple signup, login, and logout pages
- Ability to tweet
- Ability to follow friends
- A feed page containing our own tweets as well as our friends, this page is updated in real time when our friends tweet
The following diagram is a small overview of our desired application.
A couple of components are missing in the image and we will introduce them at a later stage. A quick summary of each microservice is as follows:
- front-end: This is a Play-based web application. It contains all our UI code. In this example, we are not doing server-side session management.
- friend: The friend microservice takes care of all the users in our system. It also contains information about the friends a user follows.
- chirp: The chirp, or tweet ...