Is there a future for Scala Future? Or is there only ZIO?

Concurrency in Scala How plain Scala approaches concurrency? Future “monad” is the answer (actor model was also part of Scala but got deprecated in Scala 2.10). Everyone used or use Scala Futures. People coming to Scala from Java are thrilled by the API it offers (comparing to Java Future). It is also quite fast, nicely … Read more

AWS, SQS, Alpakka, Akka Streams – go reactive – Part 1

I am going to write a series of a few posts about the transition from the basic AWS ElasticBeanstalk SQS integration to the more generic, reactive model. Transition means that we have a current state that we want to change. So let’s start with the basic AWS SQS integration. Amazon SQS is a HTTP-based managed service … Read more

ElasticMQ – the SQS power available locally

Amazon Simple Queue Service (Amazon SQS) is a distributed message queuing service. It is similar to other well-known messaging solutions like RabbitMQ, ActiveMQ, etc. but it is hosted by Amazon. It is a really fast, configurable and relatively simple messaging solution. In my current company we strongly rely on the AWS infrastructure. One major Amazon cloud component … Read more

Goldman Sachs collections – nearly everything you want from collections in Java

Java collection framework is not that powerful as experienced Java developer would expect. For example, how do you sort a list? Simple answer would be to use java.util.Collections.sort() method with some kind of java.util.Comparator implementation. Additionally Guava Ordering support can be used. However, the solution is not exactly what object oriented developer looks for. Similarly to … Read more

Intellij Idea without a mouse

I decided to write this post after watching Hadi Hariri’s talk at Geekout 2014 called “Mouseless Driven Development” According to Hadi, it is possible to code in Intellij Idea without even touching a mouse. I can believe it. In the post I am going to present some nice tricks which I use on my daily work … Read more

Measure and find bottlenecks before they affect your users 1/2

Inspired by a few talks during the last 33rd Degree conference I decided to implement, in one of the applications I develop, metrics which allow developers or operation team monitor running application and possibly detect potential problems early on. After a quick investigation I decided to use the Metrics framework. What I expected was exposing at least some statistics … Read more