API Services Caching
NeonDaniel opened this issue · comments
I missed this when I approved and merged #2. In NeonAPIProxyController
, API classes are instantiated per-query; this means that the cached session is never used. I think the simple solution here is for service_class_mapping
to move into __init__
and reference instances of each class.
Related to this, we need to define what the config passed here looks like and what environment variables can be expected/where those are set.
Also related to config, unit tests are failing https://github.com/NeonGeckoCom/neon_api_proxy/actions/runs/1031110913
Also related to config, unit tests are failing https://github.com/NeonGeckoCom/neon_api_proxy/actions/runs/1031110913
Please see #5
Resolved by #5