In the previous chapters, we defined our domains, which are as follows:
SportNewsService
PoliticsNewsService
FamousNewsService
RecomendationService
UsersService
The first step is to choose a domain to apply our techniques. To do this, we will use the UsersService
. This domain is quite interesting because it has unique characteristics and is an excellent case to apply the techniques learned here.
Let's gather the tools that we will use for the composition of UsersService
. At first, we will use only one database table, but we know that the rest will be created.
Our database is a PostgreSQL and the structure of the first table is extremely simple, as seen in the following screenshot:
In the table users
, we have an ID that is the unique identification key, username, user email, and user password.
Our UsersService
will be written in Go; the tools we use in this programming language have already been described in Chapter 2, The Microservice...