My biggest concern is performance on my WCF and I know that using wshttpbinding is much slower than basichttpbinding but it is more secure since messages are encrypted.
But when I do speed performance
test, there is a significant performance difference.
My responses are sometimes up to 1 mb. So my question is that, is basichttpbinding is the way to go when I need performance but not security?
I am using anyway https, so it is also secure connection, or is there anyway I can optimize the performance and reach the basichttpbinding speed by using wshttpbiding?
Thank you for your answers
wsHttpBinding implements WS-Security stack. This stack add security on your message, but have slow performances.
You can use a TLS channel with a client and a server certificate. You will have the same level of security as WS-Security (Authentication, Authorization, Confienditiality, and non repudiation).
I generally use customBindings, instead of basicHttpBinding or wsHttpBinding. Is is more configurable. You can convert bascHttpBinding to custom bindings with this tool : http://webservices20.cloudapp.net/.
basicHttpBinding is like a customBinding, but with predifined values, like SOAP11 for the message version.