Dynamic Proxy vs Static Stub in terms of Performance
843834Aug 9 2004 — edited Sep 9 2004According to Sun's claims, the stub client should be faster than dynamic proxy client because both wsdl and client objects are generated at compile time. It was true if you take into account the creation time of client objects. But it seems the actual method invocation on stub client object is much slower than that on Dynamic Proxy objects (two times slower in my 'sayHello' test).
In most cases of C/S software design, the client objects are prepared during program startup time and raely generated again, so does it mean that Dynamic Proxy model is more suitable for real world web services?
I've seen an opinion that dynamic proxy is recommended only for cases that use primitive types, it is the static stub's area if you have complex types
Please give your opinion