Questions tagged [amazon-swf]

Amazon Simple Workflow Service (Amazon SWF) is a workflow service for building scalable, resilient applications. Whether automating business processes for finance or insurance applications, building sophisticated data analytics applications, or managing cloud infrastructure services, Amazon SWF reliably coordinates all of the processing steps within an application.

Amazon Simple Workflow Service (Amazon SWF) is a web service that makes it easy to coordinate work across distributed application components. Amazon SWF enables applications for a range of use cases, including media processing, web application back-ends, business process workflows, and analytics pipelines, to be designed as a coordination of tasks. Tasks represent invocations of various processing steps in an application which can be performed by executable code, web service calls, human actions, and scripts.

The coordination of tasks involves managing execution dependencies, scheduling, and concurrency in accordance with the logical flow of the application. With Amazon SWF, developers get full control over implementing processing steps and coordinating the tasks that drive them, without worrying about underlying complexities such as tracking their progress and keeping their state. Amazon SWF also provides the AWS Flow Framework to help developers use asynchronous programming in the development of their applications. By using Amazon SWF, developers benefit from ease of programming and have the ability to improve their applications’ resource usage, latencies, and throughputs.

264 questions
1
vote
1 answer

When to use AWS Lambda vs. SWF

There is an SNS topic that I would like to listen in on and I understand that I can either use SQS with SWF to work on each event or have AWS Lambda subscribe directly to SNS to work on each event when it arrives. For each event all I plan to do is…
jem4687
  • 21
  • 2
1
vote
1 answer

AWS Simple Workflow Service - run long running processes reliably

Situation: I want to use AWS SWF to coordinate long running manual activities. When activity is being scheduled in AWS I transfer it to DB to show on UI what tasks are pending. Those tasks can take weeks to complete, thus they have huge timeouts in…
Monty Joe
  • 33
  • 4
1
vote
1 answer

Amazon SWF: Java activity workers receiving wrong tasks

I started with Amazon's Java-based HelloWorldWorkflowDistributed example and I'm adding to it little by little to achieve what we want. I have added a second activity worker, but the two activities are receiving each other's tasks and no tasks are…
MartinThurn
  • 327
  • 1
  • 3
  • 13
1
vote
1 answer

AWS SWF Promise IllegalStateException: Not ready

I am trying to execute SWF workflow. I am running into an issue regarding state of Promise object. My code strucutre is as below: Methods in WorkflowClientImpl.java: @Override public void doSomething() { new TryCatch() { @Override …
alwaysAStudent
  • 2,110
  • 4
  • 24
  • 47
1
vote
1 answer

How to get SWF activity information for a given workflow execution using boto

When looking at the SWF console on Amazon AWS, you can view closed workflow executions' histories. In the history, you can see all the activities that were called and their inputs and outputs. I haven't been able to figure out how to access this…
Brian Schlenker
  • 4,966
  • 6
  • 31
  • 44
1
vote
1 answer

AWS SWF - change default 60 seconds while Polling for Decision Tasks

As stated in AWS SWF PollForDecisionTask docs, Amazon SWF holds the connection open for up to 60 seconds, and returns a task as soon as it becomes available. My problem is that I have a cron that runs the poller every one minute, so on each…
1
vote
1 answer

AWS SWF Sample Code issue

I am new to Amazon simple workflow service and am following AWS Docs to understand SWF. As per the documentation, once you execute the GreeterMain class after executing the GreeterWorker class, you should see active workflow execution on AWS…
alwaysAStudent
  • 2,110
  • 4
  • 24
  • 47
1
vote
1 answer

Throttling while registering activities in Simple Work Flow

We have started to experience failures when our processes start up during the registration of activities. The problem is happening in GenericActivityWorker.registerActivityTypes. The exception generate is: Caused by: AmazonServiceException: Status…
Nithin
  • 9,661
  • 14
  • 44
  • 67
1
vote
0 answers

Simple Work Flow (SWF) Workflow with Spring without xml

Currently I am working on the spring annotation based dependency injection for Activity Worker and Workflow worker As per the documentation.I have defined my beans inside my spring boot application. Each worker is defined in the separate maven…
Nithin
  • 9,661
  • 14
  • 44
  • 67
1
vote
1 answer

Impact of AWS SWF connectivity on currently executing workflows?

I am curious to understand the loss of connectivity with AWS SWF on currently executing workflows. Could someone please help me understand. I understand there would be timeout of deciders and workers. But not sure of the exact behavior.
1
vote
1 answer

SWF : Get the result of all the activities in workflow starter program

I am working with amazon-swf. I have 4 activities. They are all asynchronous. The workflow is started from the frontend via a rest api call. I want to return the results of all 4 activities as the response to the api call. Since the @execute method…
Chirag Agrawal
  • 323
  • 3
  • 14
1
vote
0 answers

AWS Lambda Function is not executing in Simple Work Flow (SWF)

We are creating a Workflow which has multiple activities. One of the activity is directly invoking a Lambda Function. Lambda function executes properly with out the workflow (Using AWS Lambda Console). When its invoked using using SWF the function…
Nithin
  • 9,661
  • 14
  • 44
  • 67
1
vote
1 answer

Receiving duplicate decision tasks from AWS SWF when using boto3

I have created a simple SWF workflow but seem to be receiving multiple notifications of new Decision tasks available. I am using the boto3 python sdk. There is no good boto3 swf sample code that I can find, so I started from the boto2 sample at…
jhludwig
  • 45
  • 6
1
vote
2 answers

@Autowired annotation does not work on amazon swf activity

I am developing an application managed by amazon simple workflow and spring 4 with annotation based dependency injection. IMyActivity.java package com.test.activities; import com.amazonaws.services.simpleworkflow.flow.annotations.Activities; import…
archit
  • 69
  • 1
  • 2
  • 9
1
vote
1 answer

Unit Testing AWS SWF Ruby Flow

We're using the aws-ruby-flow framework and are curious how others have unit tested their activity logic and their workflow logic? Can anyone share some sample specs? The examples given in aws-flow-ruby-samples don't seem to have any. Thanks
Mustafa Shabib
  • 798
  • 12
  • 35