Search code examples
argo-workflowsargoproj

Does Argo workflow support HTTP invoke without creating a new pod?


In the use of Argo Workflows, we have a scenario to call the existing microservices. We can make an HTTP call through a script, but this method creates a new pod each time, which takes a long time. Wanted to know if it's good practice to do that and what would be the best way to do that?


Solution

  • An Argo Workflow will always create at least one pod. You're right that this is probably excessive if the only purpose of your Workflow is to make an HTTP call.

    For something lighter-weight, check out Argo Events. You can configure an EventSource, choosing from a wide variety of input sources hopefully building something very similar to whatever you're using to kick off the Argo Workflow. Then you can configure a Trigger to make an HTTP call.