Travis CI Codecov Codebeat Bintray

The atoms of your platform

Hexagon is a microservices library written in Kotlin. Its purpose is to ease the building of services (Web applications, APIs or queue consumers) that run inside a cloud platform

Get Started Now

Hello World

Simple Hello World HTTP example.

          package com.hexagonkt.http

import com.hexagonkt.http.server.Server
import com.hexagonkt.http.server.jetty.JettyServletAdapter

val server = Server(JettyServletAdapter()) {
    get("/hello") {
        ok("Hello World!")
    }
}

fun main() {
    server.start()
}
        

Features

Hexagon's high-level features.

Architecture

How Hexagon fits in your architecture in a picture.

Hexagon architecture diagram

Ports

Ports with their provided implementations (Adapters).

Port Adapters
HTTP Jetty, Servlet
Templates Pebble
Serialization formats JSON, YAML
Settings Environment, Files, Resources, URLs