July’s Chippenham Tech Chat meetup was a compare-and-contrast based on setting up a simple microservice in Java (using Spring Boot) and Ruby.
It was very interesting to see the two different approaches taken. There was very little Java code written, relying instead on automatic code generation to create a CRUD service. In contrast the Ruby service was much more manual in it’s approach - perhaps somewhat surprising given that one of the complaints about Ruby is often the amount of ‘magic’ in the code.
I liked the built-in health check and the discoverability of the API given by the Java solution, but preferred having the testing DSL and the more domain-driven approach of the Ruby solution.
The Ruby code is available for download below.