21
Raju Golla .Net Developer …………………………………….……. Dec 2012 VERSION 00-01

Service stack linkedin

Embed Size (px)

Citation preview

Page 1: Service stack linkedin

Raju Golla.Net Developer…………………………………….…….

Dec 2012VERSION 00-01

Page 2: Service stack linkedin

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

Page 3: Service stack linkedin

Stack of servicesSerializers

IoC container

ORM

Caching

Messaging

Security

Razor plug-In

Logging & profiler

Page 4: Service stack linkedin

Why ServiceStack?

Page 5: Service stack linkedin

Benchmarks

Page 6: Service stack linkedin

Benchmarks

Page 7: Service stack linkedin

Benchmarks

Page 8: Service stack linkedin

Benchmarks

Page 9: Service stack linkedin

Component Overview

Page 10: Service stack linkedin

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

Page 11: Service stack linkedin

Architecture

Page 12: Service stack linkedin

Architecture : Client

Page 13: Service stack linkedin

Philosophy

Martin flower’s DTO pattern

Page 14: Service stack linkedin

ServiceStack: Architecture

Page 15: Service stack linkedin

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)

Page 16: Service stack linkedin

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.

Page 17: Service stack linkedin

Views in ServiceStack

Page 18: Service stack linkedin

Views in ServiceStack

Page 19: Service stack linkedin

Installing Razor

Package manager console

PM>install-package -servicestack.RazorReference: razor.servicestack.netRegistar in Global.asax

Page 20: Service stack linkedin

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

Page 21: Service stack linkedin

Hands on