element-hq / element-hq/synapse

Add ability to rate limit messages per room

Open
#16,021 1 comment 1 reaction 0 assignees View on GitHub
A-Rate-Limit O-Uncommon S-Tolerable T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#16021](https://github.com/matrix-org/synapse/issues/16021).

---

**Description:**

I am building an RFQ (request for quotes) system with Matrix/Synapse.

I'd like to have the ability to set per room rate limits.

- "Request for quotes" should be rate limited (because requesting a quote causes quote responders to do work)
- "Response to quote" should not be rate limited (because a quote responder must be able to respond to many simultaneous quotes)

What is the best way to accomplish this with Matrix today?

I see matrix supports `rc_invites` `per_room`, but not `rc_message` `per_room`

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how Synapse currently handles the rc_invites per_room setting and the existing rc_message rate limit configuration. Define how per-room message limits and message-type exceptions should be configured, then confirm that the resulting behavior meets the request for rate-limited quote requests and unrestricted quote responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.