DEV Community

Cover image for Hexagon Toolkit 3.0 was released πŸŽŠπŸŽ‰
Juanjo Aguililla
Juanjo Aguililla

Posted on

Hexagon Toolkit 3.0 was released πŸŽŠπŸŽ‰

Hexagon is a toolkit for writing Web applications and REST APIs. You can check the details at: https://github.com/hexagonkt/hexagon

Release Highlights

  • Use same model and event handler for HTTP servers and clients (allowing the creation of middleware also for clients)
  • Add 'Before' handlers and short circuit 'On' handlers to improve DX (previously, all matching 'On' handlers were executed)
  • Exception handlers clear the handled exception to prevent further error processing, exception propagation is still possible through a parameter
  • 3.x releases will be source compatible (enforced in the build process). Experimental modules are excluded and their APIs may change
  • Native Image metadata inclusion to ease users' applications native compilation (tests pass in native mode at builds)
  • Update Jetty adapter to v12
  • Add Nima Adapter to take advantage of Java Virtual Threads (experimental)

Future Features

3.x releases will focus on extensions over the core functionality:

  • OpenApi contracts generation / enforcement
  • REST utilities for working with DTOs and ease integration tests
  • Serverless support (FaaS)
  • Messaging support (use the event handler to also support message queues)
  • New adapters
  • New middleware (callbacks / handlers)
  • Use annotation processing to allow a Spring / Micronaut DX (optionally)

4.0 release is a long shot and the main goals will be:

  • Add asynchronous handlers and support coroutines (partial developments done)
  • Support WASM and Native targets (right now, there is only a small proof of concept)

Top comments (0)