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

A stack of database trays sits beside a sequence of API messages moving through a masking chamber.

Speedscale vs. Tonic Structural for Test Data


An order service has to load a customer and their cart, call a tax provider, and save the order. The same test might need valid database relationships and a specific tax response. Those are two different artifacts. Tonic Structural starts with database state. Speedscale starts with API exchanges that a service handled and made. Which one you need depends on where the bug lives. Tonic Structural foreign keys · Speedscale replay overview

🎯 Key Takeaways
  • Tonic Structural is a fit for populated test databases, sensitive column detection, and relational subsetting.
  • Speedscale is a modern alternative when the test needs production API behavior, including a recorded exchange with a dependency. It masks covered fields in the capture cluster before sending captured traffic to Speedscale Cloud.
  • A single test can use a masked database and a recorded dependency response. Any identifier shared by those fixtures needs an explicit mapping or a known compatible test value.

Compare the test data each tool produces

QuestionTonic StructuralSpeedscale
What is the source?Data and schema from a connected database or supported data source.Recorded requests and responses on supported protocols.
What does discovery inspect?Columns and their schema. Optional LLM-based detection can use schema and contextual source data.Fields in captured API traffic. Optional model-assisted discovery can make recommendations on ambiguous fields for review.
Where do relationships matter?Configured foreign keys and supported consistency settings can preserve links across rows, tables, or databases.A deterministic field mask can preserve repeated-value relationships within the recorded traffic used for replay and mock matching.
What do engineers get?A generated database fixture, optionally a relational subset.A masked traffic snapshot that can serve as replay input and provide recorded downstream responses for mocks.

Tonic sensitivity scans · Tonic subsetting · Speedscale sensitive data discovery · Speedscale field masking

Use a database fixture when state is the thing under test

Consider a defect where a query joins a customer’s saved addresses to the wrong order. A useful fixture contains the order, customer, and address rows. It also includes the relationships and distributions that reproduce the bug, such as customers with both a billing and shipping address or orders with an optional shipping address. A test can then exercise the actual database, run the query, and verify the selected row.

Structural has a sensitivity scan for columns and uses generators to prepare test data. Its documented subsetting looks at foreign keys, including configured virtual foreign keys, to pull in related rows. Some generators also support consistent replacements so that, for example, an email used as an application-level join key can remain consistent across appropriately configured columns. That is valuable when you need a test environment that can run real queries and preserve the relevant shape of your data. Tonic subsetting and foreign keys · Tonic generator consistency

Use a traffic fixture when the dependency response triggers the bug

Now suppose the order service loads the correct cart but mishandles a particular reply from the tax provider. The cart rows can tell you what was submitted. They may carry no copy of the response that triggered the branch, especially if the order failed before the service saved it. The regression fixture needs the request to the order service and the tax provider’s response.

Speedscale records supported inbound and outbound exchanges. The candidate service can receive a replay of the original order request while the mock serves the recorded tax response. For configured sensitive fields, approved rules mask new captures in the customer cluster before upload. The team can then check that the recovered fixture still exercises the expected branch. For example, a generated test address needs to retain any property the application uses to select its tax behavior. Speedscale replay overview · Applying DLP rules · Generating test data

When the test needs both sources

One order test can run real database queries and writes against a prepared database while a Speedscale mock serves the tax response. This is useful when the assertion covers both the service’s handling of the reply and the persisted result. A fixture built entirely from mocked dependencies may give little evidence about real query behavior. A database fixture alone supplies the state from which you start. Speedscale service virtualization · Tonic subsetting

The integration detail is shared identity. A database generator and an API masking rule can each be consistent inside their own artifact while replacing the same original value differently. An order request that references one generated customer ID needs a matching customer row. The mock may also need to recognize a transformed version of that ID. For a small evaluation, a synthetic customer with an agreed ID across both artifacts makes this relationship explicit. The proof is the correct row selected, the intended mock response served, and the expected order state persisted.

The choice is straightforward when you start from the assertion. A query or migration needs data in the database. A failure caused by what a dependency returned needs an interaction you can replay. For a production API regression, Speedscale brings traffic capture, masking, and mocks into the same workflow. For more on how this applies to service isolation, see Speedscale service virtualization.

Frequently asked questions

When is Tonic Structural a better fit for test data?

Tonic Structural is suited to tests that need a database populated with masked or generated values and relationships across tables. Its subsetting features can create a smaller database fixture while preserving configured relationships.

When is Speedscale an alternative to database test data management?

Speedscale fits tests where the input is a recorded API request and the expected behavior depends on how a service responds to observed downstream calls. It captures supported traffic, applies configured masking rules, and uses recorded exchanges for replay and mocking.

Can one test use Tonic Structural and Speedscale together?

Yes. A test can use a prepared database for queries and writes while a Speedscale mock serves a recorded external API response. Plan how shared identifiers will line up across the fixtures and verify the expected application outcome.

See Speedscale in action

Book a 30-minute demo to see how Speedscale handles your specific stack — microservices, Kubernetes, or legacy Java services.