AWS re:Invent happy hour: Dec 1, 6 PM PST at MGM Grand RSVP

API interactions travel from a capture point into reusable fixtures and a verification gate.

Speedscale vs. WireMock for Production API Replay


Choose Speedscale when your regression suite needs to keep up with what customers actually do. WireMock gives you a way to author or record an API stub. Speedscale gives you a workflow that starts with the incoming requests and the dependency calls they trigger. You can mask the recording, use it to test a new build, and still export selected HTTP exchanges to a WireMock suite. Speedscale replay overview · WireMock recording · Speedscale WireMock export

🎯 Key Takeaways
  • Use Speedscale to turn observed requests into regression inputs and recorded downstream responses into dependency mocks.
  • Keep the WireMock suites your team already trusts. Speedscale can export supported HTTP exchanges into WireMock’s standard mapping format.
  • Apply and verify masking before sharing a capture or exporting a fixture. Diagnose the response your application returned and the mock it actually matched.

Choose what you want to maintain

If your team needs toWireMockSpeedscale
Define a specific response for a known requestExpress the desired behavior with matchers, response definitions, or scenarios.Serve a recorded response and adjust matching or transforms where the test needs it.
Build fixtures from observed HTTP requestsProxy a target and generate stub mappings from observed exchanges.Capture inbound requests and supported outbound exchanges, then use the same recording for tests and mocks.
Control sensitive data in shared test artifactsWireMock supports custom transformers for generated stubs. How the recording and stubs are handled depends on your setup.Apply an approved DLP rule in the capture cluster, then inspect the resulting snapshot before distributing it.
Check a candidate buildAn external runner sends requests and asserts the result. WireMock supplies the stub behavior.Replay against the candidate, compare with a known-good run, and configure a gate for new mismatches.

WireMock request matching · WireMock recording and transformers · Speedscale DLP rules · Speedscale replay gates

Cover the cases that were missing from the stub suite

A support portal calls a ticketing API. The authored stub returns a queued ticket, and the test verifies the confirmation screen. Real traffic can tell you which request shapes the portal actually sends and which queued, rejected, or retryable outcomes it has seen. A new test can then start from a specific observed exchange. That gives the team a better starting point than guessing whether a new edge case matters to users.

With Speedscale, the portal’s inbound request can become the replay input, and the recorded response from the ticketing API can become the mock. If the portal returns a different status after a refactor, the test can examine whether the request changed, whether the dependency mock matched, and how the application interpreted the reply. WireMock remains valuable for deliberately authored cases, including fault responses a team wants to test before it has ever seen them in production. Speedscale mocks · WireMock fault simulation

Capture policy is part of that workflow. A support note can contain sensitive text under a harmless-looking key. Speedscale lets a team inspect suggested fields, approve masking, and apply the rule to new captures in its cluster. Use fresh masked traffic for the fixture you distribute. The export format carries recorded response content into the mapping, so artifact inspection matters even when the target suite only checks a single status code. Discovering sensitive fields · Export format

Export one interaction from a recording

This example uses synthetic traffic from the mock-lab support ticket fixture. It assumes proxymock and jq are installed and that a standalone WireMock 3.x instance is running on loopback port 18082 with an empty mapping set. From the mock-lab checkout, use a one-exchange export so selection is unambiguous. Install proxymock · Run WireMock standalone

cd labs/dlp-field-discovery
proxymock export wiremock --in ./proxymock/recording/support.example \
  --limit 1 --out ./mappings.json
jq -e '.mappings | length == 1 and .[0].request.urlPath == "/tickets" and .[0].request.method == "POST" and .[0].response.status == 202' ./mappings.json
LLM prompt for this step
In my mock-lab checkout, work in labs/dlp-field-discovery. Export exactly one HTTP interaction from ./proxymock/recording/support.example with proxymock export wiremock to ./mappings.json. Use jq to check that there is one mapping for POST /tickets with a 202 response. Check the installed command's help before adapting flags. Report the commands, results, and anything you could not verify.

Load the mapping and check the response

From the same directory, send the exported file to WireMock and check the response. The fixture’s recorded status is 202 and the response body shows a queued ticket.

curl -fsS -H 'Content-Type: application/json' \
  --data-binary @mappings.json http://127.0.0.1:18082/__admin/mappings/import
http_status=$(curl -fsS -X POST -o ./ticket-response.json -w '%{http_code}' \
  http://127.0.0.1:18082/tickets)
test "$http_status" = 202
jq -e '.status == "queued"' ./ticket-response.json
LLM prompt for this step
From labs/dlp-field-discovery, use the running WireMock 3.x instance at 127.0.0.1:18082 and import the ./mappings.json produced in the previous step. Send POST /tickets, save ./ticket-response.json, and verify HTTP 202 and body status queued with jq. If an installed command differs, check its help first. Report what you ran and observed.

Run this workflow with an LLM

Whole-workflow LLM prompt
Read https://speedscale.com/blog/speedscale-vs-wiremock-production-api-replay/ and inspect my mock-lab project's instructions first. With proxymock, jq, and an empty WireMock 3.x instance at 127.0.0.1:18082 available, follow the export and import steps in order using labs/dlp-field-discovery. Report the mapping count, method, path, HTTP status, response status field, and any checks you could not verify.

Start with Speedscale on your next regression

The export proves you can bring recorded HTTP behavior into an existing mock suite. For distinct cases on the same route, add or verify the match criteria you need. The export matches method, path, and recorded query values. A case selected by JSON body or a request header needs a matcher that includes that field. The export also takes only inbound traffic by default. To stub a dependency your service calls, add --inbound-only=false --service <dependency host>. Speedscale export format · WireMock matchers

Pick the next bug your team would otherwise turn into a handmade stub. Capture the whole service interaction in Speedscale and use the recording to test the fix against a new build. That gives you a regression fixture you can run again and a path to share individual responses with teams that already use WireMock. Start with proxymock

Frequently asked questions

Can Speedscale export WireMock stubs?

Yes. Speedscale can export HTTP recordings as WireMock stub mappings from a Speedscale snapshot or a local proxymock recording. The export uses method, path, and recorded query values as the default request match criteria.

Can I use WireMock and Speedscale together?

Yes. Keep existing WireMock suites and use Speedscale to capture, mask, and replay new production-derived scenarios. Export selected HTTP interactions when another team needs WireMock mappings.

When should I choose Speedscale over WireMock?

Choose Speedscale when you need production-derived regression tests that reuse incoming requests and recorded dependency responses. WireMock is a good fit when the deliverable is a focused API stub with explicit matching and behavior.

Stop writing API mocks by hand

proxymock records real traffic from your running app and replays it as mocks for HTTP, gRPC, Postgres, Kafka, and more. Install locally, activate once, and start recording.