Introduction

Modern microservices for Post-Kubernetes Era.

Monorepo(apps, libs) project to showcase workspace setup with multiple apps and shared libraries

Features

  1. Polyglot - Support multiple languages (java, kotlin, groovy)

  2. Support multiple app frameworks (apache-beam, cli, micronaut, quarkus)

  3. Support multiple serialization methods (JSON, Avro, ProtoBuf)

  4. A type-safe cascading configuration with konf

  5. Integrated with best testing frameworks (kotest , MockK)

  6. Build lightweight Docker and OCI images with Jib

  7. Build native binaries using GraalVM

  8. Cloud Native (Service Mesh, health checks, observability)

  9. Platform independent Observability instrumentation via OpenTelemetry

  10. Deployment automation with kustomize and Event-driven Autoscaling with KEDA

  11. End-to-End Google Cloud DevOps flow pop-kustomize

Quality

Sub Modules

Setup

Prerequisites

sdk rm java
sdk i java 17.0.6-zulu
java --version

sdk rm gradle
sdk i gradle
gradle --version

sdk i springboot
sdk i quarkus

IntelliJ Plugins

Contribution

Pre-commit checks

# spotlessCheck - Checks that sourcecode satisfies formatting steps.
gradle spotlessCheck
# spotlessApply - Applies code formatting steps to sourcecode in-place.
gradle spotlessApply

Run tests, lint, coverage for all subprojects

gradle check

Code Quality

# Generates code coverage HTML and XML reports for all enabled test tasks in one project.
gradle koverMergedReport

Software Composition Analysis (SCA) tool that attempts to detect publicly disclosed vulnerabilities contained within a project’s dependencies.

gradle dependencyCheckAggregate

Maintenance

# Update versions in libs.versions.toml file
gradle versionCatalogUpdate --interactive

Run

Docker

start app dependencies: postgres, redis

# start local sonarqube
docker compose up postgres # docker compose up -V postgres
# stop local postgres before restart again
docker compose down # docker compose down -v

start optional CI/CD infra dependencies: sonarqube, nexus

# start local sonarqube
docker compose up sonarqube # docker compose up -V sonarqube
# stop local sonarqube before restart again
docker compose down
# (optional) this remove volumes - needed when you upgrade image versions 
docker compose down -v
# start local nexus
docker compose up nexus

Dashboard access

  • SonarQube → Browser http://localhost:9000 → user: admin, password: admin

  • Grafana → Browser http://localhost:3000/plugins/redis-app/ → user: admin, password: admin

  • Redis Insight → Browser http://localhost:8001/

  • Jaeger → Browser http://localhost:16686

  • Kibana → Browser http://localhost:5601

  • Prometheus → Browser http://localhost:9090

See gradle commands for this project.

Apps

Apache Beam Pipelines

Explore Wordcount Pipeline

Explore Streaming Ingestion Pipeline

Explore Classifier Pipeline

Quarkus

Explore REST, OpenAPI, OpenID Connect, API

Explore GraphQL API

Kotlin-gRPC

Explore Account-gRPC API

Explore Kotlin-gRPC API

Explore Kotlin-gRPC API

Spring

Explore Spring-RSocket Chat APP

Explore Spring CRUD + Redis Search API

Svelte

Explore SvelteKit WebApp

Libs

Reusable libraries

Explore Apache Beam Kotlin Extensions

Explore Shared gRPC Components

Shared code within this repo

Explore Shared Core Code

Explore Shared Model Objects

Explore Shared Pipelines Code

Explore Shared Spring Services Code

Explore Shared Spring GraphQL Services Code

Explore Shared ProtoBuf Contracts

Explore Shared Test Fixtures

Inspiration

Last updated