Tech Blog

Functional approach in C#

Coming across a Daily WTF blog post about an inefficient C code written somewhere and somewhen

Integrate JMS queue into a Spring Application

In this blog entry I describe a basic configuration you need to add to your Spring application for listening to jms messages on a queue.
I extend the book-inventory-boot example with a Jms Listener that receives messages on a queue and based on the Operation header in the message a Delete, Update or a Create is executed.

Domain Mapping with the ModelMapper library

Most of the applications define data abstraction layers. Usually the entities of the different layers show some similarities and mapping is required to transform one model to another.
The ModelMapper library can be useful to help you resolve this task.

Contract Driven REST API Design

Apidoc.js is a great inline documentation tool for RESTful web APIs.
It goes really well with Spring REST applications, you just define your API documentation as inline comments in your classes and execute the apidoc command to parse the source files and generate a static HTML documentation out of them.

Behaviour driven REST API development with Spring

Bob was sitting desperately in front of a bunch of failing JUnit tests intended to verify the part of the application he just refactored.
The one who wrote them - to be honest it could have been any of us at a certain stage of our life - had the idea that JUnit is somewhat different from production Java: there is no need for code conventions, clean code, comments or whatever that could make the maintainer's life easier.

Microservice Module Architecture with Spring boot

The Spring implementation is presented in a minimalist book inventory app. This app offers basic CRUD functionality and some search functionality for handling books via book title and author.
The book entities are persisted in an underlying SQL database (in memory) for the sake of simplicity. On the creation of a new Book it is registered via an imaginary 3rd party "register book" endpoint returning with an isbn number.