I'm starting a new build lights project where I'll be using the REST API.
I want to get the last status for each build configuration. Currently, the only way I see, is to get the list of all build configurations, cycling over them, and retrieving the last build status. Is there perhaps a simpler way, e.g. by making one REST call?
Then, are there any pointers on best practices to poll the REST API? There is a bit of a trade-off, as one does not want to poll too often. This can be minimised somewhat by keeping HTTP connections open, which will reduce network IO overheads, but of course the number of requests will remain the same. What would a typical good/sane polling interval be?
What I've done before, was to build a server plugin and to push build events, but building such a system is a lot more complex, which makes it difficult for others to use my project, so I'd like to go for this simpler approach.