GENERATE Routes

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf GENERATE Routes

  • Creator
    Topic
  • #48615
    garry r fisher
    Participant

      Hi,

      Does anybody use generated routes? If so do you have an idiots guide to using them? The examples in the documentation are a bit contrived and don’t actually explain how to actually use them (or not to me:-))

      Any help would be appreciated.

      Garry

    Viewing 8 reply threads
    • Author
      Replies
      • #59173
        Charlie Bursell
        Participant

          I have done more than a few interfaces in my 12 years of doing this and have yet to see a legtimate need for generate routes.

          Just my $0.02 worth

        • #59174
          Steve Carter
          Participant

            I’ve used it in one place within our environment.  Although, I will soon be changing it.  It works OK with relatively low volumes of data.  Once the volume increases, the generate route will SLOW you down.  In my opinion, there is almost always a better way to do it.

            If you’re still interested in it, I’ll let you take a look at some snippets of code that I’ve done.

            Steve

          • #59175
            garry r fisher
            Participant

              Hi,

              Thanks for your comments.

              Thinking about it further there are other issues which complicate it and I’m not sure what the client wants is actually feasible now.

              If I need any further advice I’ll be back.

              Regards

              Garry

            • #59176
              James Cobane
              Participant

                All,

                I have a potential need/desire to utilize the ‘generate route’ functionality witin Cloverleaf.  My scenario is that I have an inbound thread that needs to route to any one my multiple outbounds, but I do not want to define all of the routes and further clutter-up the spider-web of routes that exist currently.  I’ve coded the proc and it works, but my questions are:

                1) What is the performance hit of doing this versus defining the routes within NetConfig?

                2) I used the standard ‘tps’ template to code the ‘generate route’ proc, but is there a different template to use?  The documentation on coding a ‘generate route’ procs is very light.

                Any thoughts/info is appreciated.

                Thanks in advance,

                Jim Cobane

                Henry Ford Health

              • #59177
                Steve Carter
                Participant

                  You didn’t mention whether or not you need to xlate the messages between threads.  If not, here’s what I would do:

                  Set the destination thread in the metadata of the message (DESTCONN) and also setting SKIPXLT to 1.  This accomplishes 2 things.

                  1.  You don’t have to define any routes.  The messages are simply placed on the outbound side of the destination thread.

                  2.  You can skip the xlate portion of the routing, which is the slowest part.

                  Unless things have changed with the generate routed function, I would steer clear of it.  It’s fine for low volumes, but it really starts to drag as the volume increases.

                  Hope this helps.

                  Steve

                • #59178
                  Jim Kosloskey
                  Participant

                    Jim,

                    Back when we both worked at Oakwood I queried Streepy, Mazenac (sic) etal about Generate Route.

                    The consensus I got is ‘don’t do it’.

                    Jim Kosloskey

                    email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                  • #59179
                    garry r fisher
                    Participant

                      Hi,

                      I concur with Jim. After my post I did get involved in trying to support an interface that was built using generate routes and when asking Quovadx support for advise there first response was why use generated routes? Anything that can be built using generated routes you should be able to build using the ‘normal’ routing’ of Cloverleaf with some Tcl.

                      Regards

                      Garry

                    • #59180
                      Bob Richardson
                      Participant

                        Gary,

                        We had route generate procs in several high volume interfaces and there was considerable drag on processing throughput.  They are high maintenance as you must build the equivalent of DATAXLATE keys perfectly and then put braces around those suckers.  A pain in the backside!  We have retired them all now.

                        I would suggest looking at doing a Tcl Trxid procedure where you can interpret data and set routes.  These are easier to build and maintain and provide optimum routing flexibility.

                        If you need some route generate code we still have our old suckers.

                        Let me know and I can email or post the logic.

                        Enjoy.

                      • #59181
                        James Cobane
                        Participant

                          All,

                          Thanks for your feedback.  Our initial approach was going to be using a trx_id determination, but thought we would see what the ‘generate route’ could provide.  Our intial testing seemed to indicate that the ‘generate route’ was slower, but I thought  maybe it was just an anomaly.  Based on the feedback, we will go with our original approach.

                          Thanks again for your feed back.

                          Jim Cobane

                          Henry Ford Health

                      Viewing 8 reply threads
                      • The forum ‘Cloverleaf’ is closed to new topics and replies.