Windows Vista Forums

Stateful Indigo services

  1. #1


    magne Guest

    Stateful Indigo services

    I want to develop an Indigo service (using February 06 CTP) with some
    contract to store info in SQL Server 2005.
    This contract is used by clients quite frequently (average more than once
    per second) and I would like to not re-open a database connection every time
    the contract is used.
    How to handle this ?
    Instance lifetime control (how ?) or some kind of state object ? (WebService
    had application state, Indigo has something similar ?)


      My System SpecsSystem Spec

  2. #2


    magne Guest

    Re: Stateful Indigo services

    Thanks, I will try and observe performance, probably no problem.
    However, I had parts of this service working ok with December CTP, now I
    just upgraded to February CTP and I get a parser error saying
    "The unknown directive 'Service' is specified" (in the .svc file)
    Someone knows why ?
    My svc file looks somewhat like: <%@Service language=c# Debug="true"
    class="SomeNamespace.SomeClassname" %>

    "Steve Drake" <steve@_NOSPAMDrakey.co.uk> wrote in message
    news:8C1A459B-1418-4711-AD93-8C6DBD25298E@microsoft.com...
    > ADO.NET will 'pool' the connection.
    >
    > If you go with a statefull connection, then how would you manage 25
    > requests at the same time?
    >
    > Let IIS / ADO.NET manage all this for you IIS will make sure that
    > requests get quied ( I think it will process 25 per CPU) and ADO.NET will
    > pool the connection. I am not sure how self host console apps do, does WCF
    > queue them?
    >
    > Just make sure you close the connection as soon as you can, this gives it
    > back to the pool.
    >
    > I have had to test this sort of stuff before, we have used app stress
    > center, we got very good results and looking at the perf results in more
    > detail, Connection.Open was never an issue.
    >
    > Steve
    >
    > "magne" <magne@nospam.nospam> wrote in message
    > news:eoGwM7rOGHA.1040@TK2MSFTNGP12.phx.gbl...
    >>I want to develop an Indigo service (using February 06 CTP) with some
    >>contract to store info in SQL Server 2005.
    >> This contract is used by clients quite frequently (average more than once
    >> per second) and I would like to not re-open a database connection every
    >> time the contract is used.
    >> How to handle this ?
    >> Instance lifetime control (how ?) or some kind of state object ?
    >> (WebService had application state, Indigo has something similar ?)
    >>

    >



      My System SpecsSystem Spec

  3. #3


    magne Guest

    Re: Stateful Indigo services

    Thanks a lot
    (I just saw it at
    http://blogs.msdn.com/edpinto/archiv...22/537027.aspx)

    "Matevz Gacnik [MVP, RD]" <matevz.gacnik@gama-system.si> wrote in message
    news:0AFCBC8D-9596-4FB2-A600-A5BAAFC7D12D@microsoft.com...
    > Magne,
    >
    > Try using this syntax:
    > <%@ServiceHost language=c# Debug="true">
    > Service="SomeNamespace.SomeClassname" %>
    >
    > Service definition file syntax has changed in Feb 2006 CTP.
    >
    > Regards,
    > Matevz.
    >
    > "magne" <magne@nospam.nospam> wrote in message
    > news:OF7olFxOGHA.3864@TK2MSFTNGP10.phx.gbl...
    >> Thanks, I will try and observe performance, probably no problem.
    >> However, I had parts of this service working ok with December CTP, now I
    >> just upgraded to February CTP and I get a parser error saying
    >> "The unknown directive 'Service' is specified" (in the .svc file)
    >> Someone knows why ?
    >> My svc file looks somewhat like: <%@Service language=c# Debug="true"
    >> class="SomeNamespace.SomeClassname" %>
    >>
    >> "Steve Drake" <steve@_NOSPAMDrakey.co.uk> wrote in message
    >> news:8C1A459B-1418-4711-AD93-8C6DBD25298E@microsoft.com...
    >>> ADO.NET will 'pool' the connection.
    >>>
    >>> If you go with a statefull connection, then how would you manage 25
    >>> requests at the same time?
    >>>
    >>> Let IIS / ADO.NET manage all this for you IIS will make sure that
    >>> requests get quied ( I think it will process 25 per CPU) and ADO.NET
    >>> will pool the connection. I am not sure how self host console apps do,
    >>> does WCF queue them?
    >>>
    >>> Just make sure you close the connection as soon as you can, this gives
    >>> it back to the pool.
    >>>
    >>> I have had to test this sort of stuff before, we have used app stress
    >>> center, we got very good results and looking at the perf results in more
    >>> detail, Connection.Open was never an issue.
    >>>
    >>> Steve
    >>>
    >>> "magne" <magne@nospam.nospam> wrote in message
    >>> news:eoGwM7rOGHA.1040@TK2MSFTNGP12.phx.gbl...
    >>>>I want to develop an Indigo service (using February 06 CTP) with some
    >>>>contract to store info in SQL Server 2005.
    >>>> This contract is used by clients quite frequently (average more than
    >>>> once per second) and I would like to not re-open a database connection
    >>>> every time the contract is used.
    >>>> How to handle this ?
    >>>> Instance lifetime control (how ?) or some kind of state object ?
    >>>> (WebService had application state, Indigo has something similar ?)
    >>>>
    >>>

    >>
    >>

    >



      My System SpecsSystem Spec

Stateful Indigo services

Similar Threads
Thread Forum
Indigo (WCF) vs. Remoting
I'm afraid I have a very basic question: does Indigo replaces Remoting? I am starting a project with communications between business object via...
Indigo
Re: Indigo and VSTO
Hi Arian, I am stuck in this dillema where 'System.ServiceModel' does not accet calls from partially trusted assemblies. Have you figured out a...
Indigo
WCF (Indigo) availability for W2003
Hi, which minimal version of Windows Server 2003 will be suitable for WCF when finaly released ? I found two statements, one saying SP1, another...
Indigo
2 Problems (INDIGO + ASP.NET 2.0)
Hi all, I will highly appreciate your help to me if you help me with one (or both) of the following 2 problems: I have the following on my...
Indigo
How to start up an indigo project
It is very interesting to learn the features of "Indigo" . However, no idea about how to begin a project on Indigo. Recently i installed WinFX...
Indigo
Indigo P2P and Java
Hi I would like to know if an implementation of the Indigo P2P protocol is avaible for Java. I would like that an Linux Client (with java)...
Indigo
msmq multicast and indigo
Is it possible to get netMsmqBinding working with msmq multicasting. I didn't find a way to set it up. Thanks, Igor.
Indigo