Apache Kafka + Spring Cloud Task

Recently I was working on a piece of the project which required to perform a batch job, run application 1 time and once it successfully completed – terminate it. Spring Cloud Task fits perfect for this kind of requirement. Our usual stack of technologies is Spring Cloud Stream/Task and Apache Kafka. In my earlier posts, I showed you an example how to use Spring Cloud Stream + Apache Kafka. However, I never used Spring Cloud Task, so I start browsing for examples and… I found nothing. There is no example of Spring Cloud Task with Apache Kafka. At least I couldn’t find. So I dig into that and come up with a solution.
Continue reading “Apache Kafka + Spring Cloud Task”

Java Date few tips

One of the interesting challenges software developer experiences in his daily work life is – Time. Whenever it is related to project deadlines, benchmarking your application or Time in the application itself. In this post I will share with you few tips working with Date class in Java applications, specifically it’s limitations.
Continue reading “Java Date few tips”