Skip to content

Latest commit

 

History

History

statisticmicroservice

Statistic Service

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.

Statistic Service Deployment

Technologies

This microservice consists of following technologies:

Dependencies

Microservices:

Components:

  • Statistic Database
  • Event Bus

Local Deploy

On the local deploy, the application get started with profile dev with command gradlew bootRun.

Cloud Deploy

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.