I'm trying to make a high level visual of the arch...
# ktor
r
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
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
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
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.
Didn't realize there was a separate response pipeline. that's interesting.