I'm using the highly popular jsonwebtoken
package for node. Signing and verifying are typically performed synchronously, but async options are also provided.
I thought that the operations involved are neither data-bound nor computationally expensive, so there is no risk of burdening the main/user thread. I don't see a perf benefit.
So why would such operations be performed asynchronously - what is the benefit?