When comparing Spring-boot vs Sinatra, the Slant community recommends Spring-boot for most people. In the question“What are the best web frameworks to create a web REST API?” Spring-boot is ranked 3rd while Sinatra is ranked 18th. The most important reason people chose Spring-boot is:
Boot is just a thin configuration layer over Spring Framework, as such it inherits all the strengths of Spring.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Inherits all of Spring's strengths
Boot is just a thin configuration layer over Spring Framework, as such it inherits all the strengths of Spring.
Pro Preconfigured starters
Pro Fast prototyping
Spring boot is built for fast prototyping.
Pro Kick down to Spring
Pro Small loading time
Since it has very few dependencies, the loading time for a Sinatra app is considerably small.
Pro Has only the bare minimum needed
Sinatra has taken an approach of having only the most useful components needed to build applications out of the box. It has simple routes along with a Domain Specific Language over a Rack layer.
Cons
Con Lacking in UI development
While actually very good and with a very complete and rich feature set to develop and maintain code on the server side, it still doesn't provide any rich framework for building good user interfaces.
Con Hard to scale well
Because it's rather small and minimalistic, scaling up is not very easy with Sinatra. You need a great deal of knowledge on libraries and modules that may be useful for your particular use-case. As your application grows larger it may be hard to keep things clean and minimalistic, losing a lot of the advantages that Sinatra has.