NodeJS Server Interceptors

263 views
Skip to first unread message

ma...@jargon.com

unread,
Dec 13, 2019, 7:23:14 PM12/13/19
to grpc.io
Hey all,

Just wondering if anyone knows if NodeJS Server Interceptors are implemented yet, or an extension which could add this functionality. I've been using them for Go and would appreciate to use them for a Node server as well. I know that client side was implemented a while ago here: https://github.com/grpc/grpc/pull/9842, and that there was a brief discussion of server side here: https://github.com/grpc/grpc/issues/8394, but was there any action off of these discussions?

If not, what would be the work involved in getting this added?

Thanks in advance,
Matt

Michael Lumish

unread,
Dec 16, 2019, 1:12:24 PM12/16/19
to ma...@jargon.com, grpc.io
In the time since that issue was filed, it is still unclear what a server interceptors API would look like, or even what problems it should solve. The first thing that would be needed to add this kind of feature would be a proposal similar to https://github.com/grpc/proposal/blob/master/L5-node-client-interceptors.md that describes the proposed API.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e8601ecd-2ee6-4e38-aeb2-f8b7b7b3433c%40googlegroups.com.

Abhishek Jain

unread,
Nov 1, 2021, 11:58:44 AM11/1/21
to grpc.io
Hey,
This seems like a really old discussion, but I wanna continue some of my inputs here in hopes that this gets implemented soon. There're some accepted proposals for other languages for server interceptors which might be useful 
Node.js Client Interceptors - https://github.com/grpc/proposal/pull/14

As far as the API goes I believe it should be as similar as possible to the Node.js client interceptor API (Probably even a unified API/proposal like other languages) and a stretch goal could be to take inspiration from the other language APIs. I haven't looked into the API designs yet, so not sure how different or similar they are, but I am willing to invest some time in it if it gets some traction.
Reply all
Reply to author
Forward
0 new messages