llarsson / caching-grpc-reverse-proxy

A transparent caching reverse proxy for gRPC
GNU General Public License v3.0
1 stars 1 forks source link

Thanks for your idea #1

Open jeremyke opened 1 year ago

jeremyke commented 1 year ago

When i code GRPC Interceptors, I don't know how to put the data stored in the Redis returned to the caller. i am suddenly enlightened ,the idea from your code can solve this question better , thank you.

llarsson commented 1 year ago

Thank you for writing this message, it really made my day! :)

This code was written as part of research during my PhD, and the open access paper that explains how it works is here: https://arxiv.org/pdf/2104.02463.pdf

The real intelligence comes from https://github.com/llarsson/grpc-caching-interceptors/

Since I wanted it all to work without modifying the application's code (which is of course not what you necessarily need in real life), the way to make it work at all was via a transparent proxy, which I made via modifying the protobuf compiler a bit (see the commit history, it was rather small): https://github.com/llarsson/protobuf