Skip to content

beercan1989/playground-kotlin-akka

Repository files navigation

Playground Kotlin + Akka

license build release commits since

Test project for Akka HTTP, Akka and Kotlin wrapped in Gradle

Features in version 1

  • CI testing in Travis with Java 8 and 11
  • Akka HTTP routing
  • Github releases via Travis

Features in version 2

  • Akka Typed actors processing requests
  • Basic unit tests for routes, actors and the glue between them
  • JSON handling of both rejections and exceptions

Features in version 3

  • Basic circuit breaker between the HTTP routing and the per request Actors

Features coming

  • Throttling requests
  • Configuration to support high throughput

How to

Run an instance

./gradlew run

Run tests only

./gradlew test

Build distribution

./gradlew build

Endpoints

curl -i 'http://localhost:8080/hello-world'

HTTP/1.1 200 OK
Server: akka-http/10.1.5
Date: Mon, 17 Dec 2018 23:57:01 GMT
Content-Type: application/json
Content-Length: 25

{"message":"Hello World"}