openfga / sdk-generator

OpenFGA Client SDK Generator
Apache License 2.0
16 stars 38 forks source link

[All SDKs] Document that we recommend having a single instantiated instance of OpenFgaClient #295

Closed rhamzeh closed 5 months ago

rhamzeh commented 8 months ago

Some folks have been re-building the OpenFGA client before every request, that leads to an unnecessary amount of additional work that leads to additional perceived latency.

We should clearly state in the README of every SDK that the client should be initialized once and then re-used