Skip to main content

You are currently viewing the Trifork Blog, to view our full website please go to Trifork.com

Managing Spring Boot Microservices with Spring Boot Admin on Kubernetes

In this blog: ● Prerequisites ● Introduction ● The top cool features we like and use most ● The service journal ● Overall View, what is deployed ● Change LOG levels ● DB migrations ● Creating an SBA Application ● Dependency configuration ● Spring Boot Admin ● Spring Boot Application ● Configuration of the Admin […]

Dockerising your legacy integration tests

As most of you will know, every now and then you can expect the question ‘Can you help fix something on this ancient project?’ According to the Universal Software Ageing table, that means anything from last month to much, much older. I got such a question recently, being in-between projects, and this project fell squarely into […]

Spring Data Native Queries and Projections in Kotlin

Spring Data Native Queries and Projections in Kotlin

This blog describes the solution to mapping native queries to objects. This is useful because sometimes you want to use a feature of the underlying database implementation (such as PostgreSQL) that is not part of the JPQL standard. By the end of this blog you should be able to confidently use native queries and use […]

Integrating the AWS Parameter Store with Spring Cloud

I’ll tell you all my secrets (but I lie about my past) — Tom Waits – Tango till they’re sore tl;dr We’ve integrated the AWS Parameter Store with Spring Cloud so that it can be used as a secure configuration backend for services deployed to EC2, including ECS. This code has recently been merged in Spring […]

Exposing asynchronous communication through a synchronous REST API with Spring 5

Exposing asynchronous communication through a synchronous REST API with Spring 5

On my current project, we opted not to use REST for the communication between our services. Instead we make use of AxonIQ’s AxonHub, which acts as a specialized message broker. Messages can be of three types: Command – You want to change something Event – You want to inform others of something that happened Query […]

Service Discovery using Consul & Spring Cloud

Service Discovery using Consul & Spring Cloud

Introduction In one of our customer projects we are heavily using Spring Boot in combination with other Spring projects for our microservices. One of the more complex parts of microservices, especially when you are using them as fine-grained as meant to be, will be the fact that you need to setup and maintain the connections […]

Using Spring Session for concurrent session control in a clustered environment

For a long time, Spring Security has provided support to limit the number of sessions a single user can have concurrently. This prevents users from being logged in from many different devices at the same time, for example to ensure that they won’t share their credentials to a paid site with their friends and family. […]

Spring-AMQP and payload validation: some notes from the trenches

It’s been a while since I’ve written one of our from-the-trenches blogs: that’s mostly because I’ve been very busy in those trenches developing systems for our customers. This week I completed a Spring Boot-based microservice which is responsible for interacting with some 3rd party SOAP service: its own clients communicate with it by sending request […]