Wick Technology Blog

Phil Hardwick

Written by Phil Hardwick

Kafka Avro message format in Micronaut Tests

December 29, 2019

Here’s a guide to using Avro message formats when testing a Micronaut service. Most of this code is not specific to Micronaut but about…

Testing Micronaut Kafka

December 28, 2019

When testing Kafka in Micronaut you can use embedded Kafka or use Testcontainers . Configuration To use embedded Kafka set these…

Micronaut Test Configuration

December 28, 2019

When configuring the test of a Spring Boot application, you may be used to using an application properties file e.g. in with the same…

Paging a http endpoint by recursion

August 01, 2019

Paging the results of REST API calls is a good opportunity to show recursion and how it differs from just using loops. Recursion requires…

Sensible feign client configuration

July 05, 2019

Feign clients make it easy to write restful client based on the Spring annotations you already know. It also includes integrations with…

Remembering learnings in Java with Terraform

June 18, 2019

When learning a new language it’s always interesting to see how it changes your perspective. It can show you how little you know, show you…

Distributed Spring State Machines

June 12, 2019

Race conditions are annoyingly difficult to deal with. When it works sometimes but not all the time, and timing of events needs to be…

When Kafka doesn't restart (memory allocation error)

June 09, 2019

It was both worrying and very interesting - Kafka went down and wouldn’t restart. I experienced not being able to restart kafka because of…

Producing messages from Spring Cloud Stream v2 which v1.3 can understand

May 07, 2019

When using microservices, each service is standalone. It can use whichever technology, language, version that it needs to, in order to…

Upgrading to use JUnit 5 for Spring Pact tests

April 12, 2019

When using the Spring Pact provider library provided by DiUS, verifying pacts that your Spring applications provide is super easy. The…

Testing postgres with Spring in concourse

April 11, 2019

When you are testing code which uses a database in Spring tests there are a few options: use an embedded database like h2 which emulates…