Hexagon is a microservices library written in Kotlin which pursose is to ease the building of services (Web applications, APIs or queue consumers) that run inside cloud platforms.
It is meant to provide abstraction from underlying technoligies (data storage, HTTP server engines, etc.) to be able to change them with minimum impact.
It only supports Kotlin, Java is not a targeted language for the framework.
TODO Mounting routers you can accomplish this
The Hexagon is a multiple module project. There are several kind of modules:
- The ones that provide a single functionality (which doesn’t depend on different implementations). Like Scheduling or Core.
- Modules that define a “Port”: An interface to use a feature that may have different implementations.
- “Ports”, which are ports implementations for a given tool.
- Infrastructure modules. Components used by the project itself, like the benchmark, the examples and the site generator.
The framework is build upon smaller pieces:
ports and adapters
Service (API, Web, Consumer)