Tag Archives: java

Call on me, or Asynchronous REST

This article is a very simple example of a working asynchronous REST application, made with Spring Boot + Java 8. Spring Boot makes developing web applications almost ridiculously easy, but to simplify the task even more, I took an example … Continue reading

Posted in java, Programming | Tagged , , | Leave a comment

Spring Retry, because Winter is coming

OK, this is actually not about the winter, which as we all know has already come. It is about Spring Retry, a small Spring Framework library that allows us to add retry functionality to any task that should be retryable. Continue reading

Posted in java, Programming, Uncategorized | Tagged , , | Leave a comment

Interview questions: verify the braces

This is one of the easier coding tasks, but you still can meet it in some preliminary tech screening. The problem looks like this: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the … Continue reading

Posted in interviews, java, Programming, Uncategorized | Tagged , , , | 4 Comments

Cover your bases, or How to play the tests

Writing tests is an important part of a developer’s job, however, it can be boring. Especially if you are not a TDD fan and leave the tests for after the code is done, so that you have to write a … Continue reading

Posted in java | Tagged , , | Leave a comment

There’s something about… ThreadPoolExecutor

There’s definitely a lot to say about Executors in Java and ThreadPoolExecutor as a particular case, but what I recently ran into was a simple issue. An application gets a large stream of data from source to destination; it does so concurrently so as to speed up the process. Problem was, when I added the parallelism, the application started running out of memory very soon. Continue reading

Posted in java, Programming, Uncategorized | Tagged | Leave a comment

This is just Groovy, or stubbing chained method calls

This is just a quick note to self because I am prone to forget such things. This blog is my reminder right? I am writing down the things that may be of use later. So, today I spent a few … Continue reading

Posted in java, Programming | Tagged , , | Leave a comment

How to get a list of Tomcat session IDs using JMX and jconsole

Sometimes you want to check if a session is alive or already dead. There’s several ways how you can do it, but I want to tell about the one I found which looks rather simple – it’s by exposing catalina … Continue reading

Posted in java, Programming | Tagged , , | Leave a comment