正确的方法定期检查新数据的API? [英] Proper way to periodically check an api for new data?

查看:181
本文介绍了正确的方法定期检查新数据的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有定期检查一个API,用于更新的数据取之有道。我在寻找比用延时定时器while循环更有效的解决方案。

I was wondering if there is a proper way to periodically check an api for updated data. I'm looking for a more efficient solution than a while loop with a delay timer.

有没有可以检查,看看是否是内容更新的任何标准头文件(以跳过previous结果比较换新?)

Are there any standard headers that can be checked to see if content was updated (in order to skip comparing previous results to the new ones?)

补充说明
我使用python的时刻,但这个是关于所有编程语言的广泛问题。

Additional notes I using python at the moment but this is a broad question regarding all programming languages.

推荐答案

您可能想看看条件请SPEC 缓存规格

这篇关于正确的方法定期检查新数据的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆