arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.10811cs.SE
收藏

改进Web API使用日志记录

Improving Web API Usage Logging

Rediana Koçi, Xavier Franch, Petar Jovanovic, Alberto Abelló

摘要:

Web API(WAPI)是一种API,其与消费者的交互是通过互联网完成的。虽然通过互联网访问可能具有挑战性,但主要是在WAPI发展时,它使提供商有可能监控其使用情况,并了解和分析消费者的行为。目前,WAPI的使用情况主要用于流量监控和故障排除。即使它们包含有关消费者行为的宝贵信息,但供应商没有充分利用它们。在本文中,我们首先考虑应用程序开发生命周期的两个阶段,并在此基础上区分两种不同类型的使用日志,即开发日志和生产日志。对于其中的每一个,我们显示了潜在的分析(例如,WAPI可用性评估,消费者需求识别),以及可能由不合适的日志格式造成的主要障碍。然后,我们进行了一个案例研究,使用来自不同部署和不同格式的相同WAPI的日志,以证明这些障碍的发生,同时正确的日志格式的重要性。接下来,基于案例研究结果,我们提出了WAPI日志数据的主要质量问题,并解释了它们对数据分析的影响。对于每一个问题,我们都给出了一些关于如何处理它们的实际建议,以及减轻其根源的建议。

英文摘要:

A Web API (WAPI) is a type of API whose interaction with its consumers is done through the Internet. While being accessed through the Internet can be challenging, mostly when WAPIs evolve, it gives providers the possibility to monitor their usage, and understand and analyze consumers' behavior. Currently, WAPI usage is mostly logged for traffic monitoring and troubleshooting. Even though they contain invaluable information regarding consumers' behavior} they are not sufficiently used by providers. In this paper, we first consider two phases of the application development lifecycle, and based on them we distinguish two different types of usage logs, namely development logs and production logs. For each of them we show the potential analyses (e.g., WAPI usability evaluation, consumers' needs identification) that can be performed, as well as the main impediments, that may be caused by the unsuitable log format. We then conduct a case study using logs of the same WAPI from different deployments and different formats, to demonstrate the occurrence of these impediments and at the same time the importance of a proper log format. Next, based on the case study results, we present the main quality issues of WAPI log data and explain their impact on data analyses. For each of them, we give some practical suggestions on how to deal with them, as well as mitigating their root cause.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑