The Statistic Service backend is a Spring Boot application. It is responsible for keeping statistic over blog activities, such as viewing a blog post.
On startup it loads the configuration of the Config Service and subscribes to the Event Bus
to get the events.
To store the statistic data, it uses the Statistic Database
, a Google Cloud Datastore.
This microservice consists of following technologies:
Statistic Database
Event Bus
On the local deploy, the application get started with profile dev
with command gradlew bootRun
.
The following steps are made for cloud deployment:
- create service account and secret
- build
- create docker image
- push docker image to google cloud
- create deployment and service in kubernetes cluster
- actualize deployment
For further information have a look at the files setup-cloud-microservice.bat
& setup-cloud-microservice.sh
as they are being executed.