Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Anybody familiar with MQ?

Anybody familiar with MQ?

Scheduled Pinned Locked Moved The Lounge
databasequestioncsharpsql-serversysadmin
13 Posts 7 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xiangyang Liu
    wrote on last edited by
    #1

    What is the advantage of using MQ? We have a web application that needs to save data into an external sql server database. If it is up to me, I will write a simple web service and the web application will call this web service to do the job. But I was told that I must use MQ, the people who insisted on MQ have been working on this project for more than a year with no real progress (still in requiremetns gathering stage). I promised my manager to get the web service done in two weeks, may be that alone makes someone look extremely bad, therefore I must be stopped?

    My .NET Business Application Framework My Younger Son & His "PET"

    R R M M 4 Replies Last reply
    0
    • X Xiangyang Liu

      What is the advantage of using MQ? We have a web application that needs to save data into an external sql server database. If it is up to me, I will write a simple web service and the web application will call this web service to do the job. But I was told that I must use MQ, the people who insisted on MQ have been working on this project for more than a year with no real progress (still in requiremetns gathering stage). I promised my manager to get the web service done in two weeks, may be that alone makes someone look extremely bad, therefore I must be stopped?

      My .NET Business Application Framework My Younger Son & His "PET"

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      Message queues have the advantage of providing guaranteed delivery. You could still do a web service and App using WCF, and use MQ as the transport mechanism. Some examples hereon CP: Sample Starter Project Using WCF and MSMQ[^] WCF Queued Messaging[^]

      X 1 Reply Last reply
      0
      • X Xiangyang Liu

        What is the advantage of using MQ? We have a web application that needs to save data into an external sql server database. If it is up to me, I will write a simple web service and the web application will call this web service to do the job. But I was told that I must use MQ, the people who insisted on MQ have been working on this project for more than a year with no real progress (still in requiremetns gathering stage). I promised my manager to get the web service done in two weeks, may be that alone makes someone look extremely bad, therefore I must be stopped?

        My .NET Business Application Framework My Younger Son & His "PET"

        R Offline
        R Offline
        Rama Krishna Vavilala
        wrote on last edited by
        #3

        Based on my understanding, MQ you can do the thing declaratively using a designer. It is similar to Biztalk in designing integration and similar to MSMQ is the messaging aspect. But I think you will still need a webservice either SOAP or POX. For simple applications, it does not make much sense but if you have a complex system talking with variety of different applications MQ may simplify the integration. I am guessing you mean IBM Webshphere MQ.

        Click here to get a Google Wave Invite.

        1 Reply Last reply
        0
        • X Xiangyang Liu

          What is the advantage of using MQ? We have a web application that needs to save data into an external sql server database. If it is up to me, I will write a simple web service and the web application will call this web service to do the job. But I was told that I must use MQ, the people who insisted on MQ have been working on this project for more than a year with no real progress (still in requiremetns gathering stage). I promised my manager to get the web service done in two weeks, may be that alone makes someone look extremely bad, therefore I must be stopped?

          My .NET Business Application Framework My Younger Son & His "PET"

          M Offline
          M Offline
          Mark_Wallace
          wrote on last edited by
          #4

          Sonic documentation is extremely good. I had to install three different messaging servers to test them with an integration app (along with -- ugh! -- Kerberos, which has the worst documentation in the world!) The Sonic was the easiest, because the doc steps you through it very well, and the management console is a breeze. If you have trouble configuring it to work with your app, give me a shout.

          I wanna be a eunuchs developer! Pass me a bread knife!

          X 1 Reply Last reply
          0
          • R Rob Graham

            Message queues have the advantage of providing guaranteed delivery. You could still do a web service and App using WCF, and use MQ as the transport mechanism. Some examples hereon CP: Sample Starter Project Using WCF and MSMQ[^] WCF Queued Messaging[^]

            X Offline
            X Offline
            Xiangyang Liu
            wrote on last edited by
            #5

            From what I read on MQ, it seems to be asynchronous. The message placed on queue will not be guaranteed to be delivered to receiving application immediately. My project explicitly requires the immediate return status (whether the data is successfully saved into the external database or not). It seems to be a total misuse of MQ.

            My .NET Business Application Framework My Younger Son & His "PET"

            J M 2 Replies Last reply
            0
            • M Mark_Wallace

              Sonic documentation is extremely good. I had to install three different messaging servers to test them with an integration app (along with -- ugh! -- Kerberos, which has the worst documentation in the world!) The Sonic was the easiest, because the doc steps you through it very well, and the management console is a breeze. If you have trouble configuring it to work with your app, give me a shout.

              I wanna be a eunuchs developer! Pass me a bread knife!

              X Offline
              X Offline
              Xiangyang Liu
              wrote on last edited by
              #6

              If I have to use MQ synchronously (the sending application has to know the processing status of the receiving application right away), is it possible? Does it defeat the purpose of MQ? Your insight is very much appreciated.

              My .NET Business Application Framework My Younger Son & His "PET"

              M 1 Reply Last reply
              0
              • X Xiangyang Liu

                From what I read on MQ, it seems to be asynchronous. The message placed on queue will not be guaranteed to be delivered to receiving application immediately. My project explicitly requires the immediate return status (whether the data is successfully saved into the external database or not). It seems to be a total misuse of MQ.

                My .NET Business Application Framework My Younger Son & His "PET"

                J Offline
                J Offline
                Jim Crafton
                wrote on last edited by
                #7

                Xiangyang Liu 刘向阳 wrote:

                a total misuse of MQ.

                Probably not the first or the last time either! :)

                ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                1 Reply Last reply
                0
                • X Xiangyang Liu

                  If I have to use MQ synchronously (the sending application has to know the processing status of the receiving application right away), is it possible? Does it defeat the purpose of MQ? Your insight is very much appreciated.

                  My .NET Business Application Framework My Younger Son & His "PET"

                  M Offline
                  M Offline
                  Mark_Wallace
                  wrote on last edited by
                  #8

                  Not exactly synchronously (no blocking), but you can configure the resource adapter to fire back status messages on a separate queue or a notification topic easily enough, that can give the impression of synchronous behaviour.

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  X 1 Reply Last reply
                  0
                  • M Mark_Wallace

                    Not exactly synchronously (no blocking), but you can configure the resource adapter to fire back status messages on a separate queue or a notification topic easily enough, that can give the impression of synchronous behaviour.

                    I wanna be a eunuchs developer! Pass me a bread knife!

                    X Offline
                    X Offline
                    Xiangyang Liu
                    wrote on last edited by
                    #9

                    Ok, I understand what you said. Thanks for the info. I have to do the following: 1. Send to MQ. 2. Try to read status from the receiver immediately. 3. If status is not there yet, keep polling until timeout. Sounds like a lot of fun to misuse MQ. :-D

                    My .NET Business Application Framework My Younger Son & His "PET"

                    M 1 Reply Last reply
                    0
                    • X Xiangyang Liu

                      Ok, I understand what you said. Thanks for the info. I have to do the following: 1. Send to MQ. 2. Try to read status from the receiver immediately. 3. If status is not there yet, keep polling until timeout. Sounds like a lot of fun to misuse MQ. :-D

                      My .NET Business Application Framework My Younger Son & His "PET"

                      M Offline
                      M Offline
                      Mark_Wallace
                      wrote on last edited by
                      #10

                      heh. That's pretty much it. You'll be happy to know that everyone does it.

                      I wanna be a eunuchs developer! Pass me a bread knife!

                      1 Reply Last reply
                      0
                      • X Xiangyang Liu

                        From what I read on MQ, it seems to be asynchronous. The message placed on queue will not be guaranteed to be delivered to receiving application immediately. My project explicitly requires the immediate return status (whether the data is successfully saved into the external database or not). It seems to be a total misuse of MQ.

                        My .NET Business Application Framework My Younger Son & His "PET"

                        M Offline
                        M Offline
                        Marc Clifton
                        wrote on last edited by
                        #11

                        Xiangyang Liu 刘向阳 wrote:

                        My project explicitly requires the immediate return status (whether the data is successfully saved into the external database or not). It seems to be a total misuse of MQ.

                        Not to open a can of worms, but there really are two issues: 1. message delivery 2. success of acting on the message MQ guarantees message delivery (in a sense, I mean, if the computer goes boom, well, no messages), but it means that when the connection recovers, anything queued will be delivered. So asynchronous does make sense, but it (as you point out) implies that the response is asynchronous as well. When everything is working well, the effective "feel" is that the response is immediate, but it does mean internally you are dealing with an async response. Frankly, I think that architecture is actually better, and the separation of "message" vs. "action on the message" is important. Does that make sense? I feel like I'm being a bit vague. Marc

                        X 1 Reply Last reply
                        0
                        • X Xiangyang Liu

                          What is the advantage of using MQ? We have a web application that needs to save data into an external sql server database. If it is up to me, I will write a simple web service and the web application will call this web service to do the job. But I was told that I must use MQ, the people who insisted on MQ have been working on this project for more than a year with no real progress (still in requiremetns gathering stage). I promised my manager to get the web service done in two weeks, may be that alone makes someone look extremely bad, therefore I must be stopped?

                          My .NET Business Application Framework My Younger Son & His "PET"

                          M Offline
                          M Offline
                          Member 1709723
                          wrote on last edited by
                          #12

                          write your own mq

                          Opium is my business. The bridge mean more traffic. More traffic mean more money. More money mean more power. Speed is important in business. Time is money. You said opium was money. Money is Money. Well then, what is time again? icalburner.net

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            Xiangyang Liu 刘向阳 wrote:

                            My project explicitly requires the immediate return status (whether the data is successfully saved into the external database or not). It seems to be a total misuse of MQ.

                            Not to open a can of worms, but there really are two issues: 1. message delivery 2. success of acting on the message MQ guarantees message delivery (in a sense, I mean, if the computer goes boom, well, no messages), but it means that when the connection recovers, anything queued will be delivered. So asynchronous does make sense, but it (as you point out) implies that the response is asynchronous as well. When everything is working well, the effective "feel" is that the response is immediate, but it does mean internally you are dealing with an async response. Frankly, I think that architecture is actually better, and the separation of "message" vs. "action on the message" is important. Does that make sense? I feel like I'm being a bit vague. Marc

                            X Offline
                            X Offline
                            Xiangyang Liu
                            wrote on last edited by
                            #13

                            Marc Clifton wrote:

                            Does that make sense?

                            Yes in a lot of situations. In this case, I question the use of MQ. The web app and the web service can be physically next to each other, the "actions" are simply data validation and calling a stored procedure to put the validated data into sql server. With MQ: 1. Web app executes code to put data in the queue. 2. MQ never fails to deliver data once #1 is successful (we all know that already :) ). 3. The receiving application executes code to get data from the queue, does data validation, and put data into sql server database. 4. Then it executes code to put processing status in #3 in the queue. 5. The web app has to execute code to get the processing status in #4 from the queue. Without MQ:: 1. The web app execuate code to call the web service (to do data validation and put to data into sql server database). Who would not have picked MQ in this case? :-D Seriously, even though #2 above is supposed to never fail, #1, #3, #4, and #5 all can fail. It just does not make sense to me. My .NET Business Application Framework My Younger Son & His "PET"

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups