Upload
raju-golla
View
702
Download
0
Tags:
Embed Size (px)
Citation preview
Raju Golla.Net Developer…………………………………….…….
Dec 2012VERSION 00-01
ServiceStack: OverviewAn 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 servicesSerializers
IoC container
ORM
Caching
Messaging
Security
Razor plug-In
Logging & profiler
Why ServiceStack?
Benchmarks
Benchmarks
Benchmarks
Benchmarks
Component Overview
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
Architecture
Architecture : Client
Philosophy
Martin flower’s DTO pattern
ServiceStack: Architecture
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 controllerDon’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, XMLwhen human html (render), which is called into
view.
Views in ServiceStack
Views in ServiceStack
Installing Razor
Package manager console
PM>install-package -servicestack.RazorReference: razor.servicestack.netRegistar in Global.asax
ReferencesServiceStackhttp://www.servicestack.net/
Githubhttps://github.com/ServiceStack/ServiceStack
Architecture overviewhttps://github.com/ServiceStack/ServiceStack/wiki/Architecture-overview
ServiceStack VS ASP.NET Web APIhttp://stackoverflow.com/questions/9699083/servicestack-vs-asp-net-web-api
Binaries on nugethttp://nuget.org/packages/ServiceStack
IoC containerhttp://funq.codeplex.com/
Martin flower (Data Transfer Objects)http://martinfowler.com/aboutMe.html
Hands on