4

As per definition from https://channel9.msdn.com/Forums/TechOff/203516-Whats-a-proxy-stub

Proxy is the piece of code that doesn't perform any functions of its own, but instead is responsible for calling the real code.

But I am not clear about stub, What is stub, and what it does? What is the difference between two?

Roshan
  • 873
  • 12
  • 33
  • A proxy is a placeholder, or representative for something real. A stub is usually some code you write just to help you out with unit testing. Where did you get the quote from because context is important in this case? – CodingYoshi Feb 04 '18 at 18:01

1 Answers1

3

Assuming you're talking RPC[1] systems in web services( SOAP[2], REST[3] etc)

What is stub?

A stub for a remote object acts as a client's proxy (local representative) for the remote object.

what it does?

It is responsible for carrying out the method call on the remote object which is invoked by a caller to a method.

finn
  • 311
  • 2
  • 6