Database Rate Limiting via Cache Windowed Counters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database systems face challenges in managing excessive user postings, known as spam, which can overwhelm system resources and annoy community members, particularly in open networks where moderation is difficult and inefficient.

Innovation Solution

An extensible content moderation framework that allows for declarative configuration of moderation rules, enabling selective actions based on user and content criteria, including rate-limiting rules to control and manage user postings effectively.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If open networks allow external users to post content freely, then user participation and content diversity improve, but excessive spam postings overwhelm system resources and annoy community members

Engineering Contradiction:
Improveuser participationVSAvoidspam postings
Core Design Contradiction:
Adaptability or versatilityVSObject-affected harmful factors

Solution Approach 1:

The system performs preliminary rate limit checks before allowing content postings. By pre-establishing rate limit rules and checking user posting histories against these rules before content is submitted, the system prevents spam postings from overwhelming resources while still allowing legitimate user participation. This proactive approach blocks harmful content before it consumes system resources.

Inventive Principle:
Principle #10Preliminary action

2Object-affected harmful factors

If moderation rules are applied to control user postings, then spam is reduced and system resources are protected, but moderation complexity and configuration difficulty increase

Engineering Contradiction:
Improvespam controlVSAvoidmoderation configuration
Core Design Contradiction:
Object-affected harmful factorsVSDevice complexity

Solution Approach 1:

The rate limiting system uses universal, configurable rules that can apply to multiple users and content types simultaneously. A single rate limit rule can govern postings across different networks, user groups, and content categories, reducing the need for complex individual configurations. The system provides a unified moderation framework that handles diverse scenarios through parameterized rules rather than requiring separate complex configurations for each case.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Reliability

If rate limiting is implemented to control posting frequency, then system resources are protected from overload, but user flexibility and posting freedom are reduced

Engineering Contradiction:
Improvesystem resource protectionVSAvoiduser posting freedom
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The rate limiting system dynamically adjusts restrictions based on user behavior patterns and content types. Rather than applying static, uniform limits to all users, the system adapts rate limits based on user history, network context, and content category. This dynamic approach protects system resources from spam while maintaining user flexibility for legitimate posting activities, as users are not uniformly restricted but rather subject to context-appropriate limits.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS10942903B2Rate limiting in a moderation framework of a database system
Publication Date: 2021.03.09 SALESFORCE INC
  • US10942903B2 patent drawing
  • US10942903B2 patent drawing
  • US10942903B2 patent drawing

AI summary

Some external users in a public on-line community may post excessive numbers of items, causing annoyance to others and unnecessary loading on database resources. A robust moderation framework enables an individual community moderator or admin to specify a set of rules and actions to mitigate this problem. Scalable, performant rate limiting rules employ windowed counters, separately for each rule, with the counters maintained in cache memory resources outside the main database.