Best Practices

Tips for optimal and performant use of the Drock API.

Caching

To ensure the API remains fast, we recommend caching responses client-side to reduce unnecessary API calls, particularly for blog lists that change infrequently.

Rate Limiting

Always check the status codes of your responses. If you receive a transient error (5xx), implement a "retry" strategy with exponential backoff.

Data Cleanup
Always use the clean=true parameter if you don't need to display images transmitted by the API, this saves bandwidth.