The Inbound API Rate Limiting pattern protects ServiceNow scripted REST APIs from excessive requests that could degrade system performance or indicate malicious activity. This pattern uses GlideCache to maintain request counters per client identifier (IP address, API key, or user) within defined time windows.

When request limits are exceeded, the API returns HTTP 429 Too Many Requests responses with appropriate Retry-After headers, giving legitimate clients guidance on when to retry. The pattern also logs potential abuse attempts for security monitoring and can be configured with different limits for different API endpoints or client types.

The implementation leverages ServiceNow's distributed cache system to ensure rate limits work consistently across multiple application nodes in clustered environments, making it suitable for high-availability production systems.