With Nostr being an open protocol, and client apps being able to be developed by anyone, it's important that the client apps design around best supporting relays by minimising their client app impact. Remember, if your app has 10,000+ users, and the app's relay interaction code makes relays slower - everyone suffers.
Below are some anti-patterns (things not to do), that can help with relay performance, and ultimately make your client apps faster!
Please help build upon this list - we can move to a repo.. just add comments for now.
- Updating a subscription too often (triggers new SQL queries)
- Connecting to a relay multiple times (use a single websocket)