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

ServiceStack - Lightning Talk - February 2012

ServiceStack - Lightning Talk - February 2012

6c67ac9df1543aa59cd14fa52882b7b6?s=128

Rob Gibbens

April 21, 2012
Tweet

Transcript

  1. ServiceStack Web services done right. Fast, clean, elegant. rob gibbens

    artek software
  2. 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
  3. why servicestack? §  faster §  more testable §  no xml

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

    generation §  write once, support for xml, json, soap artek
  5. speed §  uses the fastest IoC, json serializer, caching, orm

    artek
  6. artek

  7. artek

  8. artek

  9. artek

  10. artek

  11. 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
  12. manageability §  serializes exceptions into response dto §  auto generate

    api metadata page §  auto html5 json report format §  auto csv format artek
  13. demo

  14. 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
  15. one .cs file §  fluent Validation / automated exception handling

    §  registration & authentication §  basic / credentials / oauth twitter + facebook §  request / response filters artek
  16. support §  documentation §  jabbr §  forums §  sample apps

    §  trello artek
  17. get servicestack §  nuget §  .net 3.5 and above § 

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