|

Why I Like Spring III

If it’s not yet obvious, I’m a big fan of Spring, especially how easy Spring Boot works with Docker, since you can essentially take your war file & almost run it like an executable, it makes life so, so easy. I won’t make this post too long, I’m tired, you’re probably tired & I’ve already written two other articles about why Spring rocks.

Spring is quite beautiful in the way it encourages clean architecture, personally I LOVE the resource, service & repository oriented architecture. I mean obviously this style of architecture may not work for all applications out there, but for most REST API’s I think it’s fair to say it’s hard to go wrong.

If you look at this example that I’ve forked on Git, you can see just how easy it is, no need to worry about an application server, no need to worry about files such as jboss-deployment-structure.xml or other files like the web.xml file. In this specific example if you want to use a different port or specify a context path, you just update the pom file, specifically by tinkering with the jetty-maven-plugin , it’s that simple.

One thing that I worship about this solution exactly is that it’s not tying you into a specific vendor, yes it does use Jetty, but looking at documentation, to implement this solution with say Tomcat, it wouldn’t be all that different. In the repository that I’ve shared, personally I love that solution as I’m a big fan of JAX-RS, I just love the syntax & I’ve been using it for a couple of years now. Not to mention that this solution even illustrates how you can embed a database into the application.

However, while I do love Spring, I have decided to being looking into alternative technologies also, I simply don’t want to tie myself down to one framework & who knows, it may make me a better all round developer. I’ve specifically taken an interest in Quarkus, since it’s meant to be optimal for containerisation, specifically branded as “Supersonic Subatomic Java“.

Similar Posts

  • | |

    EDM – The UI

    In this post, I’d like to talk about what I feel is a very interesting idea, I’d like to take the time to talk about engineering some user interface that interacts with an event driven microservice for a back end, whether this back end is utilising some message broker or something else is irrelevant. For…

  • Ambitions: 2020

    First of all… Happy new year! 🥳 All round 2019 wasn’t too bad, career wise I was able to achieve working for an enterprise company, rather than a start up, which of course opened my eyes to new technologies & processes. For the following years I have a lot of ambitions, one being progressing to…

  • | | | |

    Microservice Architecture

    Microserivce, a fun buzzword, an alternative for SOA, however, terms aside, one thing that I personally love thinking about is the underlying architecture regarding microservices. From looking at more primitive solutions such as just having some cluster with a bunch of services, maybe if you’re lucky having some application gateway sitting in front of the…

  • JUnit: Code Coverage

    Let’s talk about unit testing, mocks, stubs, etc, all the good stuff, recently truth be told, I’ve begun to love writing tests. One of the more important points behind writing unit tests is to not only ensure that the application has as little bugs as possible, but I find that tests are a pretty good…

Leave a Reply

Your email address will not be published. Required fields are marked *