Understanding of SES-SQS

Understanding of SES-SQS

Are you looking for SaaS Application Development Services that build a highly scalable and resilient app for better business and app security? DEV IT nurtures high quality cloud application development using AWS. There are two major AWS features that enhance your app quality and take it to the next level. They are SES & SQS – let’s understand more about what they are and how they can be very helpful.

-The full form of AWS SES is Simple Email Services.

-To send email with SES is too easy and straightforward.

-To prevent spamming by default its only provides us a sandbox environment.

-In free tier (sandbox) account, you can send and receive emails from verified email addresses only.

-Please find below steps to configuration with screenshot.

SES-SQS

SES-SQS– You can send simple text email or email with specific template.

– We are using Node AWS SDK to show you sample code to send email with AWS SES and NodeJs.

Installation

– npm install node-ses

Small example

Send Email Params Description

  • from - email address from which to send (required)
  • subject - string (required). It must be encoded as UTF-8
  • message - if simple html is required.
  • altText - simple plain text version of message.
  • to - Here you can pass single email or array of email addresses
  • cc - Here you can pass single email or array of email addresses
  • bcc - Here you can pass single email or array of email addresses
  • replyTo` – Single email address

ToAddresses:  Here it should contains array of email address where you want to send an email.

Body.Html.Data: Here it should contains  HTML message template. Here we have to set all style as inline.

Body.Subject.Data: Here it should contains subject of the email

Source: Here it should contains an email address of the sender

ConfigurationSetName:  If you want to receive notification then you have to configuration name of SNS topic.

 SQS(Simple Queue Service)

– The full form of SQS is Simple Queue Service.

– SQS is used to send, store, and receive messages between software components, without losing messages or its not requiring other services to be available.

– Queuing service enables you to decouple and scale distributed systems, microservices and serverless applications.

Benefits

  • ELIMINATE ADMINISTRATIVE OVERHEAD
  • RELIABLY DELIVER MESSAGES
  • KEEP SENSITIVE DATA SECURE
  • SCALE ELASTICALLY AND COST-EFFECTIVELY

Types of que

-Standard Queue

– FIFO Queue

Standard Queue

– TPS(Transaction Per Limit) is nearly unlimited.

– Message will be delivered at least once, occasionally it might be delivered in an order different from which they were sent.

SES-SQS– Send data between applications when the throughput is important, for example:

  • It will decouple live user requests from intensive background work: let users upload media while resizing or encoding it.
  • Allocate tasks to multiple worker nodes: process a high number of credit card validation requests.
  • Batch messages for future processing: schedule multiple entries to be added to a database.

FIFO Queue

– This type of queues support up to 300 messages per second (receive, send or delete).

– When you batch 10 messages per operation (maximum), FIFO queues can support up to 3,000 messages per second.

– You can raise a support request to increase limit.

– The order is strictly preserved to messages sent and receive.

– Once message is delivered remains available until a consumer process and deletes it.

SES-SQS– Send data between applications when the order of events is important, for example:

  • Need ensure that commands are executed in the right order.
  • Display the correct product price by sending price modifications in the right order.
  • Prevent a student from enrolling in a course before registering for an account.

Steps to create new que

SES-SQS

SES-SQS

The following two tabs change content below.

Viren Dave

Sr. Software Developer (PHP) at Dev Information Technology Ltd.
I am a software developer since 6+ years. I am passionate for learning latest technologies also I would like to share my knowledge. My expertise is in building application in PHP, NodeJS, ReactJS, AngularJS

Latest posts by Viren Dave (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *