question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Record multiple external services

See original GitHub issue

Hi,

First of all congratulations for this great library. Its simple to use, good documentation and more importantly: it works! 😃

My issue is related with the fact that I need to record not one external service but many of them. It seems that the wiremock-standalone just has the option to setup one proxy using the --proxy-all switch. Is it possible to record with my own defined stubs? If no, is there any other to achieve this?

Thanks a lot! Leo

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
tomakehurstcommented, Sep 4, 2015

Thanks!

Yes, it is possible to record against multiple targets by configuring a proxy stub mapping against each of them via the API rather than via the --proxy-all param (which actually just creates a single proxy mapping internally).

1reaction
stephenhcommented, Oct 2, 2018

Hi; I just used wiremock to do some load testing in docker and it worked great; FWIW being able to record multiple urls at once would be nice, e.g. in docker-compose I had a single wiremock instance, and then gave my app both SERVICE_A_URL=http://wiremock/ and SERVICE_B_URL=http://wiremock as environment variables, but it meant I had to stop/start wiremock a few times to change the proxy-all from service a, record a request, shut it down, change proxy-all to service b, record a request, shut it down.

Doing something like --proxy-host=servicea:http://service-a.company.com --proxy-host=serviceb:http://service-b.company.com and then using host headers (e.g. SERVICE_A_URL=http://servicea/ within docker-compose) would be spiffy (specifically for recording requests that touch multiple services).

Great tool; thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Record multiple external services · Issue #299 · wiremock ...
Yes, it is possible to record against multiple targets by configuring a proxy stub mapping against each of them via the API rather...
Read more >
External Services - Salesforce Help
Connect your Salesforce org to an external API using zero lines of code. Use declarative tools and OpenAPI specifications to describe the external...
Read more >
Introduction to External Services | Low Code Integration
Want to learn more about salesforce join me at https://sfdcpanther.com Link to Swagger Schema that we have used for demo ...
Read more >
Integrating External Services | Developer Guide
Integrating External Services. Overview; Defining a Service for an External Database. Step 1: Define a Service; Step 2: Consume a Service.
Read more >
External services | New Relic Documentation
To use the external services feature, you need a New Relic account with an installed APM agent with distributed tracing enabled. If you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found