TCP or HTTP
-
all the following is with respect to C#.Net In remoting for better speed we opt for TCP channel. why is TCP is faster than HTTP.
-
all the following is with respect to C#.Net In remoting for better speed we opt for TCP channel. why is TCP is faster than HTTP.
If you use Socket you get more speed.:-)
Manoj Never Gives up
-
If you use Socket you get more speed.:-)
Manoj Never Gives up
socket or remoting whichever be the case,but why is that TCP faster than HTTP
-
socket or remoting whichever be the case,but why is that TCP faster than HTTP
When sending over TCP you don't have to do much other than serialize the objects and chuck them over the connection. Using HTTP you have to use the HTTP protocol which takes more time and bandwidth. You also have the choice of the Binary Serialization and SOAP serialization. Binary makes the smallest output but SOAP is better for interop with other system or if you need the output to be human redable. In the end you need to choose which is the right combination for you based on what you need. If you need built in security and authentication then HTTP remoting via IIS is best, it also works well with firewalls. If your just working on an intranet or you really need the performance TCP will be fine.
-
all the following is with respect to C#.Net In remoting for better speed we opt for TCP channel. why is TCP is faster than HTTP.
Depending if you are on the local machine, you can even use IPC, which is alot faster than TCP or HTTP.
**
xacc.ide-0.2.0.57 - now with C# 2.0 parser and seamless VS2005 solution support!
**