Global Feed Post Login
Replying to Avatar ben

relays scale well. we’re dealing with small json blobs and read heavy workloads. this lends extremely will to caching and horizontal scaling.

the hard part is the clients. in a permissionless network, clients will be bad actors. for your client to work well it must use sane data access patterns.

concretely:

- get the client’s websocket connection mgmt in order

- get the client’s data access patterns in order. batch queries, cache locally, etc

- harden your relays with rate limiting for stomping out bad clients

- implement good caching for your clients needs

nostr:nevent1qqs2ztln6vaff7jq34c7ys67vwp8qpj87rxncrqf64hv9nry65tykscpr9mhxue69uhk2umsv4kxsmewva5hy6twduhx7un89ujnp7pf

Avatar
semisol 1mo ago

Some analytics from Nostr.land shows that many old events are rarely requested.

I am considering a dynamic tiering strategy where the age, access frequency and “position” of the event (relative to similar ones) is used to send it off to archival or (more likely) zstd it.

I do not cache indexes due to the high complexity and low benefit.

Reply to this note

Please Login to reply.

Discussion

No replies yet.