The Hexagon toolkit is meant to provide abstraction from underlying technologies (data storage, HTTP server engines, etc.) to be able to change them with minimum impact.
Simple Hello World HTTP example.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Hexagon's high-level features.
Simple to Use: Hexagon is focused in allowing you to use the features you use the most in your daily coding in the easiest way.
Easy to Hack: The libraries are done to be lean and simple so you can tweak it to suit your needs instead relying on third parties.
Pluggable Adapters: Adding an adapter is just implementing the port's interface. You can code your own adapters from scratch or tune the existing ones.
Kotlin First: The library is coded in Kotlin for coding with Kotlin. No strings attached to Java (as a Language).
Modular: Each feature is isolated in its own module. Use only the modules you need without unneeded dependencies.
How Hexagon fits in your architecture in a picture.
Using this toolkit won't make your application compliant with Hexagonal Architecture (by its nature, no tool can do that), you have to provide a layer of abstraction by yourself.
Ports with their provided implementations (Adapters).
|HTTP Server||Jetty, Servlet|
|Serialization Formats||JSON, YAML|
|Settings||Environment, Files, Resources|