5 ms·
Being able to write C# instead of JS is a pretty big point IMHO.
by barrydahlberg 15y ago
Being able to write C# instead of JS is a pretty big point IMHO.
- lwat 15y agoWhat do you gain in using this that you could not already do (better) on .net?
- fleitz 15y agoYou don't gain anything what you lose is a bunch of overhead. It's the same advantages/disadvantages you get from sinatra vs. rails.
- lwat 15y ago.net is incredibly well optimised for web apps, with built-in connection pooling and countless other goodies. For anything non-trivial I'll bet that a normal .net application will blow this out of the water in terms of performance.
- bad_user 15y agoIt's not async and it is quite heavyweight. Your claim that ".net is incredibly well optimized" is true only for certain definitions. The output of a really simple ASP.NET MVC hello-world app is measured in a couple of hundred requests per second without even touching the database. If you do the same on top of Node.js or Netty or Twisted, you're speaking about tens or even hundreds of thousands of requests per second. For anything non-trivial I'll bet that a normal .net application will blow this out of the water in terms of performance. That's not true, not even if you're comparing ASP.NET with normal web frameworks, such as Ruby on Rails. You can get a lot of performance out of ASP.NET, but to do that you've got to rely on pretty ugly optimizations. To get a taste of what I'm talking about, check out this slightly old, but still relevant presentation: http://blog.whiletrue.com/2009/04/aspnet-mvc-performance/ http://blog.whiletrue.com/2009/04/aspnet-mvc-performance/ TL;DR the author went from 5.9 requests / second to 390 requests / second, but to do that they had to cut out many nice features of ASP.NET MVC that used runtime introspection and they also added caching, something which you do anyway in any other web framework available. Again, for some applications you can go fully async and speak about tens or hundreds of thousands of requests per second served by the same server.
- barrydahlberg 15y agoI have not looked at this framework in particular sorry, I was only really commenting on JS vs. C# here.