Rest Outbound Connector or Service Task which is better for REST Api

Hi everyone, as a java developer,
i still confuse Rest Outbound Connector with Service Task for REST Api,
i have example below and i don’t know should use which is best practice.

Hello @BevisDev!

It depends on what you are trying to achieve. It’s best to use a service task you are wanting to access a low-level API that performs a very specific task, since you have more control writing code to interact with the Camunda API. If you’re wanting to do something simpler, like triggering external systems or services (I’m assuming this is the closest to your example), it’s best to use the REST Outbound Connector.

Here’s some more info about outbound connectors vs job workers (and service tasks), and which you should choose.