[Python] Why are interceptors executed in reverse order?

73 views
Skip to first unread message

ben...@google.com

unread,
Apr 30, 2019, 6:25:07 PM4/30/19
to grpc.io

This is from the comments on the grpc.intercept_channel method: https://github.com/grpc/grpc/blob/f6c090863431b606700440d674eaca5948cffa73/src/python/grpcio/grpc/__init__.py#L1692


Just curious because it isn't very intuitive to me that they are given control in reverse order that they are provided. 

Lidi Zheng

unread,
Apr 30, 2019, 6:46:25 PM4/30/19
to ben...@google.com, grpc.io
The Python interceptor design doc has the description about the execution order ->  https://github.com/grpc/proposal/blob/master/L13-python-interceptors.md#client-side-implementation


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4c7ce9ab-39ab-41a2-95f3-fe595719d6df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Karl

unread,
May 8, 2019, 5:18:08 PM5/8/19
to Lidi Zheng, grpc.io
Thank you, Lidi!
Reply all
Reply to author
Forward
0 new messages