WeBridge: Synthesizing Stored Procedures for Large-Scale Real-World Web Applications

Author:

Hu Gansen1ORCID,Wang Zhaoguo1ORCID,Tang Chuzhe1ORCID,Shen Jiahuan1ORCID,Dong Zhiyuan1ORCID,Yao Sheng1ORCID,Chen Haibo1ORCID

Affiliation:

1. Institute of Parallel and Distributed Systems, SEIEE, Shanghai Jiao Tong University, Shanghai, China

Abstract

Modern web applications use databases to store their data. When processing user requests, these applications retrieve and store data in the database server, which incurs network round trips. These round trips significantly increase the application's latency. Previous approaches have attempted to reduce these round trips by prefetching query results or batching database accesses. However, neither method can efficiently reduce the latency when some queries depend on previous queries' results. In real-world applications, nearly 50% of the queries depend on the result of other queries. This paper presents WeBridge, the first system capable of synthesizing stored procedures for large-scale real-world web applications. First, WeBridge employs concolic execution technique to analyze the applications and generate stored procedures for hot program paths. Then, it seamlessly integrates the stored procedures into the application by extending the database access library. Finally, it improves the efficiency of the stored procedures with speculative execution. Evaluation using real-world web applications and workloads show that WeBridge achieves up to 79.8% median latency reduction and up to 2× peak throughput.

Funder

National Natural Science Foundation of China

Publisher

Association for Computing Machinery (ACM)

Reference110 articles.

1. 2020. Byte Buddy - runtime code generation for the Java virtual machine. https://bytebuddy.net/#/

2. 2020. Java JDBC API. https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/

3. 2020. MySQL 8.0 Reference Manual -- SAVEPOINT ROLLBACK TO SAVEPOINT and RELEASE SAVEPOINT Statements. https://dev.mysql.com/doc/refman/8.0/en/savepoint.html

4. 2020. PostgreSQL: Document: 13: SAVEPOINT. https://www.postgresql.org/docs/13/sql-savepoint.html

5. 2020. The Rise of REST API. https://blog.restcase.com/the-rise-of-rest-api/

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3