开发者

WCF[Internet scenario]. Fastest way transmit\serialize(de) data

My wcf is hosted by IIS and used basicHttpBinding. My common data is datasets, whci I should serialize and transmit to client. I haven't got hundreads of MB, but I want to trnasmit it to client with best perfomance.

As I understand I should use MTOM encoding. Right?

Also want to know about type of transmitting object: DataSet, Byte[], Gz开发者_高级运维ip Stream (by IIS or manually).

I think my scenario is rather common. Want to hear your working fast design.


IMO the fastest way to do this would be with protobuf-net via a DTO (instead of data-table). Protobuf-net can plug into WCF with just config file changes and had demonstrably the smallest output and fastest processing of any general purpose serializer I know of. I may be biased (I wrote that version) but it is free, so worth a try.

But no data-tables.

And yea, MTOM helps when passing binary (which protobuf is), but not XML (so MTOM with standard DataTable is pointless)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜