Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Multiple proxy connections

tmoore
tmoore Posts: 4

Hi Parasoft Team,

I just have a quick question for y'all today. If you define multiple connections in a single proxy, will they be routed in order?

Example incoming paths:

1) /proxy/search/results -> asset
2) /proxy/search/article -> asset
3) /proxy/search -> forward to live

In this case, I want to make sure that anything coming into the 3rd path is handled last, in case either of the other two options match.

Tagged:

Comments

  • williammccusker
    williammccusker Posts: 672 ✭✭✭

    Hi,

    Path-based routing is done by finding the longest path match. So using the example three paths if a request came in with a path of

    /proxy/search/article/2

    Then it would match to

    /proxy/search/article

    Since that is the longest matching path. The order in which the connections are defined doesn't matter. Hope this helps!

Tagged