logo img

dk

  • |
  • About
  • |
  • |


Spring Boot - Where do the Default Metrics Come From?

July 17, 2019

Have you ever noticed a lot of default metrics Spring Boot with Micrometer generate for your app? If not - add actuator dependency to your project and hit /actuator/metrics endpoint where you will find useful info about jvm, process, tomcat, traffic and so on. Then add some cache, data sources or jpa dependencies and even more metrics appear. If you ever wondered how they end up there and where can we found explanation about what params do they describe - this is a post for you.

Kafka Connectors Without Kafka

June 27, 2019

In this article you will find basic information about change data capture and high level view of the Kafka Connect. Then see how one of the connectors (Debezium PostgreSQL) can work in standalone mode (without the platform) - moving CDC to another level of simplicity.

SpringBoot - Metrics with Micrometer and AWS CloudWatch

August 26, 2018

Some time ago I wrote a blog about how to configure CloudWatch metrics Spring Boot. It was all before micrometer and depended on Netflix Servo Metrics. Time was slowly passing and civilizations prospered but it’s still difficult to find info on how to make Spring Boot work with Micrometer CloudWatch. So here it goes.

Spring Boot ClassLoader and Class Override

January 5, 2018

Article explains the Spring Boot classloader (LaunchedURLClassLoader) and a way to temporarily override library classes with your custom ones.

SpringBoot - Metrics with Servo and AWS CloudWatch

October 28, 2017

Article explains how to send Spring Boot and Netflix Servo metrics to AWS CloudWatch. Morover it describes mechanisms making it happen. It also mentions problems I run into trying to do the same with Spring Boot and Spectator.
The Magic Behind the Spock

The Magic Behind the Spock

February 27, 2017

Spock rulez. Writing tests has never been simpler and more pleasant. All thanks to concise and informative syntax. But how is Spock syntax made possible?

Persisting Natural Key Entities with Spring Data JPA

November 20, 2016

From the dawn of time there is an ongoing discussion about using surrogate keys vs natural keys in your database tables. I don’t want to take any side here - just write about one consequence you’ll face when persisting natural key entity with Spring Data repository.

Should I go Eager or Lazy with JPA mappings?

November 11, 2016

The short answer is: go Lazy if you care about number of queries happening under the hood. “But what if I always need a particular relation?” - still go lazy, here is why.
Under The Boot

Under The Boot

October 11, 2015

Remember the times when we had to register dispatchers, viewResolvers, etc. to make our spring application web-app? Then there was @EnableWebMvc annotation and now even this is redundant. These days the only thing you need to do is to add ‘org.springframework.boot:spring-boot-starter-web’ dependency to your project and everything else is done automagically.

Transaction Troubles

September 24, 2015

Recently I’ve faced an interesting issue. Got transactional method saving entity to the database - method is called, no exception is thrown - but no data is stored into the db.

GOTO Amsterdam 2015

June 30, 2015

Amsterdam gave me a taste of everything - I guess this is what this city is about :). Organizers clearly
Spring I/O 2015 Barcelona

Spring I/O 2015 Barcelona

May 11, 2015

Few days ago 4F company gave me an opportunity to participate in Spring I/O conference in Barcelona. 2 days, 4 rooms and 41 speakers presenting technologies behind, within and around most popular java framework. Having some conference history, at some point I developed believe that at any given event, many presentations and lectures find their place in agenda only by mere accident. All the more I was curious how all of this will look under watchful (I hoped) eye of Pivotal.

Gradle Build Phases

April 27, 2015

Always hungry for changes, some time ago 4F company moved from Maven to Gradle. Most of the migration work went relatively smoothly. Surprisingly though, not every developer was eager to sacrifice his precious time on something as trival as build tools and with rapid googling for example based knowledge some mistakes were made. One of them can serve to decribe one of Gradle’s fundamental aspects - Build Phases.

Powered by Jekyll with Type on Strap