AWS Application Integration & Architectural Best Practices
AWS Application Integration & Architectural Best Practices
Increases productivity
People are naturally more productive when they don’t need to
switch between different applications. Integrating data and
functionality from other apps allows users to do more tasks in one
application, removing the need for context-switching.
So, once these messages are processed, the messages also get
deleted from the queue. AWS SQS service basically adds messages
in a queue and then, users will pick up these messages from the
queue.
A queue is a place where you can store your messages until they are
extracted from the queue or expired.
How does AWS SQS work?
Amazon Simple Queue Service (SQS) will let you send messages,
store the messages, and receive messages between various software
components at any amount, without losing of actual messages. Also,
without requiring some other services to be available. so, basically,
Amazon SQS is a distributed queue system.
The messages that are in the queue are in the form of Jason format
and the queue is a holding pool of messages the limit of each
message is 256 kilobytes per message. The publishers will publish
the messages into the queue and the messages are processed or
removed with the help of consumers.
Amazon SQS architecture
Distributed queues
There are three main parts in a distributed messaging system: the
components of your distributed system, your queue (distributed on
Amazon SQS servers), and the messages in the queue.
Amazon SQS architecture
You can use it for various purposes such as pushing out critical
notifications to end-users or updating various components of a
microservices architecture simultaneously.
Amazon SNS (Simple Notification Service)
Amazon SWF (Simple Workflow Service)
With its help, you can have full control over task implementation.
You can coordinate them without thinking about the underlying
complexities. And the worries of tracking and maintaining their
states are not a problem anymore. With its use, workers can be
implemented to perform the tasks.
Amazon SWF (Simple Workflow Service)
Tasks can be created for a long run or small period, or may time
out after some time and may require restarts.
Amazon SWF stores the tasks and assigns them to workers when
required. It also maintains their state and tracks their progress until
their completion.
State Machine
In computer science, a state machine is defined as a type of
computational device that is able to store various status values and
update them based on inputs.
AWS Step Functions builds upon this very concept and uses the
term state machine to refer to an application workflow.
State
A state represents a step in your workflow. States can perform a
variety of functions:
Task State
A task state (typically just referred to as a task) within your state
machine is used to complete a single unit of work. Tasks can be
used to call the API actions of over two hundred Amazon and AWS
services. Two types of tasks can be included in your workflows:
Activity tasks
Service tasks
Step Functions sends requests to other services, waits for the task to
complete, and then continues to the next step in the workflow.
Operational excellence
Security
Reliability
Performance efficiency
Cost optimization
Those areas are also called the five pillars of AWS Well-Architected
Framework.
AWS Well-Architected Framework
It includes:
Security Pillar
Reliability Pillar
Cost optimization pillar helps you run your cloud services at the
lowest price points.