Building UWS applications¶
Universal Worker Service (UWS) is an IVOA standard for writing possibly-asynchronous web services for astronomy. Safir provides a comprehensive library for writing services that use this standard. In addition to implementing the UWS protocol, this library dispatches the underlying work to an arq worker, allowing that worker to be based on a Rubin Science Pipelines stack container and reuse the astronomy code written for Rubin Observatory.
Applications built with this framework have three components:
A frontend web service that takes requests that follow the UWS protocol.
A backend arq worker, possibly running on a different software stack, that does the work.
A database arq worker that handles bookkeeping and result processing for the backend worker.
Incoming requests are turned into arq jobs, processed by the backend worker, uploaded to Google Cloud Storage, recorded in a database, and then returned to the user via a frontend that reads the result URLs and other metadata from the database.