Spring Boot vs JAX-RS (Restlet) for dead simple microservices

I want to create really small stand-alone microservices that serve some REST operations that store data in memory (no persistence is required).

Therefore, I look at the framework for the easiest approach. After looking at the available JAX-RS implementations, Restlet seemed to be a good choice.

Also got Spring Boot recommended with comment, you don't need JAX-RS. I was a little embarrassed. Isn't JAX-RS the standard for Java REST applications? Wouldn't I need to combine Spring Boot with JAX-RS?

+4
source share
2 answers

, -.

:

Spring boot Rest. Spring boot , 5-6 .

Spring boot :

  • - ( tomcat/jetty, , )

  • ( ). JSON, REST. Spring boot .

  • , . WAR, (, -, Spring - ). Jars - Spring boot , java -jar <youjar>.

  • JMX - maven/ gradle , .

Spring , .

, , , , Spring. , Spring, ?

, , Jersey/Restlet .. - - REST Java. Spring boot , REST, , JDBC, Servlet API ..

,

+7

JAX-RS Java EE API REST , Java EE. , RestEasy Wildfly, Jersey, Wink ..
, Java, REST, JAX-RS. , Restlet JAX-RS, ( Spring MVC REST, Spring Boot).

Spring JAX-RS REST, Spring Boot POM , , .

0

Source: https://habr.com/ru/post/1628286/


All Articles