We're currently investigating the use of Amazon SWF to take care of the longer running jobs in our backend. Our architecture consists of the typical stack:
client (web/android/iOS)
----
API/Worker (Elastic Beanstalk)
----
DB (RDS)
I would like to know what would be the best place to put the SWF-decider logic. A separate EC2 instance, inside the API component, or would it make sense to separate it in another EBS-worker?