In one of my current projects we’re developing a web application which also has a couple of dozen batch jobs that perform all sort of tasks at particular times. These jobs produce quite a bit of logging output when they’re run, which is important to see what has happened during a job exactly. What we […]
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 […]
Booting your Microservices Architecture with Spring and Netflix: the aftermath
On 25 November Trifork hosted a webinar in which I gave a short overview of Spring Cloud and its support for the Netflix OSS stack, focusing on Spring Cloud Config and the support for Netflix’s Eureka, Ribbon and Hystrix. We’ve been investigating this stack over the last couple of months and are using parts of […]
Declarative multi-tenant security with Spring Security and Spring-MVC
It’s been a while since our last ‘from the trenches’ entry, and as I’ve found I am better at authoring blogs than convincing colleagues to do the same I figured I’d write you another installment. This time I’d like to focus on an easy yet powerful approach that we used to secure a multi-tenant Spring-MVC […]
Adding user info to log entries in a multi-user app using Mapped Diagnostic Context
Have you ever been in the situation where you were looking at one of your production log files and had a hard time seeing what log entries belonged to what requests? In a multi-user web application many requests are handled in parallel, so without additional context it becomes almost impossible to see how a single […]
From the trenches: Rendering Twitter Bootstrap form inputs for Spring-MVC with FreeMarker macros
This is the first entry in a new series of what we hope will become a regular appearance on our Trifork blog: “from the trenches”, with blogs that explain in a no-nonsense just-the-tech fashion how we applied certain tools, technologies, libraries and frameworks in our own projects to solve real-world challenges that we faced while […]
Putting the pedal to the Mongo metal
At Trifork we’re always looking to get the best performance out of our systems. As a 10gen partner that means that we also try to squeeze the most out of our MongoDB deployments in terms of read and write throughput. Experience has shown that it matters greatly whether those deployments are performed on dedicated hardware […]
Authenticating Dutch organizations via eHerkenning
Introduction In The Netherlands, citizens can interact with digital government services using a central username and password through an authentication scheme called DigiD. This helps these services to hook into a central registry of users, thus providing them with a single identity corresponding to a single username and password. DigiD is a widely spread and […]
CQRS intro on VMware’s blog
We’re pleased to inform you that VMware has asked Trifork to author a short article on CQRS for publication on their blog. This was motivated by our recent post on the Spring Insight plugin that we wrote for Axon Framework. In response to that post VMware has asked us if they could take over hosting […]