Search code examples
amazon-ec2workflowamazon-swfaws-step-functions

Workflow design in AWS Ec2 instances not involving lambda


Thanks in advance for your time and answers.

  • I have multiple, say 3 AWS EC2 windows instances.
  • I have .NET executables A, B and C in each of the 3 windows instances. (I could also have java programs in the mix)
  • They need to be run, one after the other, in a workflow like fashion, depending on the outcome of the previous executable. i.e B should run after A has succeeded; C should run after B has succeeded etc. In short, I am looking to achieve a work flow.

  • Being in the AWS, I looked at Amazon Simple Workflow; however to me to use that, I need to weave in the AWS SWS SDK in the .NET code. But unfortunately I only have the executable and am not allowed to rebuild that.

  • I also have the Amazon Simple Queue Service and notification service in mind.

    But is there a better and preferred way to achieve this ?


Solution

  • But is there a better and preferred way to achieve this ?

    Yes. The preferred way nowadays is to use AWS Step Functions which is (sort of) an improved, simplified and clean version of Amazon Simple Workflow. Since you have a precompiled executables running in a sequential order it might be worth it to also take a look at AWS Batch.

    Step Functions are basically Lambda functions, but you can ship you executables with the deployment package and execute them from Lambda functions.