Recording and playback of grpc

33 views
Skip to first unread message

ni...@tern.is

unread,
Dec 19, 2017, 4:25:56 AM12/19/17
to grpc.io
I'm interested in recording and playback of GRPC.

I would like to be able to record incoming requests and play them back later.

Some ideas for doing this include:

- Hooks in the library that would let us write each request to a file.
- Recording as pcap with tcpdump and doing re-assembly.
- Running a small proxy that records and forwards requests.

Has anything like this been implemented? Any ideas/ thoughts?

/Nils

spenc...@google.com

unread,
Jan 9, 2018, 7:28:01 PM1/9/18
to grpc.io
Ideas #2 and #3 that you listed will face problems when encryption is turned on. 

FYI there is a binary logging feature that is being actively worked on, which is essentially idea #1:

I don't have a concrete ETA unfortunately. If you must implement something this yourself I would suggest looking into the server and client interceptors API.
Reply all
Reply to author
Forward
0 new messages