To use a worker at your Fusio instance, you need to add the fitting worker urls at the configuration.php file. After this Fusio will automatically invoke the fitting methods in case an connection or action is created or changed. Then it is also possible to use one of the worker actions.
'fusio_worker' => [
'java' => 'my_java_worker:9090',
'php' => 'my_php_worker:9092',
'python' => 'my_python_worker:9093',
This section contains a list of supported connection types. A connection type basically represents a connection to a
popular service which is available in most programming languages i.e. like mysql or http. At an action the user obtains
such a connection through the connection manager so that a user does not need to configure such services at an action.
The worker decides which implementation should be used for a specific type but it is recommended to use either a native
or popular solution so that most developers know how to work with this service. I.e. our nodejs worker uses the
npm package to provide a mysql connection and
axios as http client.
A simple connection to a database. The type defines which database we try to connect. Your worker does not need to support all types but you should at least implement mysql support.
"host": "db host",
"username": "db user",
"password": "db password",
"database": "db name"
|pdo_mysql||Connection to a MySQL or MariaDB server|
|pdo_pgsql||Connection to a PostgreSQL server|
|sqlsrv||Connection to a MSSQL server|
|oci8||Connection to a Oracle server|
|sqlanywhere||Connection to a SAP Sybase SQL Anywhere server|
Basically this is the same connection as sql but we use a connection string to connect to a database. Through this it is possible to pass additional arguments to the connection.
A HTTP client to make requests. The url parameter indicates the base url. The username, password and proxy settings are optional.
"proxy": "proxy ip"
A connection to a MongoDB server.
A connection to a Elasticsearch server.