I'm trying to make a high level visual of the architecture of a Ktor Application. Does this look accurate? At this point I'm not going into specifics about the phases, features, and engines, but is it safe to say this is an accurate picture of an entire application?
o
orangy
09/12/2018, 10:00 AM
Not exactly. ApplicationResponse is being built during call processing, and then a separate pipeline (response pipeline) is executed with the engine to send a response.
👀 1
d
Deactivated User
09/12/2018, 10:15 AM
The
ApplicationCall
also includes both the
ApplicationRequest
and the
ApplicationResponse
.
So I guess the arrow with
ApplicationCall
should be
ApplicationRequest
,
and maybe you can group somehow the
ApplicationRequest
and
ApplicationResponse
+ context inside an
ApplicationCall
box or something.
And there are different pipelines for requests and responses. And the arrows might be misleading regarding to the execution order
r
rharter
09/12/2018, 2:14 PM
After sharing this I did realize that, while in features you generally deal with the Call, that's just a container for the request, response and context, so replacing ApplicationCall with ApplicationRequest makes sense, I think.
rharter
09/12/2018, 2:15 PM
Didn't realize there was a separate response pipeline. that's interesting.