A System API that communicates to an underlying MySQL database is deployed to CloudHub. The DevOps team requires a readiness endpoint to monitor all system APIs.
Which strategy should be used to implement this endpoint?
A.
Use an existing resource endpoint of the API
B.
Create a dedicated endpoint that responds with the API status and reachability of the underlying systems
C.
Create a dedicated endpoint that responds with the API status only
D.
Create a dedicated endpoint that responds with the API status and health of the server
A readiness endpoint answers a more specific question than whether the Mule process is merely running: is this application ready to service business traffic successfully? For a System API whose business functionality depends on MySQL, readiness requires both the API itself and its critical downstream dependency to be usable.
A dedicated readiness endpoint is preferable to reusing an existing business resource because monitoring must not generate business-side effects or depend on arbitrary resource semantics. The endpoint should perform lightweight checks that establish application readiness and verify reachability of required underlying systems such as the database.
Returning only the API's local status could produce a false-positive readiness result when the Mule application is running but MySQL is unreachable. Checking the server alone has the same weakness: infrastructure health does not establish business-service readiness. Modern Mule deployment environments likewise distinguish availability/readiness signals from simple process existence; readiness is intended to establish whether the deployed service is available for processing traffic.
Therefore, the most operationally meaningful design is a dedicated endpoint reporting the API's status together with connectivity to its essential underlying systems.
Reference topics: Readiness versus liveness; dependency health; System API monitoring; production operational endpoints.
Official documentation: https://docs.mulesoft.com/runtime-fabric/latest/deploy-mule-app-anypoint-controller
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit