Skip to Content
Menu

159.09

v 17.0 Third Party 3
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 73
Technical Name ratelimiter
LicenseOPL-1
Websitehttps://ekika.co/odoo-rate-limiter
Versions 17.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 73
Technical Name ratelimiter
LicenseOPL-1
Websitehttps://ekika.co/odoo-rate-limiter
Versions 17.0
Supported Versions 17.0
Community
Enterprise

https://www.ekika.co/support

Odoo Rate Limiter

EKika Ratelimiter
Background Image

Time-Based Rate Limiting Module for Odoo

Overview

The Time-Based Rate Limiting module is a Python implementation designed to control access to resources or functionalities based on specified time intervals. Utilizing a token bucket algorithm, this module regulates the rate at which requests or actions can be performed, preventing abuse and ensuring optimal use of system resources.

Features

  • Configurable Rates: Define rate limits using the Rate class, specifying the maximum number of actions allowed within a given time duration (e.g., requests per second, per minute, etc.).
  • Dynamic Consumption Cache: Utilizes a consumption cache to keep track of usage for different keys, enabling dynamic rate limiting based on the provided rates.
  • Exception Handling: Raises a LimitExceedException when a rate limit is exceeded, providing a clear indication that the allowed limit has been surpassed.
  • Logging: Integrates with Python's logging module to log warnings when rate limits are exceeded, helping in monitoring and troubleshooting.

You'll see how to install and configure it in below example images.

Usage

IconInstall the Module and Configure it:

API Resource Access Configure Image
Rate Limit Configuration

IconDefine Rate and Limiter Instances (For custom development):

API Resource Access Configure Image
Define Limits

IconConsume Rates (For custom development):

API Resource Access Configure Image
Consume Limits

Notes

  • The module uses a token bucket approach, where tokens are added to the bucket at a fixed rate, and actions can only be performed if tokens are available.
  • Adjust the Rate instances and the Limiter configuration based on specific use cases and requirements.

Disclaimer

This module is provided as an used to go general solution with no guarantees or warranties for your specific need. Use it at your own discretion and dependency, and consider adapting the code to meet your specific application's needs. We can assist you in case you need service based help anyway. This module works well with vanila odoo 17 community on top of Ubuntu OS.

Services EKIKA Provides

EKIKA is your destination for expert Odoo ERP implementation and customization. We pride ourselves on building reliable, trust-based partnerships that give you full transparency and control over your business processes.

With over 12 years of experience, we can assist you with eCommerce platforms, production planning, point-of-sale systems, managing inventory adjustments, and providing advanced field worker tracking solutions to optimize your workflows and boost operational efficiency.

Ekika Odoo Implementation

Implementation

Utilise Odoo ERP tailored for your business needs for smooth operations.

Ekika Odoo Customization

Customization

Personalized adjustments to Odoo modules for seamless management.

Ekika Odoo Support

Support

Ongoing assistance and maintenance to optimize your Odoo system's performance.

Are you struggling with disorganized operations, high operational costs, or lack of transparency in your processes? What sets us apart is our commitment to personalized solutions tailored to your unique business needs and our proactive support, ensuring seamless integration and ongoing success.

Would you like to explore Odoo ERP for your business? Schedule a free consultation with EKIKA today!

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Essential Module Backed by Exceptional Support!
by
dbenavente@tecnoweb.net
on 12/18/24, 11:41 AM

The Odoo Rate Limiter module has been a fantastic addition to our system. It’s an essential tool for managing and controlling API usage, ensuring performance and security are always optimized. The module is easy to use and integrates seamlessly into our workflows.

Once again, Anand delivered outstanding support during the implementation. His expertise and proactive approach made all the difference, helping us configure the module perfectly to meet our specific requirements.

If you’re looking for a reliable rate-limiting solution for Odoo, this module is a no-brainer. Highly recommended!


There are no comments yet!