14
By Muhammad Nabeel July 28, 2013 INTRODUCTION TO WCF ROUTING SERVICE

Introduction to WCF Routing Service

Embed Size (px)

DESCRIPTION

A simple introduction to the world of WCF Routing Service. Easy to use demo.

Citation preview

Page 1: Introduction to WCF Routing Service

By Muhammad Nabeel

July 28, 2013

INTRODUCTION TO WCF ROUTING SERVICE

Page 2: Introduction to WCF Routing Service

ABOUT ME

• Sr. Consultant at Neudesic• More than 14 years of experience• Currently working on WCF, Web API and MVC 4.0• Blogs at mnabeelkhan.blogspot.com

Page 3: Introduction to WCF Routing Service

AGENDA• What is WCF Routing Service?• Key features• Where to use and where not to use WCF Routing• Developing a WCF Routing Service• Demo• Q &A

Page 4: Introduction to WCF Routing Service

WHAT IS WCF ROUTING SERVICE

“A generic SOAP intermediary that has the ability to route messages based on message content”

When a message is received on a router, it looks for:• Action header• Receive address• Address prefix• Message header

Page 5: Introduction to WCF Routing Service

KEY FEATURES OF WCF ROUTING SERVICE• Content-based routing

• Protocol bridging• SOAP processing• Advanced error handling• Backup endpoints

Page 6: Introduction to WCF Routing Service

MESSAGE EXCHANGE PATTERNS (MEPS)• One-way: ISimplexDatagramRouter• One-way with session: ISimplexSessionRouter• Request-reply: IRequestReplyRouter• Duplex: IDuplexSessionRouter

WCF routing listens to messages using the above mentioned MEPs.

Page 7: Introduction to WCF Routing Service
Page 8: Introduction to WCF Routing Service

WHERE TO USE AND WHERE NOT TO USE WCF ROUTING

Page 9: Introduction to WCF Routing Service

EXAMPLES OF WCF ROUTING USES

• To expose one service to outside world and route messages to other services that are hidden.

• Bridge protocols (We would use that in our demo).• Load balancing.• Fault tolerance.

Page 10: Introduction to WCF Routing Service
Page 11: Introduction to WCF Routing Service

• Complex architecture• REST base services• Custom message filters that are too heavy.

WHERE NOT USE WCF ROUTING SERVICE

Page 12: Introduction to WCF Routing Service

DEMO

Requirements• Visual Studio 2010+• .NET 4.0• Libraries

• Simple Router• RoutingWithMessageModification

Page 13: Introduction to WCF Routing Service

RESOURCES

MSDN : http://msdn.microsoft.com/en-us/library/ee517421.aspxMSDN Magazine: http://msdn.microsoft.com/en-us/magazine/cc500646.aspx

Page 14: Introduction to WCF Routing Service

QUESTIONS AND ANSWERS

mnabeelkhan.blogspot.com