Raju Golla Dec 2012.Net Developer VERSION 00-01…………………………………….…….
ServiceStack: Overview An alternative to WCF, ASP.NET Web API •Focused on simplicity and speed •Code first •POCOs •Strong typing •Auto configuration of formats • XML, JSON, HTML, CSV and JSV (JSON-like Separated Values) •Endpoints • REST, RPC, SOAP
Stack of services Serializers Razor plug-In IoC container Logging & profiler ORM Messaging Caching Security
ServiceStack: Architecture No new concepts or constructs Built on top of ASP.NET IHttpHandlers Legacy ASP.NET providers abandoned Simple and clean Caching, Session and Authentication providers based on POCOS supports multiple back-ends
ServiceStack for client application Implement client applications replacing MVC or any other tool Create Views using Razor (Templating languge) Render views Use existing service as controller Don’t use controllers at all (static content)
ServiceStack for client application Respond differently for computer and Human(Browser) when computer requests for data return JSON, XML when human html (render), which is called into view.
ReferencesServiceStackhttp://www.servicestack.net/Githubhttps://github.com/ServiceStack/ServiceStackArchitecture overviewhttps://github.com/ServiceStack/ServiceStack/wiki/Architecture-overviewServiceStack VS ASP.NET Web APIhttp://stackoverflow.com/questions/9699083/servicestack-vs-asp-net-web-apiBinaries on nugethttp://nuget.org/packages/ServiceStackIoC containerhttp://funq.codeplex.com/Martin flower (Data Transfer Objects)http://martinfowler.com/aboutMe.html