Microservices With Undertow: Dependency Injection

Watch out for the Undertow!


The previous article introduced Undertow and how its handler and thread pool system works. To create a full production quality microservice, we need to go above and beyond writing simple HTTP handlers. Most microservice frameworks use some kind of dependency injection and this article aims to introduce readers on how to address that need.

An Introduction to Microservices With Undertow

Introducing Undertow

This is a series of articles trying to cover a powerful and yet an uncommon Java-based NIO server called Undertow. Over the sequence of these articles, I’ll try to cover what Undertow is and how you can leverage it to build a full-featured Java-based production quality network service that provides a REST-based interface and supports modern messaging systems such as Kafka. These articles will purposefully avoid topics on using Servlet APIs, as Undertow follows a simple programming model based around a single abstract interface (SAM) called HttpHandler.

Litany of Distributed Computing Concepts in Java

If you’ve been building Java-based distributed systems, then you’d agree that no other platform has seen so many techniques of building distributed systems as Java has. In fact, most Java developers have used more than a couple of the following programming models for building such systems: