2 ms·
Sadly, we still haven't fit this in and no pull requests to-date. A Mono pull request would cause heartfelt cheers.
by bhauer 14y ago
Sadly, we still haven't fit this in and no pull requests to-date. A Mono pull request would cause heartfelt cheers.
- streetwiseherc 14y agoIf you're interested, I have replicated the /json and /db services for a few of the popular ASP.NET options for creating JSON services. - mono-httphandler - mono-mvc-dapper - mono-mvc-nhibernate - mono-mvc-raw - mono-servicestack Notes: 1) All projects use MySQL as the database. 2) mono-httphandler uses bare-bones HttpHandlers and will probably be the best performer because there is no real "framework" involved. It mirrors the Java servlet example. As I believe JSON serialization is one of the key indicators of performance, it has the option of using 3 different JSON serializers popular in the .NET world: NewtonSoft, ServiceStack and the default ASP.NET MVC serializer from System.Web.Extensions.dll. At present the rest of the ASP.NET MVC projects are using the default JSON serializer and should probably changed to use the fastest option (as servlet uses Jackson) which is probably going to be ServiceStack's serializer. 3) Dapper is a micro ORM created by Sam Saffron of StackOverflow fame. More info here: http://samsaffron.com/archive/2011/03/30/How+I+learned+to+stop+worrying+and+write+my+own+ORM http://samsaffron.com/archive/2011/03/30/How+I+learned+to+st... 4) Nhibernate is a popular full-featured ORM that is similar to Java's Hibernate ORM. 5) mono-mvc-raw uses bare-bones ADO.NET calls for database access. 6) mono-servicestack uses the ServiceStack framework which is supposed to have top performance for creating REST web services using .NET. It has it's own micro-ORM and JSON serializer which are supposed to be high performers. More info here: http://www.servicestack.net/benchmarks/ http://www.servicestack.net/benchmarks/ 7) AFAIK, the new Web API is not supported on Mono. See here: http://stackoverflow.com/questions/14126855/is-mono-capable-of-hosting-asp-net-mvc-webapi-in-mod-mono-yet http://stackoverflow.com/questions/14126855/is-mono-capable-...
- streetwiseherc 14y agohttps://github.com/streetwiseherc/TechEmpowerFrameworkBenchmarks https://github.com/streetwiseherc/TechEmpowerFrameworkBenchm... I've run these locally and they appear to work. I'll test them on an EC2 instance later and write the setup/config scripts. When is the next time you're running the benchmarks?