Polyglot Maven: Kotlin instead of XML
What is Polyglot Maven? Most people assume that their Maven build logic should always be written in XML. What most people don’t know is that Maven allows extending the build tool itself using core extensions, which were significantly improved in Maven 3.3.1. Core extensions as…
Docker Swarm, persistent connections and Spring Boot graceful shutdown
The problem Spring Boot containers still receiving requests after a shutdown is triggered in Docker Swarm, leading to errors. Background We have a production environment with Docker Swarm, based mainly on Spring Boot microservices. The containers communicate to each other using HTTP (with RestTemplate) through…
Angular lifehack: reactive component input properties
From the moment I started working with Angular (and I don’t mean AngularJS) I loved the framework. I experienced the same thing with Reactive Programming using RxJS. The cool thing is that Angular and RxJS go very well together. So, as you might expect from…
Sharing Angular modules like a boss
What forRoot and forChild have to do with lazy loading You just created a beautiful Angular component. Now, being the exemplary developer that you are, you want to share it with others. In Angular, you achieve this by moving it to a separate NgModule. The…
Drag ‘n Drop in Angular: Part 1 – The Draggable Directive
The first part of this series starts with the foundation: the draggable directive. This directive has only one responsibility: tracking the dragStart, dragMove and dragEnd events. Background To have the ultimate freedom, I recommend to stay away from the HTML5 Drag and Drop API. Of course, HTML5…