Skip to main content
Version: 0.16.0

Plugins and applications

A Plugin and an application are two different things, and Yoke keeps them apart on purpose. A Plugin is a program: written in one language, built with that language's tools, and known by an identity such as com.example.greeter. An application is not a program. It is a description of what runs together: which units, launched from which Plugins, with which channels, parameters and order of start, delivered as one file. One Plugin can be used by many applications, including applications written by somebody else, and one application usually runs several Plugins.

An application is delivered in one of two forms, and it is the same application in both. In the application form (Yoke Application) it is a package that any account installs and runs as many times as it needs, without privilege. In the service form (Yoke Service) it is files a distribution or an image puts in place, and one deployment that the init system starts at boot. A Plugin does not know which form it runs in and does not need to.

PageWhat it covers
A Pluginwhat a Plugin is for, what it is made of, its life, the five languages, and how it differs from an application
An applicationwhat an application is for, what it is made of, its files from the project to the instance, and its life in the application form
An application as a servicethe same application in the service form: what replaces the package, where its files go, its life under the init system, and what differs from the application form

Which form you want​

The service form is for a device whose purpose is one application. An instrument, an appliance or a gateway boots into it. Its parts are installed by the distribution's package manager or built into an image, and the init system starts it with nobody present. There is one deployment per host, and its state lives at fixed paths under /var/lib/yoke/.

The application form is for everything a user runs: a development bench, a test rig, several copies of one application side by side, an application handed to a customer as a file. Each copy is an instance with its own name, its own state and its own channels, kept running by the account's guardian.

Writing an application always starts in the application form, with yoke app run --from on the working directory, whichever form it ships in (running it).