Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Perf and monitoring improvements to builder-api #775
This PR makes a few key improvements to open up perf for the direct DB builder API. Since getting a DB connection/making a DB call are blocking operations, we need to ensure we avoid those in the high volume paths. With the changes here, we are able to serve all high volume calls (including authentication/authorization via personal access tokens) without hitting the DB. Leveraging memcache for origin membership also allows us to make some other key simplifications. Finally, counter metrics are added for every DB API in the builder-db models.