Best strategy for moving data between physical tiers in ASP.net
Posted
by Pete Lunenfeld
on Stack Overflow
See other posts from Stack Overflow
or by Pete Lunenfeld
Published on 2010-04-02T05:20:13Z
Indexed on
2010/04/02
5:23 UTC
Read the original article
Hit count: 327
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI tier into separate physical layers.
What is the best/easiest strategy to move serialized objects between the service tier and the UI tier?
I was considering serializing POCOs into JSON using simple ASP.net pages to serve the middle tier. Meaning that the UI/Web tier will request data from a (hidden to the outside user) web server that will return a JSON string. This kind of JSON 'emitter' seems easily testable. It also seems easily compressible for efficiently moving data over the WAN between tiers.
I know that some folks use .asmx webservices for this kind of task, but this seems like there is excess overhead with SOAP, and the package is not as human readable (testable) as POCOs serialized as JSON. Others are using more complex technology like WCF which we have never used.
Does anyone have advice for choosing a method for moving data/objects between the data (db) tier and the web (UI) tier over the WAN using .net technologies?
Thanks!!!
© Stack Overflow or respective owner