What's New Here?Subscribe to RSS feed

Parallelization of a simple use case explained
Some time ago a friend of mine asked me about the possibilities of speeding up the following process: they are generating some data in two stages, reading from a database and processing ...

MyBatis Tutorial – CRUD Operations and Mapping Relationships – Part 2
To illustrate we are considering the following sample domain model: There will be Users and each User may have a Blog and each Blog can contain zero or more posts. The Database structure ...

Scaling Scala vs Java
In my previous post I showed how it makes no sense to benchmark Scala against Java, and concluded by saying that when it comes to performance, the question you should be asking is ‘How ...

Google Guava – Synchronization with Monitor
The Google Guava project is a collection of libraries that every Java developer should become familiar with. The Guava libraries cover I/O, collections, string manipulation, and concurrency ...

Java Intrinsics and Performance
The original question was How to count the number of 1′s a number will have in binary? I included a performance comparison of using Integer.bitCount() which can be turned into ...

Non-blocking I/O – discovering Akka
Here comes the time to follow some good practices when implementing actors. One of the most important rules we should follow is avoiding any blocking input/output operations, polling, ...

Two actors – discovering Akka
Hope you are having fun so far, but our application has serious performance defect. After measuring response times of the RandomOrgRandom class we developed in the previous part we ...

Guava’s Strings Class
In the post Checking for Null or Empty or White Space Only String in Java, I demonstrated common approaches in the Java ecosystem (standard Java, Guava, Apache Commons Lang, and Groovy) ...

MyBatis Tutorial – CRUD Operations and Mapping Relationships – Part 1
CRUD Operations MyBatis is an SQL Mapper tool which greatly simplifies the database programing when compared to using JDBC directly. Step1: ...

Remote actors – discovering Akka
Assume our test application became a huge success and slowly a single server is not capable of handling growing traffic. We are faced with two choices: replacing our server with a better ...




