0
I would like to know the most cost/benefit way to monitor changes in the value of an attribute returned by a JSON format URL. I mean, I have the URL of an API that returns something like:
{"high": 340.0, "volume": 261.83}
And I would like to create a service to call this URL times and times and notify me if the value of the "high" attribute meets a condition, be it higher or lower than an x value, for example. It can be in any language. Someone has already created something like this?
To improve the performance of this you will have to increase the time between requests, however your system will have a lower precision when responding to the change in value.
– mau humor
I don’t understand the comment. Increase time? Let’s say every 10min, what is your suggested implementation?
– rodrigorf
You ask about cost/benefit. Benefit: Accuracy in response, cost: Performance by constantly ordering the server. or Benefit: Low number of requests and good performance, cost: Low precision. I expressed myself badly in the first comment, I was in a hurry.
– mau humor
Suggested implementation? It depends, what will happen when the value changes? Will you update/create something in the database? file? access another server? Or it will simply warn the user?
– mau humor
Just notify even, for now I just wish I knew how to monitor the change. I know that the reaction to monitoring can help define the final choice of language but wanted suggestions of how something like this is done around, should I create a console app and let it run uninterruptedly taking the values and testing the condition? Is there a free service like https://visualping.io or something? Other languages like ruby, python or Node.js can do this easily?
– rodrigorf