bbyars / mountebank

Over the wire test doubles
http://www.mbtest.org
MIT License
2k stars 268 forks source link

Route to proxy based on path #413

Open awolden opened 5 years ago

awolden commented 5 years ago

Hello,

We are looking at implementing Mountebank as our main VCR-like virtualization tool. However, most of our microservices are actually located on different domains. With other tools like sepia we can spin up one proxy server and route based on path: https://github.com/linkedin/sepia#url-and-body-filtering. Does mountebank support this behavior where we have one proxy(stub) that can route to multiple downstream services, or would we have to spin up a separate proxy on a new port for every service?

Thanks, and good job on the awesome project!

bbyars commented 5 years ago

Hi there, The proxy stub is specific to a single downstream service, and uses the imposter port to simulate that downstream service when it's being replayed. I can think of a couple options that may get you what you need:

Hope this helps, -Brandon

On Wed, May 1, 2019 at 3:54 PM Alexander Wolden notifications@github.com wrote:

Hello,

We are looking at implementing Mountebank as our main VCR-like virtualization tool. However, most of our microservices are actually located on different domains. With other tools like sepia we can spin up one proxy server and route based on path: https://github.com/linkedin/sepia#url-and-body-filtering. Does mountebank support this behavior where we have one proxy(stub) that can route to multiple downstream services, or would we have to spin up a separate proxy on a new port for every service?

Thanks, and good job on the awesome library!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bbyars/mountebank/issues/413, or mute the thread https://github.com/notifications/unsubscribe-auth/AAARFP4LN3GUC2LMGW2R7BTPTH7ORANCNFSM4HJX72DA .

colinschoen commented 5 years ago

@awolden I'd love to compare notes with you all at some point. We are working on this at Yelp too.