smocker icon indicating copy to clipboard operation
smocker copied to clipboard

If TLS/HTTPS is added, what about gRPC support?

Open comerford opened this issue 3 years ago • 2 comments

I realise it is not as easy as just dropping in a protobuf and gRPC library, but given that smocker is written in Go, I think it is in an excellent spot to be able to mock gRPC services too. The only options I know of for this are commercial and (the one I have actually seen) Java based. I think this would be a very attractive feature, especially for people writing Go based services (like we are) which tend to use gRPC over REST a lot.

comerford avatar Jan 11 '22 11:01 comerford

Hi, We (me and @gwleclerc) have not added gRPC support for the simple reason that we've never used it :D I'm not sure we'd be able to implement a good user experience, or useful features for that matter, for a technology we don't actively use. In comparison we dogfood a lot what we do on Smocker as it currently is.

I agree it would be a great feature, but we're not ready to implement it yet.

Thiht avatar Jan 11 '22 13:01 Thiht

That's fair - we are only starting to use it ourselves (we have to implement gRPC in C++ first - ick) but it is very prevalent in Golang in general. While researching options, I found this:

https://github.com/Adven27/grpc-wiremock

That's an interesting approach, it translates to HTTP so that the original mock server can still be used as usual

comerford avatar Jan 11 '22 13:01 comerford