Skip to content

Add caching to Agent Remote Configuration handling#2337

Merged
simitt merged 10 commits intoelastic:masterfrom
simitt:2220-cm-caching
Jul 2, 2019
Merged

Add caching to Agent Remote Configuration handling#2337
simitt merged 10 commits intoelastic:masterfrom
simitt:2220-cm-caching

Conversation

@simitt
Copy link
Copy Markdown
Contributor

@simitt simitt commented Jun 26, 2019

closes #2220

I did look at a couple of different go caching libraries, but decided to go for the same one that we already use in the sourcemap handling, patrickmn/go-cache, to avoid adding new dependencies. Since this library hasn't changed in the last 2 years, we might want to consider moving to a more maintained one at some point. Before doing so we should have proper integration testing in place so we can run a macro benchmark rather than a micro benchmark, taking into account different cache expiration strategies of underlying cache implementations.

@simitt simitt changed the title 2220 cm caching Add caching to Agent Remote Configuration handling Jun 26, 2019
@simitt simitt self-assigned this Jun 27, 2019
@simitt simitt requested review from jalvz and removed request for jalvz June 27, 2019 09:44
@jalvz
Copy link
Copy Markdown
Contributor

jalvz commented Jun 27, 2019

Since this library hasn't changed in the last 2 years, we might want to consider moving to a more maintained

Either is fine by me, but you can also flip this statement on its head and say that this one is "stable" rather than "unmaintained" - not all software has to keep changing forever.
OTOH, with the number of dependencies that we already have, one more or one less is not an issue.

Good job so far, thorough testing as always 💯

@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Jul 1, 2019

jenkins, run the tests please

@simitt simitt merged commit 3d7fda0 into elastic:master Jul 2, 2019
simitt added a commit to simitt/apm-server that referenced this pull request Jul 2, 2019
simitt added a commit that referenced this pull request Jul 2, 2019
* Add cache to agent config management

closes #2220
@simitt simitt deleted the 2220-cm-caching branch July 2, 2019 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ACM] Optimization / caching

3 participants