1 Reply Latest reply on Jun 19, 2003 5:05 PM by Adrian Brock

    2 better than 1 ?

    bbeaumont Newbie

      Hi

      I have a queue defined to process messages. The message types are split into 2 diferent tyes. Would it be better to use 2 queues or (as it currently is) use the code to process the messages diferently. Optimum performance would be nice

        • 1. Re: 2 better than 1 ?
          Adrian Brock Master

          Your question is too vague.

          I doubt a simple if statement or overloaded
          method has any overhead compared with your
          other work.
          If you have problems processing a backlog
          you might want to start more receivers.

          Two queues might be better from a simplicity
          point of view. Especially if in future you add a
          third message type.

          Regards,
          Adrian