[Paper Review] HTTP Mailbox - Asynchronous RESTful Communication
HTTP Mailbox proposes a RESTful, asynchronous messaging system that enables full HTTP method support—including PATCH, PUT, and DELETE—via a store-and-forward mailbox abstraction, allowing clients to send messages even when recipients are unreachable. It achieves high reliability (0.01% error rate) and supports pipelining and group messaging, reducing network overhead in distributed systems.
Traditionally, general web services used only the GET and POST methods of HTTP while several other HTTP methods like PUT, PATCH, and DELETE were rarely utilized. Additionally, the Web was mainly navigated by humans using web browsers and clicking on hyperlinks or submitting HTML forms. Clicking on a link is always a GET request while HTML forms only allow GET and POST methods. Recently, several web frameworks/libraries have started supporting RESTful web services through APIs. To support HTTP methods other than GET and POST in browsers, these frameworks have used hidden HTML form fields as a workaround to convey the desired HTTP method to the server application. In such cases, the web server is unaware of the intended HTTP method because it receives the request as POST. Middleware between the web server and the application may override the HTTP method based on special hidden form field values. Unavailability of the servers is another factor that affects the communication. Because of the stateless and synchronous nature of HTTP, a client must wait for the server to be available to perform the task and respond to the request. Browser-based communication also suffers from cross-origin restrictions for security reasons. We describe HTTP Mailbox, a mechanism to enable RESTful HTTP communication in an asynchronous mode with a full range of HTTP methods otherwise unavailable to standard clients and servers. HTTP Mailbox also allows for multicast semantics via HTTP. We evaluate a reference implementation using ApacheBench (a server stress testing tool) demonstrating high throughput (on 1,000 concurrent requests) and a systemic error rate of 0.01%. Finally, we demonstrate our HTTP Mailbox implementation in a human-assisted Web preservation application called “Preserve Me!" and a visualization application called "Preserve Me! Viz".
Motivation & Objective
- To address the limitations of synchronous, stateless HTTP in web services, particularly the unavailability of full HTTP methods like PATCH, PUT, and DELETE in standard browsers.
- To overcome client-side barriers in using non-GET/POST methods due to HTML and browser restrictions.
- To provide a reliable, asynchronous communication layer that decouples senders from recipients, ensuring message delivery even during server outages.
- To reduce network overhead and improve scalability in group messaging through message pipelining and broadcast/multicast support.
Proposed method
- Uses HTTP POST to send messages (requests/responses) to a central mailbox URI, encapsulating them in the message body.
- Employs a store-and-forward model where messages are persisted and delivered asynchronously, decoupling sender and recipient.
- Supports message pipelining by bundling multiple messages into a single HTTP POST request using the application/http MIME type.
- Enables multicast and broadcast messaging by allowing a single message to be addressed to multiple recipients via a single mailbox submission.
- Retrieves messages via HTTP GET, with recipients accessing messages in a chain using next/previous/first/last URI links.
- Implements response pagination (planned) to optimize retrieval performance under high concurrency.
Experimental results
Research questions
- RQ1Can a RESTful, asynchronous messaging system be built on top of standard HTTP that supports all HTTP methods, even in constrained client environments?
- RQ2How does the performance and reliability of such a system scale under high concurrency and intermittent network conditions?
- RQ3To what extent can message pipelining and group messaging reduce network overhead compared to point-to-point HTTP communication?
- RQ4What is the impact of indirection through a centralized mailbox on message delivery latency and system availability?
Key findings
- The reference implementation achieved a systemic error rate of only 0.01% across over 83,000 send and retrieve operations under high concurrency.
- The system demonstrated high throughput, handling 1,000 concurrent requests efficiently, with a round-trip time of 300–400 ms per GET request at concurrency level 1.
- Message pipelining using the application/http MIME type significantly reduced network cycles, especially in group messaging scenarios.
- The system successfully decoupled sender and recipient, enabling non-blocking message delivery even when recipients were unreachable.
- The HTTP Mailbox model enabled full use of RESTful HTTP methods (e.g., PATCH, PUT) in environments where they were previously unsupported due to browser or server limitations.
- The implementation was successfully integrated into the "Preserve Me!agger" web preservation application, demonstrating real-world utility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.