WCF Tips & Tricks

Download Report

Transcript WCF Tips & Tricks

Christian Weyer
Solution Architect
thinktecture
[email protected]
Azure Services Platform overview
Windows Azure
.NET Services: Access Control Service
.NET Services: Service Bus
.NET Services: Workflow Service
2
Azure Services Platform
™
3
4
5
Business logic
…
Expand to new locale
Perform live upgrade for new feature
Apply OS patches
Diagnose service failures
Add storage capacity
Handle increase in traffic
Respond to hardware failures
Datacenter
6
Service “glue”
and operations
…. ……
Service 1
7
Service 2
Service 3
Service N
Control
VM
VM
VM
VM
WS08 Hypervisor
Control
Agent
Out-of-band
communication –
hardware control
WS08
Load-balancers
Switches
In-band communication
– software control
Highly-available
Fabric Controller
8
Service Roles
Node can be a VM or a
physical machine
Public Internet
Front-end
Web Role
Load
Background
Worker
Role
Balancer
Fundamental Services
Load Balancer Channel
Endpoint
Interface
Directory Resource
9
Durable, scalable, available store
Simple abstractions
Blobs
Tables
Queues
…
Simple interface
REST
ADO.NET Data Services
Maybe a .NET API (wrapper)
10
Includes a local execution environment
Development Fabric
Development Storage
Visual Studio 2008 support
Web Role template
Worker Role template
Deployment add-in
Command line tools
11
12
<Any ID
Provider>
Live ID Users
XYZ Domain
Users
Your Customers
What
can they
do?
Access Control
Service
Who is the
caller?
Integrate
Orchestrate
Service
Bus
WF
UI
Data
Your App
Store
13
14
Service Orchestration
Naming
Federated
Identity and
Access Control
Point Of Sale
15
Service Registry
Messaging Fabric
Supply Chain
CRM
POS
Integration
Product
Catalog
Inventory
Order
Entry
Customers
Leads
Web
Store
Returns
Purchasing
Planning
Campaigns
Trends
Service Orchestration
Naming
Federated
Identity and
Access Control
Your
Services
Service Registry
Messaging Fabric
Clients
ESB
Desktop,
Desktop,
RIA,
RIA,
Web
&
Web
16
On-Premise ESB
MS/3rd Party Services
Not every application is a server application
a number of different app styles need to communicate
proper DMZ is seldom in place
Advanced communication patterns
peer-to-peer
publish/subscribe
enabled for cross-platform and -technology
IPv4 address shortage
dynamic IP address allocation
Network Address Translation (NAT)
Network Address Translation
Network Firewall
Machine Firewall
Sender
17
?
Dynamic IP
Receiver
Syndication
Peer-To-Peer
Callbacks, notifications
Multi-casting, Pub/Sub
Light-weight orchestration
Remote control
18
19
.NET Services
ACS
Trust
Service Bus
Authenticate
3
Connect
Open
4
2
1
Authenticate
5
Relayed
Connection
Client
6
Direct
Connection
(optional)
20
Service
Backend
Naming
Routing
Fabric
sb://servicebus.windows.net/services/solution/a/b/
Route
Subscribe
Service Bus
Frontend
Nodes
TCP/SSL
808/828
TCP/SS
L 828
Msg
Sender
21
Msg
NAT
Firewall
Dynamic IP
Receiver
Programming model is WCF-based
Corresponding WCF Binding
Service Bus Relay Binding
BasicHttpBinding
BasicHttpRelayBinding
WebHttpBinding
WebHttpRelayBinding
WSHttpBinding
WSHttpRelayBinding
WS2007HttpBinding
WS2007HttpRelayBinding
WSHttpContextBinding
WSHttpRelayContextBinding
WS2007HttpFederationBinding
WS2007HttpRelayFederationBinding
NetTcpBinding
NetTcpRelayBinding
NetTcpContextBinding
NetTcpRelayContextBinding
n/a [loosely related to NetMsmqBinding]
NetOnewayRelayBinding
n/a [loosely related to NetTcpPeerBinding] NetEventRelayBinding
22
23
“Dublin”
.NET Workflow
Service
(extension to
Windows Server
& IIS/WAS)
WF
24
Your Own
Host
http://...
Service Bus
25
Email Christian Weyer
[email protected]
Weblog Christian Weyer
http://blogs.thinktecture.com/cweyer
thinktecture
http://www.thinktecture.com
26
{
In-depth support and consulting for
software architects and developers
}
http://www.thinktecture.com/
[email protected]
http://blogs.thinktecture.com/cweyer/
check out these websites, blogs & more!
Presentations
TechDays: www.techdays.ch
MSDN Events: http://www.microsoft.com/switzerland/msdn/de/presentationfinder.mspx
MSDN Webcasts: http://www.microsoft.com/switzerland/msdn/de/finder/default.mspx
MSDN Events
MSDN Events: http://www.microsoft.com/switzerland/msdn/de/events/default.mspx
Save the date: Tech•Ed 2009 Europe, 9-13 November 2009, Berlin
MSDN Flash (our by weekly newsletter)
Subscribe: http://www.microsoft.com/switzerland/msdn/de/flash.mspx
MSDN Team Blog
RSS: http://blogs.msdn.com/swiss_dpe_team/Default.aspx
Developer User Groups & Communities
Mobile Devices: http://www.pocketpc.ch/
Microsoft Solutions User Group Switzerland: www.msugs.ch
.NET Managed User Group of Switzerland: www.dotmugs.ch
FoxPro User Group Switzerland: www.fugs.ch
check out these websites, blogs & more!
Presentations
TechDays: www.techdays.ch
TechNet Events
TechNet Events: http://technet.microsoft.com/de-ch/bb291010.aspx
Save the date: Tech•Ed 2009 Europe, 9-13 November 2009, Berlin
TechNet Flash (our by weekly newsletter)
Subscribe: http://technet.microsoft.com/de-ch/bb898852.aspx
Schweizer IT Professional und TechNet Blog
RSS: http://blogs.technet.com/chitpro-de/
IT Professional User Groups & Communities
SwissITPro User Group: www.swissitpro.ch
NT Anwendergruppe Schweiz: www.nt-ag.ch
PASS (Professional Association for SQL Server): www.sqlpass.ch
7. – 8. April 2010
Congress Center Basel
Premium Sponsoring Partners
Classic Sponsoring Partners
Media Partner