-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caching feature #21
Comments
Hi, thank you for your proposal. I.e. within a scaled environment with multiple logstash instances, different caching timeout settings could lead to inconsistent data. Worst case within the timeframe of . For me the best approach here seems to have such caching on a central instance (the REST service itself or a reverse -- microservice -- proxy cache) to achieve consistent event processing. The But long story short: |
Even 5 sec of caching saves CPU - for example if you have a bunch of records are coming which do the same queries with the same arguments on their processing. |
Hm, well, I wonder how to easily/efficiently identify a http request... It might consist of an |
Hey @gandalfb, basicly request can be counted as unique if it returns the same result. This consists of:
As result by doing two the same request you'll guaranteed receive the same response (if server state, env settings, and other remove stuff keeps the same) |
@logical-and cache also can be implemented on serverside ( where the api lives ). |
Hey there, thank you for the plugin. Only one thing is missing in plugin to be perfect - is caching.
Add please option to cache value (refreshInterval) in case of successful response. Here is already implemented, so you can just copy-paste (https://github.com/angel9484/logstash-filter-lookup)
The text was updated successfully, but these errors were encountered: