Skip to main content

1. Hello worker

In this tutorial, an application authenticates to Core, reports its identity, and appears in the Workers view. You need a running Core and a worker token.

Set the connection values​

Provide these values through your shell, service manager, or secret store:

SYNAPSYS_CORE_URL=http://localhost:8080
SYNAPSYS_CORE_TOKEN=replace-with-your-worker-token

Add the Maven Central dependency, then configure:

application.yaml
spring:
application:
name: hello-worker

synapsys:
core-url: ${SYNAPSYS_CORE_URL}
core-token: ${SYNAPSYS_CORE_TOKEN}

Start the application. The starter owns the heartbeat lifecycle.

Verify it​

Sign in to Core and open Workers. hello-worker should appear after the first successful heartbeat. Stop the application and it becomes inactive after Core no longer receives its heartbeat.

There was no registration request: the authenticated heartbeat both introduces and renews the worker. Keep workerName stable across restarts so Core recognises the same application.

Next: add an endless process.