The Worker and Event Listener are vital components for real-time Data syncs. Here's a brief overview of how the Worker/Event Listener operates:
The Event Listener, once successfully subscribed, awaits events from the streaming source.
Upon receiving a message from a streaming source, the Event Listener pushes it to the message queue.
The Worker then retrieves the message from the message queue.
The Worker fetches the corresponding record from the target based on the sync key.
If changes are detected, the Worker pushes them to the target system. Both successes and failures get logged in the worker's log file.
For a Kubernetes deployment of the Cinchy Platform, the Worker/Event Listener is automatically installed. The steps below are specific to an IIS deployment of the Cinchy Platform.
Windows Server 2012+
SQL Server 2012+
Service Broker enabled
Cinchy Platform
On a Windows Server machine, launch an instance of PowerShell as Administrator.
Enable the SQL Service Broker using the command:
Navigate to the Cinchy Releases table.
Download the latest Cinchy Event Listener.zip file from the Release Artifacts column.
Extract the .zip file to your designated directory. For example, C:\your event listener folder
.
Run the create-cinchy-event-listener-windows-service.ps1
PowerShell script from the installation directory. Use the filePath
parameter as -filePath <Path to your agent.exe file>
.
Download the latest Cinchy Connections.zip file from the Release Artifacts column.
Unzip the content of the Cinchy Worker folder to, for example, C:\your CLI worker folder
.
Run the create-cinchy-cli-worker-windows-service.ps1
PowerShell script from the installation directory. Pass the filePath
parameter pointing to the Cinchy.CLI.exe file.
Open the appSettings.json
file in your Event Listener directory and configure:
URL
Cinchy Web URL (e.g., https://cinchy.net/Cinchy)
Password
Password for the user: eventlistener@cinchy.com
GetNewListenerConfigsInterval
(seconds) Frequency at which the listener checks for new configs in the [Cinchy].[Listener Configs] table. Default is 60 seconds.
SqlServer
Connection string to the SQL server that hosts the Cinchy database.
To start the Event Listener service:
Press Windows + R
to access the Run box.
Type services.msc
and press Enter.
From the services list, locate Cinchy Event Listener.
Right-click on it and select Start.
Open the appSettings.json file in your Worker directory and configure:
URL
Cinchy Web URL (e.g., https://cinchy.net/Cinchy)
Password
Password for the user: connections@cinchy.com
Model
Cinchy. This specifies the model for the CLI.
TempDirectory
Temporary directory for the CLI to store files.
SqlServer
Connection string to the SQL server that hosts the Cinchy database.
To start the Worker service:
Press Windows + R
to open the Run box.
Input services.msc
and hit Enter.
In the list of services, find Cinchy Worker.
Right-click on the service and select Start.