So it’s year 2015 and I’m taking a role in a new cloud service, helping to choose the right backend technology,
This is the summary of our requirements:
- Can quickly come up with some POC.
- HTTP driven.
- Native support for Async.
- Avoid frameworks that dictates specific code structure.
Here are few options we tried but decided to pivot and seek for alternatives,
Akka seems very promising, it feels lightweight, highly concurrent and distributed, Akka is based on actors pattern, an old pattern invented by Carl Hewitt and friends, promoted lately by Erlang,
We tried to create a POC with Akka, in conjuction with their new Akka Streams (which seems to replace Spray), both felt like a complete solution, but we decided to pivot out of it, I think I can summarize it in one sentence.
Although Akka seems to have support for Java, it’s just not a java project, Akka is written in Scala, and exposes Java APIs via bindings layers, I felt like its community is Scala oriented debugging code of Scala is something tough for people that plans to stick in the Java domain.
Vert.x is similar to NodeJs, written in Java, It is Netty based and works in a non blocking mode,
Vertx 3 seems to be very promising we found some advantages of it,
- We quickly could create a web app using Apex.
- Almost no configuration and deployment code is required to see real results.
- Completely written in Java (which was a big releaf after Akka)
- Scale out by levaraging an internal even bus.
But we decided to pivot again, but why?! because Vert.x makes certain irreversible decisions about how applications should be written, and working with the event bus was a nightmare, we tried to use Vertx Service Factory which eliminates most of the boilerplate code required to perform actions over the event bus, but it restrictions of passing only JsonObject and JsonArray frustrated us, We found ourself spending too much time on convertions between Vertx’s JsonObjects and application / core services models.
So what now? we’r still seeking for a better solution that hopefully will satisfy our needs.