Skip to content

Can log phase plugins impact receive time of backend API proxy responses? #7754

Answered by flrgh
jeremyjpj0916 asked this question in Help
Discussion options

You must be logged in to vote

Hey @jeremyjpj0916 👋

I realize this is an old thread, but I wanted to drop my $0.02 in here just in case.

The log phase runs after the response headers and body have already been sent, so it shouldn't be able to cause latency between Kong and the downstream client--not directly, at least.

Not super relevant, but maybe of interest: any plugin that ships logs over the network actually schedules almost all of its work in a timer that runs after the log phase is complete--largely because the cosocket API (ngx.socket.tcp/ngx.socket.udp) is disabled during the log phase.

Most of the work that is done in shipping log data over the network is non-blocking, so it certainly could be the case that t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flrgh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment