Seven tips to be happy as a Java Developer (or at least less sad)

Most Java Developers still are trapped working in Banks. These developers cannot simply stop writing bureaucratic code. If you already identified yourself, unfortunately, this post isn't for you, I'm so sorry, you're completely lost, but don't worry, I'm pretty sure there's a special place in heaven for people like you. On the other hand, there are a few Java developers who could escape the agony of writing "enterprise" Java code and started writing Kotlin, Scala or even a non JVM language. If you are a developer like this…

Keep reading

Building microservices with Akka HTTP and MongoDB

It's been a while since my last post, but, here I am again. You probably know that both Akka HTTP and MongoDB Scala Driver are reactive, so, they're a good way to go when we talk about highly scalable microservices, and, since I've playing with both lately, I guess it's fair to show a simple REST application using them. Also, this example uses Fongo, a fake in memory MongoDB written in Java, to help us create our tests and not worry with our database access. Well, let's start then. build.…

Keep reading

Building microservices with Kotlin and Spring Boot

It's been a while since Kotlin arrived. Kotlin is a JVM language created by JetBrains developed to be interoperate with Java libraries and apis. What draws attention about Kotlin is its simplicity. If you find Java too verbose, you also will be interested in Kotlin because it is possible to transit between both languages easily. Okay then, this post is supposed to be very short, so, let's begin. We are going to build a simple crud app using Spring Boot, specifically Spring Boot Data Rest and use Kotlin (of course)…

Keep reading

Building microservices with Finatra and Slick

I've been away for a while and I've been playing with Finatra, so, I decided to write this post because I really enjoyed using it. Lately I've been using Scala a lot in my personal projects and even for testing my Java applications (it is much better than using JUnit, believe me), so, I also tried a few scala web frameworks out and I found out that Finatra is the easiest one (at least for me). First of all, what is Finatra? Well, it is a web framework created by…

Keep reading

Deploying and running Docker containers on Marathon

Last article I explained how you can build your Mesos infrastructure, so, from here I'd assume you have it working already. First of all, we are going to build a simple application. It is going to be a Java application running on a Docker container, but, you can deploy whatever you want. build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.github.rholder:gradle-one-jar:1.0.4' } } apply plugin: 'java' apply plugin: 'gradle-one-jar' repositories { jcenter() } task uberJar(type: OneJar, dependsOn: build) { mainClass = 'hello.marathon.Main' archiveName = 'hello-marathon-all.jar' } dependencies { compile 'com.…

Keep reading