Analyze application performance with CDI Interceptors

Using interceptors for analyzing performance issues Do you know statements in your code like this? Analyzing how long the execution of a method takes is a cross-cutting concern. Cross-cutting concerns like transactions, caching or measuring latencies are aspects of a program that cannot be cleanly decomposed from the rest of the system. So they result in either code duplication or significant dependencies […]

Test JSON with a few lines of code

JSONassert helps you writing JSON unit tests You have to write a unit test and JSON is involved. Usually this will end up in a lot of lines of code. You know the situation, I bet. Here JSONassert comes into play. It allows to write JSON unit tests with just a few lines of code. For example checking an […]

Are we doing microservices?

Recently, an admin asked me if we are doing microservices. I thought about it for a few moments. And what I said comes here as a checklist. It’s a really simple test with quick yes or no. Single Responsibility Principle Is your service small and focused on doing one thing well? Domain-Driven Design Is your service […]