Ratpack Framework

So, I heard that Java is not only about Spring or Java EE  🙂 There are also: Ratpack, Lagom, SparkJava, Akka…Below, you will find great informations about Ratpack 🙂 Check this first.

“Ratpack’s goals from docs  are:

  1. To be fast, scalable, and efficient (Ratpack server  is up in 1 second)
  2. To allow applications to evolve in complexity without compromise
  3. To leverage the benefits of non-blocking programming and reduce the costs
  4. To be flexible and unopinionated when it comes to integrating other tools and libraries
  5. To allow applications to be easily and thoroughly tested

Ratpacks’s goals are not:

  1. To be a fully integrated, “full stack” solution
  2. Provide every feature you might need in a neat box
  3. To provide an architecture or framework for “business logic”
When to use Ratpack?
  • Micro-services
  • High-througthput apps
  • Lightweight apps
  • Cloud Deployments”


  1. Rapid Java Web Application Development with Ratpack + github + video
  2. Devoxx Poland 2016 – Laurent Doguin – A practical RxJava example with Ratpack +github
  3. A CRUD REST API with Couchbase, RxJava and Ratpack
  4. Modern Java Web
  5. Ratpack & Spring Boot and here
  6. Sping & Ratpack Slideshare
  7. Great post About Ratpack by Rafael Salerno
  8. Testing [1], [2],[3]
  9. Often jOOQ is used with Ratpack, instead of Hibernate.

Interesting Stuff – Volume IX

  1. Java EE 8 & 9 Road map
  2. Load Balancing Microservices with Ha-Proxy
  3. Java 2016 videos
  4. JavaZone 2016 videos
  5. RxJava in legacy projects
  6. Spring 5: Functional Web Framework
  7. RxJava 1.0 vs RxJava 2.0 vs Reactor – Benchmarks
  8. Apache Solr Tutorial
  9. Performance and Availability pitfalls in the Microservices Architecture — CQK Top 10
  10. Announcing MicroProfile 1.0
  11. Swift 3.0 Released
  12. Golang UK Conference 2016 – videos
  13. Building a Modern Bank Backend (Golang)
  14. Go 1.8 performance improvements
  15. Making the Switch from Node.js to Golang
  16. {py}gradle, an open source Python plugin for Gradle
  17. Docker Swarm vs Kubernetes
  18. Live debugging Java with docker
  19. How Uber manages million writes per second using Mesos and Cassandra

Go Language – First Impressions

Just wrote something small with Go Language. Simple CRUD/webservice with MySQL using gorilla mux and sqlx, but it is almost plain golang. If anything wrong about it, tell me 😉

Here are my impressions about it:

  • it feels pragmatic from the beginning
  • probably you don’t need any frameworks at all to use it
  • simpler = better, simplicity as a feature
  • quite easy to write REST application
  • the build in package manager ‘go get’ is cool thing
  • compilation & running time of go server is much faster than java
  • it doesn’t eat much of resources
  • you can use many text editors or IDEs for it (IntelliJ has Go Plugin)
  • gofmt – one and the only code formatter
  • designed for special needs, not for everything
  • it is easy to find examples by googling it, good enough community
  • return multiple values from Go functions – nice feature
  • syntax not beautiful like Python but still good
  • the build in ‘testing’ package – ok, but too simple (testify looks better)
  • concurrency – believe that it is nice, but didn’t tried it yet
  • it is much different than Scala – complexity vs simplicity
  • I think that I could be very productive with Go if i will get used to it
  • Docker, Kubernetes, CoreOs,  Consul, Flynn, Lime, Google, Dropbox…
  • heard that golang is good for ‘real time apps’ – want to try it soon
  • it seems to be good for building command-line tools
  • it is different than Java, little bit tricky at beginning, but easy to start 😉
  • ‘good when you need to write something yourself instead of using library’
  • need to find idea for real project, because I kinda like Go


Univocity Parsers Library

Very good parsing library.
Official Website
Univocity Parsers – Maven Repository

public class ExampleCsvToPojoParser {
    private final Logger logger = LoggerFactory.getLogger(CsvToPojoParser.class);
    public <T> List<T> parseFileToPojo(Class<T> clazz, String fileName) {
        BeanListProcessor<T> rowProcessor = new BeanListProcessor<T>(clazz);
        CsvParserSettings parserSettings = new CsvParserSettings();
        CsvParser parser = new CsvParser(parserSettings);
        try (InputStream resourceAsStream = this.getClass().getClassLoader().getResourceAsStream(fileName)) {
        } catch (IOException e) {
            logger.error("Cannot read file " + fileName, e );
        return rowProcessor.getBeans();

Then you can put there class like this (which will match the file):

public class Users {
    @NullString(nulls = { " ", "" })
    @Parsed(field = "USER_ID")
    private Long userId;
    @NullString(nulls = { " ", "" })
    @Parsed(field = "USER_NAME")
    private String userName;
    //getters & setters

My programming books: Update

Time for update. My current, unordered book list but I wasn’t able to read them all, yet. 😉

  1. Core Java, Volume I and II; Horstmann
  2. Thinking in Java; Eckel
  3. OCA/OCP Java SE 7 Programmer I & II Study Guide; Sierra & Bates
  4. Effective Java; Bloch
  5. Java Concurrency in Practice; Goetz
  6. Spring Boot in Action; Walls
  7. Java EE 7 Development with WildFly; Ćmil, Matłoka, Marchioni
  8. The C Programming Language; Kernighan, Ritchie
  9. The C++ Programming Language; Stroustrup
  10. Effective Modern C++; Meyers
  11. Learning Python: Powerful Object-Oriented Programming; Lutz
  12. Scala for the Impatient; Horstmann
  13. Functional Programming in Scala; Chiusano, Bjarnason
  14. Seven Languages in Seven Weeks, Tate
  15. Algorithms Unlocked, Cormen
  16. Introduction to Algorithms, Cormen
  17. Design Patterns; Gang of Four
  18. Head First, Design Patterns; Sierra, Robson, Bates & Freeman
  19. Clean Code; Martin
  20. The Pragmatic Programmer; Hunt
  21. The Software Craftsman: Professionalism, Pragmatism, Pride; Mancuso

Wildfly CRUD example with Docker

I’m not that familiar with pure Java EE stack. My experience is mostly mixing Java EE with Spring. So, I just wanted to play with it. You can find it here:

Java EE
Apache Deltaspike (similiar to Spring Data)
H2 Database

It is just an example and far from real application. It will be required to add tests for sure and it would be interesting to do it this way:
Docker with Arquillian Cube

Continue reading