Workflow Execution
Here we are going to discuss some simple and easy steps to execute a workflow in Amazon SWF.
- Create activity workers to carry out the workflow’s processing phases.
- Create a decider to execute your workflow’s coordination logic.
- Use Amazon SWF to register your actions and process. This step can be completed programmatically or using the AWS Management Console.
- Get your activity workers and deciders up and running. these actors can be executed on any. To host a decider or activity worker, you may employ cloud computing instances like Amazon Elastic Compute Cloud (Amazon EC2), servers in your data center, or even a mobile device. Once the decider and activity workers are up and running, they should begin polling Amazon SWF for assignments.
Here comes the simple Workflow Example that will help you understand the working and execution of Amazon SWF workflow:
Let’s take an example of an E-Commerce Application, here the following figure is showing a simple e-commerce order-processing in a workflow. Here the people and automated processes both are involved in the following example.
Registration and Execution of Workflows starts, When a consumer placed an order, the workflow begins. It consists of four tasks:
- Double-check the order.
- Charge the customer if the order is legitimate.
- Once payment has been received, dispatch the order.
- Save the order information if the purchase has been sent.
Order must be validated before a credit card can be charged a credit card must be successfully charged before an order can be dispatched, and order must be shipped before it can be recorded. Nonetheless, These tasks can be carried out in multiple places since Amazon SWF enables distributed operations. If the tasks are programmatic, they can be written in a variety of programming languages or using a variety of tools.
Amazon Web Services – Introduction to Simple Workflow Service
In this article, we are going to discuss one of the important aspects of Amazon AWS, which is called Amazon SWS or SWF. it stands for Amazon simple workflow services. It’s a part of Amazon Web Services (AWS). AWS a cloud provider server. Which provides services in areas like computing, storage, administration, and networking, as well as on-demand services. This implies that customers can request a specific set of services. When it comes to hosting and building, one cloud service can help.
AWS has a free tier, which allows customers, who are just getting started with cloud computing to register an account and start utilizing the services for free.
Now let’s talk about the important part of amazon’s web service, Amazon SWF (Amazon Simple workflow services).