240 likes | 387 Views
To OData or Not to OData. Chris Eargle kodefuguru.com. What kind of apps do you build?. Monolithic Application. I do everything. Database. Separation of Concerns. MVC is just one example. Controller. View. Model. Layered Application. Presentation Layer. Crosscutting Concerns.
E N D
To OData or Not to OData Chris Eargle kodefuguru.com
Monolithic Application I do everything Database
Separation of Concerns MVC is just one example. Controller View Model
Layered Application Presentation Layer Crosscutting Concerns Controller View Model Business Layer Entity Workflow Component Data Access Layer DAL Component Gateway
Enterprise Applications Public Service Console App Web App WPF App Business Service Workflow Service Data Service DB
Service-Oriented Architecture • Standardized Contract • Loose Coupling • Abstraction • Reusability • Autonomy • Statelessness • Discoverability • Composability
Two Primary Styles • RPC • Remote Procedure Call • REST • Representational State Transfer
REST • Architectural Style • Stateless • Not True!!! • Resources
Resource-Oriented Architecture • Expose many URIs • One for each resource • No cookies representing IDs • Aggregate Resources are represented with a URI • URI should facilitate “cut & paste”
OData • Open Data Protocol • REST-based • content-type • AtomPub • JSON • XML
OData Providers WCF RIA Services SharePoint 2010 WCF Data Services
Enterprise Infrastructure Applications Resources Services OData
Resource-Oriented Infrastructure Services Applications Resources Orchestration
Potential Services Presentation Layer Crosscutting Concerns Controller View Model Business Layer Entity Workflow Component Data Access Layer DAL Component Gateway
DEMO An Odata Service
Stay up to date with MSDN Belux • Register for our newsletters and stay up to date:http://www.msdn-newsletters.be • Technical updates • Event announcements and registration • Top downloads • Follow our bloghttp://blogs.msdn.com/belux • Join us on Facebookhttp://www.facebook.com/msdnbehttp://www.facebook.com/msdnbelux • LinkedIn: http://linkd.in/msdnbelux/ • Twitter: @msdnbelux DownloadMSDN/TechNet Desktop Gadgethttp://bit.ly/msdntngadget
TechDays 2011 On-Demand • Watchthis session on-demand via Channel9http://channel9.msdn.com/belux • Download to your favorite MP3 or video player • Get access to slides and recommended resources by the speakers