[Paper Review] IVOA Recommendation: SAMP - Simple Application Messaging Protocol Version 1.3
This IVOA Recommendation specifies SAMP 1.3, a messaging protocol enabling interoperability among astronomy software tools via a central hub that supports asynchronous, event-based, and RPC-like communication. It enhances security, extensibility, and type safety over its predecessor PLASTIC, using named parameters, structured data types (string, list, map), and a standardized lockfile mechanism for hub discovery and client registration across desktop and web environments.
SAMP is a messaging protocol that enables astronomy software tools to interoperate and communicate. IVOA members have recognised that building a monolithic tool that attempts to fulfil all the requirements of all users is impractical, and it is a better use of our limited resources to enable individual tools to work together better. One element of this is defining common file formats for the exchange of data between different applications. Another important component is a messaging system that enables the applications to share data and take advantage of each other's functionality. SAMP builds on the success of a prior messaging protocol, PLASTIC, which has been in use since 2006 in over a dozen astronomy applications and has proven popular with users and developers. It is also intended to form a framework for more general messaging requirements.
Motivation & Objective
- To enable seamless interoperability between independently developed astronomy software tools without requiring monolithic integration.
- To address limitations in the prior PLASTIC protocol, including weak typing, insecure identity management, and lack of extensibility.
- To provide a standardized, language-agnostic framework for application messaging that supports both desktop and web-based applications.
- To improve security through separation of public and private identifiers and structured error handling.
- To support extensibility via a standardized MType (message-type) vocabulary and extensible data structures.
Proposed method
- Uses a central hub as a message broker for publish/subscribe and RPC-style communication between clients.
- Defines a minimal, extensible data model using only three core types: string, list, and map, with conventions for encoding numbers and booleans as strings.
- Introduces a standardized lockfile (.samp) for hub discovery, with language- and OS-agnostic location and parsing rules.
- Supports two profiles: Standard (desktop) and Web (browser-based), with distinct communication patterns and security considerations.
- Employs named parameters (maps) instead of positional parameters (lists) for improved clarity, extensibility, and support for optional arguments.
- Defines a formal MType system for message semantics, with extensible vocabularies and a reserved namespace (x-samp) for future extensions.
Experimental results
Research questions
- RQ1How can loosely-coupled astronomy software tools be made to interoperate effectively without requiring monolithic integration?
- RQ2What architectural and protocol-level improvements are needed to overcome limitations in the PLASTIC protocol, particularly in security, typing, and extensibility?
- RQ3How can a messaging protocol support both desktop and web-based applications with consistent semantics and secure communication?
- RQ4What mechanisms ensure reliable hub discovery and client registration across different operating systems and programming languages?
- RQ5How can message semantics be standardized and extended in a way that supports evolving use cases in astronomy software integration?
Key findings
- SAMP 1.3 introduces a secure, extensible messaging framework that enables interoperability between independently developed astronomy applications via a central hub.
- The protocol improves on PLASTIC by using named parameters (maps) instead of positional lists, enhancing readability and support for optional parameters.
- Separation of public identifiers (for display) and private IDs (for routing) prevents application spoofing, significantly improving security.
- The introduction of a standardized .samp lockfile enables consistent hub discovery across platforms, including Windows, with language-independent parsing.
- The Web Profile enables secure, browser-based communication using HTTP and URL-based message routing, extending SAMP’s reach beyond desktop applications.
- The hub can now generate and forward error responses (e.g., samp.noresponse) on behalf of clients, improving error handling and reliability in distributed communication.
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.