Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ServiceStack - Lightning Talk - February 2012

ServiceStack - Lightning Talk - February 2012

Rob Gibbens

April 21, 2012
Tweet

More Decks by Rob Gibbens

Other Decks in Programming

Transcript

  1. what is servicestack? §  rest and rpc web services framework

    §  an alternative to wcf or web api §  built for high performance, using best practices §  powers careers.stackoverflow.com artek
  2. why servicestack? §  faster §  more testable §  no xml

    config §  encourages restful design §  poco §  wcf -> wcf rest -> ria services -> web api -> ?? artek
  3. simplicity §  code first §  no xml config, no code

    generation §  write once, support for xml, json, soap artek
  4. best practices §  code first, code only, pocos §  define

    api using dtos §  complete control over HTTP headers and serialized output §  decoupling message from operation and endpoint §  separation of dto from implementation §  highly testable §  validation and exception handling artek
  5. manageability §  serializes exceptions into response dto §  auto generate

    api metadata page §  auto html5 json report format §  auto csv format artek
  6. one .cs file §  metadata pages for all registered formats

    §  human friendly HTML report view §  built-in mini profiler §  sql profiling §  json, xml, jsv, csv, soap formats / endpoints §  strong-typed api (without code-gen) in monotouch / silverlight .net/ mono §  in memory / distributed session / caching artek
  7. one .cs file §  fluent Validation / automated exception handling

    §  registration & authentication §  basic / credentials / oauth twitter + facebook §  request / response filters artek
  8. get servicestack §  nuget §  .net 3.5 and above § 

    windows, mono, monotouch §  iis, xsp, or self hosted artek