Windows Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Kelley

    #16
    Re: Windows Service

    I am curious about the security issue. Ingo Rammer, among others, recommends
    hosting your remoted services in IIS. I agree with Bob 100%. If you have 2
    ..Net clients that need to communicate to each other, I would always choose a
    remoting solution. Host remoted objects in IIS and use the binary formatter.
    I would love to see any MS documents that say you should use web services in
    preference to remoting when you do have 2 .Net clients communicating to each
    other.

    When Indigo arrives, by all means I would use that.

    Dan

    "Moty Michaely" wrote:
    [color=blue]
    > Hey Bob,
    >
    > I must argue with that :).
    >
    > I really think remoting has lots of disadvantages. Security is one of them.
    > Since XML is still not Binary, remoting is the best way doing this kind of
    > things, but if the 2 applications replace small amounts of data, textual xml
    > and Web services enhancements doe's a great work with messaging technuiqes.
    >
    > Since I am in the middle of my project planning, I don't have to rearchitect
    > any of the ideas. That's why I am asking you, the experts about the ways of
    > dealing with this kind of project.
    >
    > Thanks again,
    >
    > - Moty -
    >
    > "Bob Grommes" <bob@bobgrommes .com> wrote in message
    > news:OyeGkabdFH A.3328@TK2MSFTN GP09.phx.gbl...[color=green]
    > > Moty,
    > >
    > > I'm amazed that a technology that less than 3 years ago was said to be the
    > > Second Coming is now a "dead end". Not to put to fine a point on it,
    > > that's horseshit.
    > >
    > > Remoting is a performant, extensible platform for IPC. I would use it
    > > without hesitation anytime you have a .NET application at both ends of the
    > > connection, complete control over the network / installation /
    > > configuration at both ends, and don't anticipate that changing in the
    > > foreseeable future. For example, I use remoting extensively (binary over
    > > TCP/IP) to orchestrate a bunch of worker machines on the same subnet
    > > performing various automated tasks.
    > >
    > > When communicating between clients and servers over the Internet to
    > > locations you have no control over, or that operate on different platforms
    > > than .NET) then you are generally stuck with Web Services over HTTP with
    > > bulky XML payloads -- but you have a highly interoperable and flexible
    > > standard, and it's arguably easier to implement and consume web services
    > > than remoting. Although in my experience once you get over the config
    > > issues remoting is no big deal to work with.
    > >
    > > Indigo is not out of development yet so it's not an option for the vast
    > > majority of today's projects. Remoting may ultimately be deprecated in
    > > favor or Indigo and may or may not find an ongoing niche of its own, but
    > > it will be supported for a long time to come (a good decade or two is my
    > > guess) even if it drops dead immediately upon Indigo's release, because
    > > there are already a lot of released systems that use it, and for many if
    > > not most of those there will be no compelling reason to rearchitect them
    > > with Indigo since they work just fine as-is.
    > >
    > > --Bob
    > >
    > > "Moty Michaely" <moty@speedocs. co.il> wrote in message
    > > news:OyHMIwadFH A.1276@tk2msftn gp13.phx.gbl...
    > >[color=darkred]
    > >> Remoting is one way but someone told me it's a dead-end and wse2 is the
    > >> best way of dealing with these kind of things even in intranet areas.[/color]
    > >
    > >[/color]
    >
    >
    >[/color]

    Comment

    • Chad Z. Hower aka Kudzu

      #17
      Re: Windows Service

      =?Utf-8?B?UmljaGFyZCB GLiBDaGF1dmV0?=
      <RichardFChauve t@discussions.m icrosoft.com> wrote in
      news:EFFC7BE2-A2F9-4799-A5DA-28B593A83B63@mi crosoft.com:[color=blue]
      > Indigo now offers web services the choice of protocol with a few
      > simple changes in the web.config file. If you want to use biniary over
      > TCP/IP - its yours. You get the speed of binary thru the transport[/color]

      Indigo is very cool - but its not released yet and many people have deadlines now. :) So its worth
      checking out, but not everyone can wait for it to be released and must choose something now.
      Personally I stick with webservices even though they are less efficient than remoting. If I need
      something more effcient, I usually revert to a TCP server without RPC of remoting etc.



      --
      Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programmin g is an art form that fights back"

      Empower ASP.NET with IntraWeb

      Comment

      • Chad Z. Hower aka Kudzu

        #18
        Re: Windows Service

        "Moty Michaely" <moty@speedocs. co.il> wrote in
        news:eQ7HsYidFH A.2688@TK2MSFTN GP14.phx.gbl:[color=blue]
        > Using a web service is the best way doing it even if it's being used
        > in a LAN environment. (Say that in some day you would want to move the
        > service one tier ahead?).[/color]

        There are many opinions, but my opininion is this as well. Just use webservices, even locally. The
        performance overhead is higher, but you can put a serious load on them before hitting any limits, and
        they scale.
        [color=blue]
        > I am not sure about the MSMQ.[/color]

        MSMQ is a whole other system.
        [color=blue]
        > My example of what I am trying to develop is a Print Spooler (A
        > windows service) and a queue viewer lioke the printer properties.[/color]

        MSMQ, or Webservices. Webservices are easier to deploy and setup IMO, but it depends on if you
        need MSMQ features or not.


        --
        Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
        "Programmin g is an art form that fights back"

        Get your ASP.NET in gear with IntraWeb!

        Comment

        • Chad Z. Hower aka Kudzu

          #19
          Re: Windows Service

          "Moty Michaely" <moty@speedocs. co.il> wrote in
          news:#VB5cbidFH A.2688@TK2MSFTN GP14.phx.gbl:[color=blue]
          > I really think remoting has lots of disadvantages. Security is one of
          > them. Since XML is still not Binary, remoting is the best way doing
          > this kind of things, but if the 2 applications replace small amounts[/color]

          Remoting is a decent 1.0, but as I said in other messages I've long ago shied away from it because of
          its many limitations, especially with regards to upgarding interfaces.


          --
          Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
          "Programmin g is an art form that fights back"

          Make your ASP.NET applications run faster

          Comment

          • Moty Michaely

            #20
            Re: Windows Service

            Thanks chad for all your replies.

            I'll stick to the web service idea but is there any way of dealing with some
            kind of queues? I need my service to handle a queue and the clients to be
            able watiching the queue and canceling jobs from it.

            ???

            -Moty-

            "Chad Z. Hower aka Kudzu" <cpub@hower.org > wrote in message
            news:Xns967C86C B24ED4cpubhower org@127.0.0.1.. .[color=blue]
            > "Moty Michaely" <moty@speedocs. co.il> wrote in
            > news:#VB5cbidFH A.2688@TK2MSFTN GP14.phx.gbl:[color=green]
            >> I really think remoting has lots of disadvantages. Security is one of
            >> them. Since XML is still not Binary, remoting is the best way doing
            >> this kind of things, but if the 2 applications replace small amounts[/color]
            >
            > Remoting is a decent 1.0, but as I said in other messages I've long ago
            > shied away from it because of
            > its many limitations, especially with regards to upgarding interfaces.
            >
            >
            > --
            > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
            > "Programmin g is an art form that fights back"
            >
            > Make your ASP.NET applications run faster
            > http://www.atozed.com/IntraWeb/
            >[/color]


            Comment

            • Chad Z. Hower aka Kudzu

              #21
              Re: Windows Service

              "Moty Michaely" <moty@speedocs. co.il> wrote in
              news:ezSamBldFH A.3620@TK2MSFTN GP09.phx.gbl:[color=blue]
              > I'll stick to the web service idea but is there any way of dealing
              > with some kind of queues? I need my service to handle a queue and the
              > clients to be able watiching the queue and canceling jobs from it.[/color]

              If the queue is internal, FCL has many objects. You can use other clietns to query the active queue
              with a web method, and add another method to cancel.

              If the clients will have a high level of intergration with the queue, MSMQ would be a better option.
              However your case is simplistic and really can go either way depending on your needs, etc.


              --
              Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
              "Programmin g is an art form that fights back"

              Develop ASP.NET applications easier and in less time:

              Comment

              Working...