loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Paper Unlock

Authors: Danail Penev and Phil Trinder

Affiliation: School of Computing Science, University of Glasgow, G12 8QQ, Scotland

Keyword(s): Web Applications, Security, Fault Tolerance.

Abstract: Modern web applications must be secure, and use authentication and authorisation for verifying the identity and the permissions of users. Programming language reliability mechanisms commonly implement web application security and include exceptions, actors and futures. This paper compares the performance and programmability of these three reliability mechanisms for secure web applications on the popular Scala/Akka platform. Key performance metrics are throughput and latency for workloads comprising successful, unsuccessful and mixed requests across increasing levels of concurrent connections. We find that all reliability mechanisms fail fast: unsuccessful requests have low mean latency (1-2ms) but dramatically reduce throughput: by more than 100x. For a realistic authentication workloads exceptions have the highest throughput (187K req/s) and the lowest mean latency (around 5ms), followed by futures. Our programmability study focuses on the available attack surface measured as code b locks in the web application implementation. For authentication and authorisation actors have the smallest number of code blocks for both our benchmark (3) and a sequence of n security checks (n + 1). Both futures and exceptions have 4 (2n) code blocks. We conclude that Actors minimise programming complexity and hence attack surface. (More)

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 54.162.130.75

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Penev, D. and Trinder, P. (2020). Comparing Reliability Mechanisms for Secure Web Servers: Comparing Actors, Exceptions and Futures in Scala. In Proceedings of the 16th International Conference on Web Information Systems and Technologies - WEBIST; ISBN 978-989-758-478-7; ISSN 2184-3252, SciTePress, pages 51-58. DOI: 10.5220/0010017200510058

@conference{webist20,
author={Danail Penev. and Phil Trinder.},
title={Comparing Reliability Mechanisms for Secure Web Servers: Comparing Actors, Exceptions and Futures in Scala},
booktitle={Proceedings of the 16th International Conference on Web Information Systems and Technologies - WEBIST},
year={2020},
pages={51-58},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0010017200510058},
isbn={978-989-758-478-7},
issn={2184-3252},
}

TY - CONF

JO - Proceedings of the 16th International Conference on Web Information Systems and Technologies - WEBIST
TI - Comparing Reliability Mechanisms for Secure Web Servers: Comparing Actors, Exceptions and Futures in Scala
SN - 978-989-758-478-7
IS - 2184-3252
AU - Penev, D.
AU - Trinder, P.
PY - 2020
SP - 51
EP - 58
DO - 10.5220/0010017200510058
PB - SciTePress