Application life cycle

Peak application are Middlewares centric. You can resume the flow like this. A user proceed a HTTP Request, then it is forwarded to your application HTTP stack which resolve it and return a HTTP response whenever possible.

Peak

If a Middleware issue a HTTP response, the application HTTP stack will be stopped and the response returned.

There is two outcomes possible when the main HTTP stack is resolved: