kmandalas / spring-boot-yaus

Spring Boot native app demo (Yet Another URL Shortener with Redis)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-boot-yaus Java Spring Redis Docker

Spring Boot native app demo (Yet Another URL Shortener with Redis).

  • Spring Boot version: 3.0.0 (RC2)
  • Java version: 17
  • Build tool: Maven

Disclaimer: the demo app is an over-simplified URL shortener for the purpose of testing HashiCorp Nomad's Horizontal Application Scaling capabilities with a Spring Native app as scaling target (an app that has some footprint and is not a simple "Hello World" case). You can read all about it on my Dzone article Auto-Scaling a Spring Boot Native App With Nomad. If you are interested in building an actual URL shortener clone, check System Design approaches like this one.

build

Run mvn -Pnative spring-boot:build-image

This will take some time ⏳ since we are building a GraalVM Native Image.

run

docker-compose up

References

About

Spring Boot native app demo (Yet Another URL Shortener with Redis)


Languages

Language:Java 57.3%Language:HCL 42.7%