Web services: a public HTTP service on Voroa
What a web service is, how it differs from a background worker or a static site, and how a public HTTP service gets its address and certificate on Voroa.
What this covers
A web service is a long-running process that listens for HTTP requests and answers them. It is the most common kind of service on any hosting platform: an API, a server-rendered site, a dashboard. Two things separate it from the other service types. It has a public address, so the platform has to route traffic to it and hold a certificate for it. And it has to listen on the port the platform tells it to listen on, which is why your code reads the port from an environment variable instead of hardcoding a number.
A dedicated reference page for web services is not published in the Voroa docs today. Creating and deploying one is fully covered by the guides below.