Code Monkey home page Code Monkey logo

kathleenwest / servicethrottlingdemo Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 50.83 MB

Service Throttling in WCF Services – A Demo of Service Concurrency and Instance Throttling Behaviors with Multi-threading Clients: This project presents a simple Demo WCF Service and “Tester” Client Application demonstration that implements concurrency and instancing behaviors on a service with multiple client thread calls to a method on the service. The project also demos throttling service behaviors that are in the service configuration settings. Service throttling limits the client calls that could otherwise drain or slow down its service to other clients if too many are calling simultaneously. The Demo Service is a standard template WCF service application hosted by the development IIS. The service features one simple method… a test method that simulates a long running process (it sleeps for 5 seconds). The client “tester” is a simple console application that creates multiple threads that access the service and report back on the results. The objective of this project was not to demo setup and hosting of a service, nor the client interface, but retrieve and display results of service behaviors with respect to multi-threaded access. Discussion regarding the hosting and setup of the simple IIS hosted service application will be skipped in this project article.

Home Page: https://portfolio.katiegirl.net/2019/11/19/service-throttling-in-wcf-services-a-demo-of-service-concurrency-and-instance-throttling-behaviors-with-multi-threading-clients/

C# 100.00%
throttle throttling throttle-calls wcf wcf-service wcf-client wcf-service-client-demo wcf-service-demo csharp csharp-code

servicethrottlingdemo's Introduction

ServiceThrottlingDemo

Project Article: https://portfolio.katiegirl.net/2019/11/19/service-throttling-in-wcf-services-a-demo-of-service-concurrency-and-instance-throttling-behaviors-with-multi-threading-clients/

Service Throttling in WCF Services – A Demo of Service Concurrency and Instance Throttling Behaviors with Multi-threading Clients

This project presents a simple Demo WCF Service and “Tester” Client Application demonstration that implements concurrency and instancing behaviors on a service with multiple client thread calls to a method on the service. The project also demos throttling service behaviors that are in the service configuration settings. Service throttling limits the client calls that could otherwise drain or slow down its service to other clients if too many are calling simultaneously. The Demo Service is a standard template WCF service application hosted by the development IIS. The service features one simple method… a test method that simulates a long running process (it sleeps for 5 seconds). The client “tester” is a simple console application that creates multiple threads that access the service and report back on the results. The objective of this project was not to demo setup and hosting of a service, nor the client interface, but retrieve and display results of service behaviors with respect to multi-threaded access. Discussion regarding the hosting and setup of the simple IIS hosted service application will be skipped in this project article.

The demo project consists of these simple component topics:

• WCF Service (Hosted by IIS) Application Project “ServiceThrottlingDemo”

o ITestService – Interface of Service and Operational Contracts o TestService – Implements the Service Interface

o Web.config (Configuration for Service Hosted on IIS Express)

• Client “Tester to Service” Windows Console Application “MultiThreadClientTester” o Service Reference Proxy (WSDL) to WCF Service o Program – Creates multiple threads that call the service, records time spent in threads, and reports statistics on the final results in a console window.

servicethrottlingdemo's People

Contributors

kathleenwest avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.