forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture overview
mythz edited this page Jun 11, 2012
·
25 revisions
Ultimately behind-the-scenes ServiceStack is just built on top of a set of Raw ASP.NET IHttpHandler's. The entry point for all ASP.NET and HttpListener requests is in the ServiceStackHttpHandlerFactory whose purpose is to return the appropriate IHttpHandler for the incoming request.
There are 2 distinct modes in any ServiceStack application:
- AppHost Setup and Configuration - Only done once for all services. Run only once on App StartUp.
- Runtime - Run on every request, uses dependencies, plugins, etc. defined in the AppHost. Each new request re-binds all IOC dependencies in your services.
ServiceStack's RestHandler shows what happens during a typical ServiceStack request:

