ServiceStack selfhosted performance on Raspberry - servicestack

I have a C# console application with a self hosted ServiceStack server (based on AppSelfHostBase).
It has both REST API (get and post) and a "standard" html/javascript website.
If i run the code under Windows, it works great, but if i run using RaspberryPI, it is slow and never got a response.
Any ideas?
Thanks
Leonardo Zambonelli

If you're using ServiceStack on Mono on Raspberry PI I'd recommend converting your project to .NET Core which will provide an instant performance improvement.
All .NET Core Apps are Console Apps and you can checkout the ServiceStack .NET Core Apps for examples of ServiceStack Apps running on .NET Core.

Thanks mythz!
I'm not worried about performance at the moment, but the main problem is that is not working at all! I don't need high performance because it's just a Rest Service that is used by one user(app) at a time.
The application is quite big, and converting to .net seems to be quite hard (we use a lot of serial port communication, and other stuff that are not present in .net core)
Added: just a quick note. On a Virtual Linux machine it works fine, so the problem seems to be only on Mono on Raspberry. If someone has any suggestion ( a part converting the project) it would be useful.
Thanks
Leo

Related

Proper way to install Application Insights in a Windows 8.1 Javascript app

I have a Windows 8.1 universal app written using javascript and would like to install application insights to capture telemetry data.
I've followed the instructions here and installed the Application Insights for Javascript Apps nuget package in my project.
It's partially working. I see page views coming through and some (but not all) of the exceptions I'm tracking using calls to appInsights.trackException. I don't get any crash reports.
Is there something I'm missing that's preventing crash reports and exceptions from being tracked? Is this the correct way to setup Application Insights for Windows 8.1 javascript apps?
Any help would be greatly appreciated. There doesn't seem to be much information out there on this scenario.
We don't support JavaScript for devices. Sorry.

Apportable: is using windows azure mobile services possible?

I am trying to build my ios application for android. Is there any chance to use windows azure mobile services framework in native objective-c code? Or should I use java and call my azure mobile services table items from it ? Thank you in advance.
If there's an Android version of azure, you could use BridgeKit to bridge the android library to objective c APIs.
http://docs.apportable.com/using-java
There are native Azure Mobile Services SDKs for all major mobile platforms (iOS / Objective-C, Android / Java, Windows Phone, etc). There are excellent tutorials available on the Azure website:
iOS: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-ios-get-started/
Android: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-android-get-started/
If you are looking for cross-platform development you could leverage Xamarin (C#), Sencha or PhoneGap which all have samples at the above site as well.
If you want to serve multiple platforms a better approach would be to create a service layer which works against your Mobile Service (f.e. build with ASP.NET Web API). This service layer would be called from your clients. The big advantage is that you don't have to write code multiple times and changes can be done at a central point. If you concentrate on RESTful services nearly every platform can call it.
Currently that seems to be a lot of overhead with an already finished iOS implementation, but imagine the situation when you want to support other platforms, such as Windows 8 or Windows Phone 8. At this point you have the same problems again.

Consuming web services from Windows Embedded Compact 7 (windows CE 7)

What are the options for consuming web services (hosted for example in Windows Azure) from Windows Embedded Compact 7?
WCF from Compact Framework 3.5 is one possibility, I guess. Are there any others?
Can I access web services directly from my Silverlight (C++) application?
Thank you.
I have not tried this myself, but you could try using SPROXY tool shipped with visual studio.
From MSDN: SPROXY.EXE is a command line tool that generates native C++ client code for accessing an XML Web service based on a WSDL description.

Hosting asp page on linux server

Is it possible to host an asp page on a linux server ?
In principle, YES, there are implementations of ASP which will run under Linux.
In practice, NO, your ASP application has probably been written for Windows and will use SQL server (which means you need a Windows box anyway to run that) and probably some COM classes which are unavailable.
But even if you COULD run it, the chances of introducing bugs by moving it to an alien platform is very high.
Also in my experience, the chances of an ASP app having bugs is very high to start with.
checkout ASP.NET mono project
how about this ? or Mono?
Years ago, I've heard of Chili!ASP. I don't know if that's still around anymore.

Differences between IIS 6.0 / Windows 2003 and IIS 7.0 / Windows 2008

I am considering currently to get a VPS for some of my development test. I found some VPS at a cheap price, which suits me as it's only going to be used as a sandbox.
So far I know it is possible to install .Net 3.5 on the windows 2003 without problems, if I am correct it will be also possible to use IIS6 for all my development including asp.net mvc.
I am looking here if there is anything that would prevent me from using IIS6. I looked on google and apparently the main thing about IIS 7 is the modular design for plugins. This shouldn't be too much of a problem as most of my devs will be for personnal use.
(PHP on IIS will run fine with IIS6)
Our devs are doing all their development against Win2k3 / IIS6 servers with .NET 3.5 and have not encountered any issues that would have been fixed with IIS7. Which is probably good since I've yet to stand up a 2k8 server.
For devs, I think the main thing IIS7 adds is the integrated managed pipeline that allows you to write .NET code for IIS instead of an ISAPI filter.
Shared configs, FastCGI, caching improvements, etc. I think of more as admin features. Useful, but won't really affect your dev time.
IIS7 will provide faster services, but IIS6 should be able to do everything you need (unless you need to run PHP or something of the sort on IIS).

Resources