Page MenuHomeSoftware Heritage

api/server: Do not read configuration at each request
ClosedPublic

Authored by ardumont on Feb 13 2019, 11:54 PM.

Details

Summary

This is more performant but also avoids cluttering the logs
of the service in production.

The counterpart is it allows less dynamicity during the change of
configuration.

This is equivalent to what has been done in the scheduler [1]

[1] rDSCHc701c8823b694aed7ce5795ceca6efd5ac6c1fa5

Test Plan

tox

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.