Workers Comparison Guide

Workers Vs User Plugins

📘

Note

JFrog Workers is the newer, recommended way to easily extend the JFrog Platform (not just Artifactory) in a Cloud-native way. While plugins are supported, we strongly suggest using JFrog Workers whenever possible.

Both Workers and User Plugins are automated mechanisms triggered by events that you can define.

The following table describes the differences between Workers and User Plugins:

FeatureWorkersUser Plugins
Purpose

Extend JFrog Platform functionality via a built-in serverless execution environment. You can create Workers that are triggered when events occur in the JFrog Platform.

Workers offer an alternative to Artifactory user plugins, enabling you to extend the JFrog Platform using cloud-native, scalable, and secure solutions.

Customize and extend Artifactory's features. Essentially, they provide a flexible way to tailor Artifactory to your specific workflows and requirements.
LanguageTypeScriptGroovy
Triggering MechanismEvent-driven/task-based executionLifecycle events
ComplexityGenerally easier to set up for automation tasksMore complex that requires coding and understanding of APIs
IntegrationSeamless integration with CI/CD toolsInterfaces directly with core features
Execution ContextRuns in isolated task contextCan modify behavior at any stage of the lifecycle
ScalabilityScalable based on task needsTypically runs in the context of artifact management tasks
Error HandlingBuilt-in error handling and loggingCustom error handling as defined by the plugin
Use CasesScheduling tasks, event handling, automation in CI/CDImplementing custom policies, artifact validation, complex workflows
Access ControlFine-grained permissions can be applied to workersCustomizable using the plugin logic
Development EffortLower development effort - more user-friendlyHigher development effort - more flexible and powerful

Workers Vs Webhooks

Both Workers and Webhook are automated mechanisms triggered by events that you can define.

Workers and webhooks complement each other by providing different ways to connect, launch and automate software applications, and by enabling real-time communications and data exchange between different systems.

The following table describes the differences between Workers and Webhooks:

WorkersWebhooks
Use to customize and control your execution flowsUse to automate auditing or send notifications only
SynchronousAsynchronous
May impact action results and response timeNo impact on user actions
Logic runs on JFrog infrastructure (SaaS)Logic runs on customer infrastructure
Can run a script that can perform calculations and/or send several HTTP requestsCan perform only one HTTP request

Did this page help you?