23
Introduction to ServiceStack Full (Web) Service Framework for .NET Ash DCosta @SoftwareWeaver www.Ashvil.net

Introduction to ServiceStack

Embed Size (px)

DESCRIPTION

Service Stack is a high-performance .NET web services framework that simplifies the development of XML, JSON, JSV and SOAP Web Services. This presentation was given at the Silicon Valley Code Camp on Oct. 6, 2012

Citation preview

Page 1: Introduction to ServiceStack

Introduction to

ServiceStackFull (Web) Service Framework for .NET

Ash DCosta@SoftwareWeaver

www.Ashvil.net

Page 2: Introduction to ServiceStack

About me• Founder and chief architect – Mobi Weave, Inc. • 20+ years experience with Intel, i2 Technologies,

IdentityMine, i3Connect and Wells Fargo

Page 3: Introduction to ServiceStack

App Catalog

SharePoint on iOSMS BI on iOS

Page 4: Introduction to ServiceStack

What is ServiceStackService Stack is a high-performance .NET web

services framework that simplifies the development of XML, JSON, JSV and SOAP

Web Services.

Page 5: Introduction to ServiceStack

Evolution

XML-RPC

• XML-RPC.NET

SOAP

• ASP.NET WS

• WCF

REST

• ServiceStack

• Web API

Page 6: Introduction to ServiceStack

RPC style

Customer GetCustomerByEmail(string email)

Customer GetCustomerBySSN(string ssn)

Customer GetCustomerByName(string name)

Page 7: Introduction to ServiceStack

DTO styleCustomer GetCustomer (Customer customer)

Page 8: Introduction to ServiceStack

DTO in - DTO out

Page 9: Introduction to ServiceStack

Customer GetCustomer (Customer

customer)

Page 10: Introduction to ServiceStack

Call via HTTP

http://server/Customer/<<SSN>>• Route(url) contains SSN

http://server/Customer?SSN=32453• Query string contains SSN

http://Server/Customer• Post Data -> Customer JSON

http://Server/Customer• Form data -> Customer data

Page 11: Introduction to ServiceStack

Flow

Page 12: Introduction to ServiceStack

Plug and PlayPlugins and other modules

Page 13: Introduction to ServiceStack

Plugins

Formats

HTML

Razor

CSV

Razor Markdown

ProtoBuf

Authentication and

Authorization

Session

Registration

Validation Logging Your Own Feature

Page 14: Introduction to ServiceStack

Authentication and authorization

Page 15: Introduction to ServiceStack

Other Components

ServiceStack.Text ServiceStack.OrmLite

ServiceStack.Caching ServiceStack.Redis

Page 16: Introduction to ServiceStack

Demo

Create an empty ASP.NET Web Application

PM> Install-Package ServiceStack.Host.Asp

NetAdd/Edit Services

Page 17: Introduction to ServiceStack

Next Steps

Bugs and patches to github.com/servicestack

Support on Stack Overflow #ServiceStack

Docs at www.ServiceStack.net

Nuget ServiceStack package

Page 18: Introduction to ServiceStack

CreditsThanks to Denis Bellot and the ServiceStack contributors

for an awesome productAlso thanks to ServiceStack for images

Page 19: Introduction to ServiceStack

Questions

Page 20: Introduction to ServiceStack

Appendix

Page 21: Introduction to ServiceStack

MQ Architecture

Page 22: Introduction to ServiceStack
Page 23: Introduction to ServiceStack