introduction to servicestack
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, 2012TRANSCRIPT
Introduction to
ServiceStackFull (Web) Service Framework for .NET
Ash DCosta@SoftwareWeaver
www.Ashvil.net
About me• Founder and chief architect – Mobi Weave, Inc. • 20+ years experience with Intel, i2 Technologies,
IdentityMine, i3Connect and Wells Fargo
App Catalog
SharePoint on iOSMS BI on iOS
What is ServiceStackService Stack is a high-performance .NET web
services framework that simplifies the development of XML, JSON, JSV and SOAP
Web Services.
Evolution
XML-RPC
• XML-RPC.NET
SOAP
• ASP.NET WS
• WCF
REST
• ServiceStack
• Web API
RPC style
Customer GetCustomerByEmail(string email)
Customer GetCustomerBySSN(string ssn)
Customer GetCustomerByName(string name)
DTO styleCustomer GetCustomer (Customer customer)
DTO in - DTO out
Customer GetCustomer (Customer
customer)
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
Flow
Plug and PlayPlugins and other modules
Plugins
Formats
HTML
Razor
CSV
Razor Markdown
ProtoBuf
Authentication and
Authorization
Session
Registration
Validation Logging Your Own Feature
Authentication and authorization
Other Components
ServiceStack.Text ServiceStack.OrmLite
ServiceStack.Caching ServiceStack.Redis
Demo
Create an empty ASP.NET Web Application
PM> Install-Package ServiceStack.Host.Asp
NetAdd/Edit Services
Next Steps
Bugs and patches to github.com/servicestack
Support on Stack Overflow #ServiceStack
Docs at www.ServiceStack.net
Nuget ServiceStack package
CreditsThanks to Denis Bellot and the ServiceStack contributors
for an awesome productAlso thanks to ServiceStack for images
Questions
Appendix
MQ Architecture