-
Core Java
Which thread executes CompletableFuture’s tasks and callbacks?
CompletableFuture is still a relatively fresh concept, despite being introduced almost two years ago (!) in March 2014 with Java…
Read More » -
Enterprise Java
Spock VW: writing custom Spock framework extensions
Spock framework has multiple built-in extensions that support many core features like @Ignore and @Timeout annotations. But more importantly developers…
Read More » -
Scala
Dependency injection: syntax sugar over function composition
Quoting Dependency Injection Demystified: “Dependency Injection” is a 25-dollar term for a 5-cent concept. *James Shore, 22 Mar, 2006 Dependency…
Read More » -
Enterprise Java
Displaying progress of Spring application startup in web browser
When you restart your enterprise application, what do your clients see when they open the web browser? They see nothing,…
Read More » -
Enterprise Java
Server-sent events with RxJava and SseEmitter
Spring framework 4.2 GA is almost released, let’s look at some new features it provides. The one that got my…
Read More » -
Software Development
RESTful considered harmful
I don’t like RESTful principles and APIs. In recent years it is seen as universal protocol for inter-process communication, especially…
Read More » -
Core Java
Consuming java.util.concurrent.BlockingQueue as rx.Observable
Classical producer-consumer pattern is relatively simple in Java since we have java.util.concurrent.BlockingQueue. To avoid busy waiting and error-prone manual locking…
Read More » -
Enterprise Java
Writing a download server. Part VI: Describe what you send (Content-type, et.al.)
As far as HTTP is concerned, what client is downloading is just a bunch of bytes. However client would really…
Read More » -
Enterprise Java
Writing a download server. Part V: Throttle download speed
In the age of botnets that you can rent for few hundred bucks and run your very own distributed-denial-of-service attack,…
Read More »