Skip to content

Commit e659a25

Browse files
committed
Documentation : Rest and Transport Action Threading Model
1 parent 62e53cd commit e659a25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/internal/GeneralArchitectureGuide.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ were left unconsumed.
4242
6. The response is written to the `RestChannel`, either as a [single payload][RestToXContentListener] or a
4343
[stream of chunks][RestChunkedToXContentListener].
4444

45+
A Netty channel eventLoop thread executes step 1 to 3. The [RestChannelConsumer] delegates execution to a task manager thread, which processes
46+
the request and eventually returns control to the original event loop thread to write the response back to the Netty channel.
47+
4548
### Request interceptor
4649

4750
The [RestController] accepts a [RestInterceptor] that can intercept [RestRequest]s and add additional pre-handling. A single

0 commit comments

Comments
 (0)