README: performance

This commit is contained in:
Alex Gleason 2023-04-18 19:31:02 -04:00
parent 7b188170eb
commit 433459d808
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -250,6 +250,10 @@ If you're building your own relay, make it compatible with [strfry plugins](http
If you're writing software that deals with Nostr events in JavaScript or TypeScript, you can import this library and use its functions directly. If you're writing software that deals with Nostr events in JavaScript or TypeScript, you can import this library and use its functions directly.
### Is performance good?
It depends on which policies you use, but the short answer is "yes." Even policies that rely on sqlite (such as `rateLimitPolicy` and `antiDuplicationPolicy`) perform well. You should place those policies at the end of your pipeline so that synchronous policies have the chance to reject sooner. You can also mount a tmpfs volume and pass a `databaseUrl` option into those policies to serve their database from memory.
## License ## License
This is free and unencumbered software released into the public domain. This is free and unencumbered software released into the public domain.