Skip to content

What is a Site?

A Site in Vasat is a dedicated microservice.

A site can run as a web application, but can also be a command line application or a servless application running on a cloud provider implementaion such as AWS Lambda or Azure Functions.

A Site must be registered in order for vasat nodes to communicate with each other.

A Single Microservice must has a single Site with 'isLocal = true'. The same MicroService can have any number of Remote Sites where isLocal=false

The Local Site record must have a public and private RSA Key. The Remote Site records need only a public key.

Img

When initalised as a web application with a Database, a new site object and keypair is automatically created.

Branding and metadata

A site objects name and logo are used to brand the Vasat ADmin UI. When running as a web service there is also an endpoint

/site/info

That will show publicly avilable information about the site as well as any additional information placed in the 'meta' field

json
{
  "status": 200,
  "message": "OK",
  "payload": {
    "initialised": true,
    "site": {
      "id": "12bf5cd9-ce1f-4a76-8998-f968141ec4e0",
      "name": "GMS",
      "logo": "https://vasat.io/assets/images/logo.svg",
      "publicKey": "....",
      "baseURL": "https://gms.vasat.io"
    },
    "services": []
  },
  "time": 1681810940072,
  "version": "2.3.3"
}