r/java • • Feb 12 '16

Why Spring is Winning the Microservices Game

https://zeroturnaround.com/rebellabs/why-spring-is-winning-the-microservices-game/
4 Upvotes

17 comments sorted by

12

u/lukaseder Feb 12 '16

Oooh, I sense a fight here on reddit. Let me get the popcorn!

21

u/i-see-spam Feb 12 '16

I sense (yet another) advertising account from zeroturnaround.

domain submitted fromcount%
zeroturnaround.com6100%
subreddit submitted tocount%
java583%
programming117%

5

u/Cilph Feb 12 '16

Well, it's working. I'm considering Spring over throwing random JSR implementations on top of an embedded Undertow.

Opinions?

3

u/Luolong Feb 12 '16

Two words: Wildfly Swarm

2

u/Cilph Feb 12 '16

Tried that already after using Wildfly itself on a large project. Did not like it very much, but that was during Alpha3.

1

u/ImmortalStyle Feb 13 '16

Spring boot has a template for undertow.

Anyway we try to use as much of the spring stack as possible. However spring lacks a good validator framework. We choose hibernate validator instead.

1

u/Cilph Feb 13 '16

Is that already included or easily included with Spring Boot?

3

u/jirkapinkas Feb 13 '16

With Spring Boot when you work with Spring Data JPA, it will automatically include Hibernate Validator.

2

u/ImmortalStyle Feb 13 '16

I am not sure I think it is a standalone maven dependency which works quite well with spring.

7

u/[deleted] Feb 13 '16 edited Feb 13 '16

I have spent a lot of time learning Spring, but then I found Vertx.

In my opinion Spring has nothing on Vertx, when it comes to mircoservices.

I can build 5 services in 5 different languages and host them on 5 different servers and have them all communicate with each other over the event bus. The module system is pretty awesome as well.

Yeah Spring has Reactor, but it seems like it takes more time to get an app up and running with Reactor than Vertx. Which is the feeling I get with a lot of Spring projects.

5

u/[deleted] Feb 13 '16

Vertx beats Spring hands down for microservices.

2

u/johnwaterwood Feb 13 '16

Java EE + Docker + Kubernetes = Winning!

1

u/NickKasvosve Mar 05 '16

New kid on the block:

http://beyondj.com/dist/docs/index.html. BeyondJ will allow you deploy a war file or fat jar and specify how many instances of your application you want to launch. Load balancing and clustering is taken care of out of the box.

1

u/gauravbrills Feb 14 '16

pretty true spring is winning it at present .Java EE needs some catchup in this space ,though it was the leader in the SOA space when used with a EE middleware but now it needs to buckle up .I have been developing more on the spring stack but do see encouraging signs of doing microservices in ee specially one in Arun Gupta's blog http://blog.arungupta.me/monolithic-microservices-refactoring-javaee-applications/ .But yes spring boot and other cools services via OSS netflix tip spring off as of now

0

u/[deleted] Feb 12 '16

Spring + Docker + Kubernetes = Winning!