QuestionQ38

VerifiedDesigning APIs for reuse and governance

Following MuleSoft-recommended best practices for API governance and API policies, a project team has used RAML specifications to document and publish the functional requirements and detailed design definitions for its APIs. Various stakeholders have used these API specifications to implement APIs.

Later, the project team requires every API specification to be augmented with an additional non-functional requirement (NFR) that protects backend services from a high request rate according to defined service-level agreements (SLAs). The NFR’s SLAs are based on a new tiered subscription level—“Gold,” “Silver,” or “Platinum”—that must be tied to a new parameter being added to the Accounts object in its enterprise data model.

Following MuleSoft-recommended best practices, how should the project team now communicate the required non-functional requirement to stakeholders?

Explanation

SLA-based rate limiting enforces request limits according to the consuming application’s SLA tier and requires the API contract to declare the parameters expected by the policy. MuleSoft directs API designers to add the policy’s RAML snippet or trait to the API specification. A reusable RAML fragment centralizes the common requirement, while each affected API specification must reference it so implementers and consumers receive the complete API contract.

Learn more

Community Discussion

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