Microservices, Clouds, Serverless - all of this are nowadays buzz-words. It’s a trend of today’s software reality to break a monolith into microservices and deploy them to cloud. And how java developers deal with such things? With the help of Spring and Spring Boot, which become a major player, de-facto, a standard in the industry. But Spring, besides all the goodies it provides, was never designed with the Microservice approach in mind. But the most crucial thing - there are no real competitors to Spring & SpringBoot. Without good rivalry, further progress is slower (or even doubtful).
In my talk, we compare the Spring & SpringBoot with new java framework - Micronaut. We will see how less memory Micronaut can consume and how much faster is its startup time compared to a similar SpringBoot app. And also we will find out that the best practices and concepts from SpringBoot are valid citizens in Micronaut which makes a learning curve really short.
4. DISCLAIMER
Everything described here is true and complete to the
best of author’s knowledge.
All recommendations and inferences are made without
guarantee on the part of author.
The author disclaim any liability in connection with
the use of this information.
@ipreferespresso
4
5. ?
princess java
Hello, %username%!
I need youR help!
image src: http://starsmedia.ign.com/stars/image/article/834/834987/princess-peach_420_1194999440.jpg @ipreferespresso
5
6. Please,
only you can save me!
I was seized
and held hostage by
bloody enterprise
?
@ipreferespresso
6
image src: http://starsmedia.ign.com/stars/image/article/834/834987/princess-peach_420_1194999440.jpg
princess java
7. The time is short!
We must use
microservices to get
rid of that monster!
?
@ipreferespresso
7
image src: http://starsmedia.ign.com/stars/image/article/834/834987/princess-peach_420_1194999440.jpg
princess java
8. Maybe someone
or something
can help you?
?
@ipreferespresso
8
image src: http://starsmedia.ign.com/stars/image/article/834/834987/princess-peach_420_1194999440.jpg
princess java
24. Less Bugs,
Smaller Time-to-Market,
Less Complexity
@ipreferespresso
24
Spring Developer
25. But, hey! SOMETHING is wrong!
Spring doesn’t have that fireballs!
@ipreferespresso
25
Less Bugs,
Smaller Time-to-Market,
Less ComplexitySpring Developer
41. DESIGNED TO BE COOL
FROM THE VERY BEGINNING
MICRONAUT was designed
CONSIDERING PREVIOUS
SPRING AND GRAILS
EXPERIENCE,
BUT ALSO
with microservices AND
CLOUD in mind
@ipreferespresso
41
42. DESIGNED TO BE COOL
REACTIVE NATURE
Build on top of
by default use
event-loop model
@ipreferespresso
42
but
will switch to
pre-configured
I/O thread pool
when blocking is needed
43. DESIGNED TO BE COOL
@ipreferespressoimage src: https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=json
according to TechEmpower web framework
benchmark
Micronaut
is pretty solid in terms of
JSON serialization
Benchmark Round 17/ 2018-10-30
43
44. DESIGNED TO BE COOL
with cloud in heart
@ipreferespresso
44
P.S.The list described on the slide is not exclusive or full
79. instead of conclusion
Micronaut and Spring Boot ain’t foes.
They both solve the same problem - help
developer to focus on Business problems and not
on infrastructure.
And they both do it pretty well.
@ipreferespresso
79