How to Set Up API Rate Limiting in DreamFactory?

Hi,

I am working on a project using DreamFactory as my API management platform. I want to implement rate limiting for the APIs to control the number of requests users can make within a specific time frame.

From what I understand, DreamFactory has advanced features for API management but I am unsure where to configure rate limiting. Do I need to use a specific service or module within DreamFactory for this: ?? Can this be done through the admin interface, or will I need to write custom scripts: ??

Additionally, are there best practices or recommended settings for rate limiting in production environments: ?? I want to ensure the application is performant while protecting against abuse.

If anyone has set up rate limiting successfully in DreamFactory…, I would appreciate a step-by-step guide or links to documentation that can help. I have also gone through this doc https://guide.dreamfactory.com/docs/limiting-and-logging-api-requests-servicenow but still need some more help.

Thanks in advance !!

Looking forward to hearing your insights.

With Regards,
Daniel Jose

Hi Daniel! Thanks for utilizing DreamFactory.

Rate Limiting is an option within our commercial product. We have various options for testing whether that be in our cloud or in your own environment, if you’d like to get started with a trial of our entire commercial suite, our team would be happy to get you setup.

https://guide.dreamfactory.com/docs/limiting-and-logging-api-requests/#dreamfactory-api-rate-limiting

Hi Daniel,

DreamFactory supports API rate limiting via Roles & API Limits, which can be configured through the Admin Interface (no custom scripts needed). Here’s a quick setup guide:

  1. Log into the Admin Console.
  2. Go to Roles > [Select Role] > Rate Limits tab.
  3. Set limits like X requests per Y minutes/hour/day.
  4. Save the changes.

This will apply limits per user/session based on the assigned role.

Best Practices for Production:

Use lower limits for anonymous or public roles.
Monitor usage via Logs > API Usage.
Combine rate limiting with API key validation and IP filtering.

The link you mentioned is a good start. For detailed controls, also check: DreamFactory Docs - Rate Limiting.

Best