Servicestack

19
Su ServiceStack greičiau ir patogiau GIEDRIUS BANAITIS @GBANAITIS ADROITI TECHONOLOGIES

description

Introduction to ServiceStack

Transcript of Servicestack

Page 1: Servicestack

Su ServiceStack greičiau ir patogiauGIEDRIUS BANAITIS

@GBANAITIS

ADROITI TECHONOLOGIES

Page 2: Servicestack
Page 3: Servicestack

How webservice usage transforms

Supplier webservice (server)

Reseller e-shop (server)

End-user (browser)

Content provider

Phone

TVTable

tPC

Webservice

Game console

Page 4: Servicestack

New challenges

Speed

Bandwidth

Maintainance

Scalability

Simplicity

Page 5: Servicestack
Page 6: Servicestack
Page 7: Servicestack
Page 8: Servicestack
Page 9: Servicestack

ServiceStack vs New Challanges

• Has fastest Serializers, ORM and IoC• Caching is first class citezenSpeed• JSON, JSV, CSV out of box, ProtoBuff• Message based, not chattyBandwidth• Services are reused as much as possible• Typed C# client• No generated code• Everything integrated

Maintainance

• REST• no third party dependenciesSimplicity• Runs on Linux• Supports Azure, AWS, Reddis, Memcache• REST, own Session infrastructureScalability

Page 10: Servicestack

Simple demo

Page 11: Servicestack
Page 12: Servicestack

OrmLite• Very lightweight

• Cross platform

• Pure SQL also Linq expressions

• Has nice API for performing updates

• Only 1:1 Table mapping

Page 13: Servicestack

Serialization• Has the fastest .NET JSON and JSV serializers, supports dynamic JSON

• CSV out of box

• Standalone – no dependencies

• T.Dump method

• Usefull extensions

• Protobuff and MsgPack

through plugins

Page 14: Servicestack

HTML and MVC• Markdown Razor, MVC Razor and HTML Report out of box• Mix Markdown with MVC• Change Views and Layouts at runtime• Bundling using node-js• Virtual File System• Can share Session, Caching, IoC, ORM, Redis, Config and Logging inside MVC

Page 15: Servicestack

All the Rest

• HTTP Utils

• Typed Clients

• Metadata, Swagger

• Logging API with adapters

• Validation

• Auto mapping

• Authentication

• Session

Page 16: Servicestack

WebAPI vs ServiceStack• ServiceStack is not only webservices• ServiceStack supports SOAP• ServiceStack runs on Linux• ServiceStack runs on IHttpHandler• ServiceStack runs on 3.5 .NET• ServiceStack has MQ endpoints

Page 17: Servicestack

Will it die soon?• 191 contributors• 1411 watchers• 317 forks

Page 18: Servicestack

Try it today

http://servicestack.net

Page 19: Servicestack

Q & A

?