When comparing Sinatra vs ASP.NET Core, the Slant community recommends ASP.NET Core for most people. In the question“What are the best web frameworks to create a web REST API?” ASP.NET Core is ranked 8th while Sinatra is ranked 12th.
Ranked in these QuestionsQuestion Ranking
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.
Pro Fast and getting faster
Ability to host on IIS, Nginx, Apache, Docker, or self-host in your own process.
Pro Multi Platform
Can run on Windows, Linux and Mac (also Visual Studio Code editor).
Pro Built-in middleware
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.