Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between gRPC and WCF?

Tags:

wcf

grpc

I know we are comparing 2 different technologies, but I would like to know pros and cons of both. WCF is present for almost a decade now. Didn't anything similar exist in java world until now?

like image 892
Jonna Avatar asked Feb 29 '16 07:02

Jonna


People also ask

Does gRPC replace WCF?

With WCF (Windows Communication Foundation) no longer being actively developed, gRPC (remote procedure call) appears to be the natural replacement when it comes to developing greenfield service applications on . NET Core and .

Is WCF obsolete?

Just like Web Forms and other . NET Framework technologies, your WCF applications will continue to work for a long time. In fact, WCF will likely work for the next two decades thanks to . NET Framework being considered part of the windows operating system.


1 Answers

At a very high level they would both appear to address the same tooling space.

However, the differences I can pick up on:

  • GRPC does not use SOAP to mediate between client and service over http. WCF supports SOAP.
  • GRPC is only concerned with RPC style communication. WCF supports and promotes REST and POX style services in addition to RPC.
  • GRPC provides support for multiple programming languages. WCF supports C# (and the other .net languages).
  • GRPC uses protobuf for on-wire serialization, WCF uses either XML/JSON or windows binary.
  • GRPC is open source

In short:

GRPC seems a much more focused services framework, it does one job really well and on multiple platforms.

WCF much more general purpose, but limited to .net for the time being (WCF is being ported to .net core but at time of writing only client side functionality is on .net core)

like image 150
tom redfern Avatar answered Oct 13 '22 02:10

tom redfern