QuestionQ50

VerifiedManaging APIs and integrations

Refer to the exhibit.

Question Image

One back-end system called by the API implementation enforces request-rate limits for each particular client. The back-end system and API implementation are both deployed across several non-production environments, including staging, as well as a production environment.

The back-end system’s rate limiting applies in every non-production environment. Production, however, has no rate limiting.

What is the most effective way to perform performance testing of the API implementation in the non-production staging environment?

What is the most effective way to perform performance testing of the API implementation in the non-production staging environment?

Explanation

A mock service configured to reproduce the production back-end system’s performance characteristics allows the API implementation to be tested at the required load without the staging back end rejecting requests because of its rate limit. It also preserves the API implementation’s normal outbound integration path, making measured latency, throughput, and resource behavior more representative than unit-test stubs, scaled extrapolation, or code that bypasses the dependency. MuleSoft’s mocking-service documentation describes mock servers as simulated servers for testing that accept requests and provide responses, while its rate-limiting documentation confirms that requests are rejected once the configured limit is reached.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!