Tech Ed - Managing WCF Services:
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Tech Ed - Managing WCF Services:

  • 912 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
912
On Slideshare
910
From Embeds
2
Number of Embeds
1

Actions

Shares
Downloads
14
Comments
0
Likes
0

Embeds 2

http://www.slideshare.net 2

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Raise hands for the following: a) Who went to the Intro to WCF yesterday? b) Who has played with WCF? c) Who finds WCF and large, complex and daunting product?
  • Worn the pages Out of the box we can extend and leverage .net 3.0
  • How do I track the new technology’s performance? The business may need to produce statistics for ROI figures or be aware of salability issues. It may need to know whether the new solution will process 100,000 requests a day. Can you track and log these 100,000 requests and data mine to derive valuable business information? * Can the system administrators monitor the activity? Most important, does it have the capability to let the system administrators know when the system fails? Is it an expensive exercise to manage these activities? How much extra effort is involved to build a separate IT system to monitor the new application? * How extensible is the technology? Do you need have a complete rewrite of code to modify simple business logic? Or is it a simple task through a configuration setting? What happens when the upgrades become available? Will the new technology be backward compatible?
  • We’ve been on this journey for a while now. The fact that we are still talking about it is a good thing. It means that the concept of “SOA” has proved to be valuable to our customers at a business and technical level. SOA – Lubrication to software – my bother’s 1978 Ford Falcon SOA – Parasite technology
  • Web Services Enhancements v3.0 provides a bridge to Windows Communication Foundation The Microsoft platform enables *true* enterprise SOA – let’s revisit a previous slide (shown next) and see how the products above satisfy enterprise requirements
  • Tracing – end to end tracing – e2e Using activity id – we can say this is activity 1 and here are the multiple process that span activity 1 – for example get the current temperature 1) Need to invoke a web service to find the city 2) using remoting to use an application that converts the “F” to “C” However, we can like all these items with a single activity ID – and we can get holistic view of the system through it. Perfmon Any common SLA requirement How many business request did I process for a second What is my drop rate? How many errors were reported? How many transactions were recorded? WMI – will let you to reach into a running service and learn any thing about it. What endpoints it is exposing What contract it is Trace level on the ffy WMI team has written all WMI providers via WS-Management spec – therefore non MS platform consumers can access the data also.
  • There are different hosting options such as self-hosted and IIS. Self hosted is great for development and deployment with Windows Services. WCF is not web services.
  • Developing a WCF application is no longer specific to a deployment methodology. Once the contract is established, the service builds on the contracts to provide the business logic required. How the service is deployed and made available to be consumed by clients is the responsibility of WCF configuration. Clear separation of business logic in the code and the implementation of the project via config. Keep in mind that the focus of WCF is exposing business services rather than how those services are delivered. Refer to Intro to WCF session
  • What is WMI?
  • SOA improves agility, speeds up development, and lowers costs (dev/maintenance). But really, what is this all about? It’s about protecting and enabling business strategy! All of our companies have a strategy that they are trying to execute on. What is keeping us from executing on those strategies is app dev/maintenance and integration costs. If we adopt SOA-styles of integration and development, we essentially enable our businesses to execute on their strategy – we are protecting the strategy from technology changes.

Transcript

  • 1. CON 307 Developing Manageable WCF Services Chris Peiris | Avanade www.chrispeiris.com Rory Primrose | Avanade www.neovolve.com
  • 2. Agenda
    • Business Value of WCF
      • What does a CTO expect from an integration technology?
      • Unified Programming Model
      • Why manage Services? Business value?
    • Built in WCF Management Features
      • Configuration based - SvcConfigEditor
      • Integrating Windows Management Instrumentation
      • Tracing and Logging - SvcTraceViewer
      • Performance Monitoring
    • Summary and Questions
  • 3. CTO Key Performance Indicators
    • Dependable (secure & preserve integrity)
    • Responsive
    • Predictable
    • Measure Productivity
    • Enterprise Models
      • Zachman
      • TOGAF
      • MS Motion
    • Three Key Takeaways
      • Unified Programming model
      • WCF become the unified communication mechanism
      • ROI is delivered by a well managed efficient system – NOT the cutting edge snazzy marketing material
  • 4. Unified Programming Model
  • 5. The SOA Journey Point-to-Point Message Based
  • 6. Microsoft & SOA
    • Provides the best integrated, cost effective, interoperable, and scalable SOA Platform
      • Windows Servers, BizTalk Server, SQL Server, .NET Framework, Visual Studio .NET, CSF,…
    • Connected Systems Division
      • BizTalk Server
        • Business Activity Monitoring
      • Windows Communication Foundation
        • WS-* compliant
      • Windows Workflow Foundation
    • How do we communicate with each other?
  • 7. What Does WCF offer to the Enterprise
    • Where are we?
    • Do we have unified MS offering to compliment MS Server technology?
    • Can WCF be the answer?
      • MQ = WCF
      • EAI Message Broker = Biztalk V.Next
      • Mapping done by Biztalk Mapper
      • Unified API to invoke ALL windows server technology
      • Use Adapters (i.e. SAP, Oracle) for non MS products
  • 8. The Life And Times…
    • HUMAN
    • Conceptualization
    • Conception
    • Birth
    • Childhood
    • Teen Angst
    • Productive Years
    • The Golden Years
    • SOFTWARE
    • Design/Arch
    • Development
    • Deployment
    • Configuration
    • Troubleshooting
    • Monitoring
    • Reconfiguration
    The Hard/Long (useful) Part The Fun/Short Part ROI
  • 9. The Challenge
    • We are putting basic instrumentation, control mechanisms, diagnostics “in the box” with WCF
      • Much of what you’ve had to code in the past is now done for you in the framework
      • You’ll get manageable Web Services with WCF even if you don’t code for manageability
    • You can raise the bar for manageability!
      • Now that you don’t need to write timer code to determine latency, throughput, error rates…
      • What can you do with that same investment?
  • 10. What Does WCF Offer?
    • Configuration driven
    • Implementing logging and tracing
    • Using performance counters
      • WCF out of the box
      • Create custom counters
    • WMI objects.
      • Out of the box
      • Creating specified WMI objects
    • Leveraging new .NET 3.0 utilities
      • Configuration Editor
      • Trace Viewer
  • 11. Coding a WCF Service - The Basics
    • Service Contract
      • Contracts are interfaces
    • Service
      • Implements the contract to provide business logic for the server endpoint
      • Service instancing
    • Host
      • Hosts the service to make it available to clients
      • Self-hosted services
    • Client
      • Implements a UI to consume the service for the client endpoint
  • 12. Agenda
    • Business Value of WCF
      • What does a CTO expect from an integration technology?
      • Unified Programming Model
      • Why manage Services? Business value?
    • Built in WCF Management Features
      • Configuration based - SvcConfigEditor
      • Integrating Windows Management Instrumentation
      • Tracing and Logging - SvcTraceViewer
      • Performance Monitoring
    • Summary and Questions
  • 13. Method #1 - The Configuration System
    • What goes in code
      • Business logic
    • What goes in config
      • Contracts
      • Endpoints
      • Bindings
      • Behaviors
      • Diagnostics
  • 14. # 1 – The Configuration System
  • 15. Agenda
    • Business Value of WCF
      • What does a CTO expect from an integration technology?
      • Unified Programming Model
      • Why manage Services? Business value?
    • Built in WCF Management Features
      • Configuration based - SvcConfigEditor
      • Integrating Windows Management Instrumentation
      • Tracing and Logging - SvcTraceViewer
      • Performance Monitoring
    • Summary and Questions
  • 16. Method #2 - WMI Objects
    • Allows a service to be queried by WMI
    • Remote management for running services
    • Remote monitoring for running services
  • 17. #2 – WMI Objects
  • 18. Agenda
    • Business Value of WCF
      • What does a CTO expect from an integration technology?
      • Unified Programming Model
      • Why manage Services? Business value?
    • Built in WCF Management Features
      • Configuration based - SvcConfigEditor
      • Integrating Windows Management Instrumentation
      • Tracing and Logging - SvcTraceViewer
      • Performance Monitoring
    • Summary and Questions
  • 19. Method #3 - Using Tracing and Message Logging
    • Tracing
      • Using SvcTraceViewer.exe
      • WCF tracing support
    • Message Logging
      • Logging custom messages
  • 20. #3 - Tracing and Message Logging
  • 21. Agenda
    • Business Value of WCF
      • What does a CTO expect from an integration technology?
      • Unified Programming Model
      • Why manage Services? Business value?
    • Built in WCF Management Features
      • Configuration based - SvcConfigEditor
      • Integrating Windows Management Instrumentation
      • Tracing and Logging - SvcTraceViewer
      • Performance Monitoring
    • Summary and Questions
  • 22. Method #4 - Performance Counters
    • WCF includes inbuilt counters that require no coding effort
    • Offers comprehensive monitoring of services currently running
    • Custom performance counter support with minimal code
    • Remote performance monitoring
  • 23. #4 –Performance Counters
  • 24. Agenda
    • Business Value of WCF
      • What does a CTO expect from an integration technology?
      • Unified Programming Model
      • Why manage Services? Business value?
    • Built in WCF Management Features
      • Configuration based - SvcConfigEditor
      • Integrating Windows Management Instrumentation
      • Tracing and Logging - SvcTraceViewer
      • Performance Monitoring
    • Summary and Questions
  • 25. WCF Benefits from Managing Services
    • Improves Custom Development
    • Improves Enterprise Integration
    • Improves Information Management/Collaboration
    • Improves Business Intelligence
    • Protects Business Strategy
      • Increases agility
      • Decreases costs
      • Increases process transparency
  • 26. Summary
    • WCF Apps are manageable out of the box
      • Deployment flexibility
      • SLA monitoring
      • End to end diagnostics
    • You can make them even better
      • Create Management Endpoints
      • Add instrumentation
      • Build custom UI for admins
  • 27. Questions?
  • 28. Resources Links / Blogs / Books http://www.netfx3.com/ WCF Virtual Labs Chris Peiris – Professional WCF – Practical Microsoft SOA Implementation Tom Archer - Determining Which Build of Windows Vista and .NET 3.0 Development Tools is Right for You - Juval Lowy - Discover Mighty Instance Management Techniques For Developing WCF Apps, June MSDN Mag At Tech Ed 2006 CON308 (.NET 3.0) Windows Communication Foundation: Building Secure Services CON310  (.NET 3.0) Windows Communication Foundation: Designing Bindings and Contracts CON316  (BTS) Integration of BizTalk Server 2006 and Windows Workflow Foundation. CON412  (.NET 2.0) Framework 2.0: Integration Inside Out!
  • 29. © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.