Extracting formats of service messages with varying payloads

Md Arafat Hossain, Jun Han, Jean-Guy Schneider, Jiaojiao Jiang, Ashad Kabir, Steve Versteeg

Research output: Contribution to journalArticlepeer-review

Abstract

Having precise specifications of service APIs is essential for many Software Engineering activities, but unfortunately available documentation of services is often inadequate and/or imprecise and hence cannot be fully relied upon. Generating service documentation manually is a tedious and error-prone task, especially in light of changes to services, and, therefore, there is a need for automated support in generating service documentation. In this work, we present a novel approach to infer the API of service by analyzing recorded messages sent to and received from this service. Our approach includes a novel, two-level clustering technique to cluster messages, a step that many existing approaches to infer message formats fail to perform precisely in the presence of significant
variation of payload information of the available messages. We have evaluated our approach on message traces from four different, real-world services. The experimental result shows that our approach is more effective than existing techniques in extracting correct message formats from recorded messages.
Original languageEnglish
Article number71
Pages (from-to)1-31
Number of pages31
JournalACM Transactions on Internet Technology
Volume22
Issue number3
Early online date01 Feb 2022
DOIs
Publication statusE-pub ahead of print - 01 Feb 2022

Fingerprint

Dive into the research topics of 'Extracting formats of service messages with varying payloads'. Together they form a unique fingerprint.

Cite this