rate limit messages

Value Statement

AS A busy activist sysadmin I WANT to rest assured that relay phone numbers will never be blocked from using Signal for abuse/spam SO THAT I can focus on building the app and doing activism

Acceptance Criteria

GIVEN a rate limit* of 1 msg/sec WHEN any relay channel receives more than one message per second THEN they will throttle message sending so that only one message per second is sent

*see definitions

Definitions

  • the rate limit will be whatever signal tells us is appropriate. for now, let's assume the rate limit is 1 message / second.

Implementation

  • this will likely involve a queue of some sort (unless the implementor gets fancy and uses stream or channel libraries with throttling functions built-in)
Edited by aguestuser