Skip to content

best practice on applying rate limits to websockets #539

@jcheese1

Description

@jcheese1

naively, i thought of just using the Rate Limiting API and just doing this inside onMessage:

const { success } = await env.MY_RATE_LIMITER.limit({ key: userId })

but im wondering if I'm missing something here? Is there a best practice on this somewhere?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions