0% found this document useful (0 votes)
67 views17 pages

SNS and Elastic Transcoder Aws

Uploaded by

Jai Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views17 pages

SNS and Elastic Transcoder Aws

Uploaded by

Jai Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

INFORMATION TECHNOLOGY AND INDUSTRY

BUSINESS SKILLS
TOPIC- Simple Notification Services & Elastic
Transcoder
SUBMITTED TO- SUBMITTED BY-
GAYATRI MAM JAIVINDER
ROLLNO-180011015024
CLASS-BTECH 3RD YEAR
What is SNS?
 Amazon Simple Notification Service (Amazon SNS) is
a fully managed messaging service for both
application-to-application (A2A) and application-to-
person (A2P) communication.
 The A2A pub/sub functionality provides topics for
high-throughput, push-based, many-to-many
messaging between distributed systems,
microservices, and event-driven serverless
applications. The A2P functionality enables to send
messages to users at scale via SMS, mobile push,
and email.
Simple Notification Services in AWS
Developers can get started with Amazon SNS by using just three APIs:
1. Create Topic
2. Subscribe
3. Publish.
Additional APIs are available, which provide more advanced functionality.
 Amazon SNS allows you to group multiple recipients using topics where
the topic is a logical access point that sends the identical copies of the
same message to the subscribe recipients.
 Amazon SNS supports multiple endpoint types. For example, you can
group together IOS, Android and SMS recipients. Once you publish the
message to the topic, SNS delivers the formatted copies of your messa-
ge to the subscribers.
 To prevent the loss of data, all messages published to SNS are stored
redundantly across multiple availability zones.
Message Sending Using SNS :
SNS Publishers and Subscribers
Amazon SNS is a web service that manages sending messages
to the subscribing endpoint. There are two clients of SNS:
1. Publishers
 Publishers are also known as producers that produce and send the
message to the SNS which is a logical access point.
2. Subscribers
 Subscribers such as web servers, email addresses, Amazon SQS
queues, AWS Lambda functions receive the message or notification
from the SNS over one of the supported protocols (Amazon SQS,
email, Lambda, HTTP, SMS).
Benefits of SNS
Benefits of SNS
1. Instantaneous delivery
SNS is based on push-based delivery. This is the key
difference between SNS and SQS. SNS is pushed once
you publish the message in a topic and the message is
delivered to multiple subscribers.
2. Flexible
SNS supports multiple endpoint types. Multiple endpoint
types can receive the message over multiple transport
protocols such as email, SMS, Lambda, Amazon SQS,
HTTP, etc.
3. Inexpensive
SNS service is quite inexpensive as it is based on pay-as-
you-go model, i.e., you need to pay only when you are
using the resources with no up-front costs.
Benefits of SNS (Cont.):
4. Ease of use
SNS service is very simple to use as Web-based
AWS Management Console offers the simplicity of
the point-and-click interface.
5. Simple Architecture
SNS is used to simplify the messaging architecture
by offloading the message filtering logic from the
subscribers and message routing logic from the
publishers. Instead of receiving all the messages
from the topic, SNS sends the message to
subscriber-only of their interest.
Differences b/w SNS and SQS
 SNS stands for Simple Notification Service while SQS
stands for Simple Queue Service.
 SQS is a pull-based delivery, i.e., messages are not pushed
to the receivers. Users have to pull the messages from the
Queue. SNS is a push-based delivery, i.e., messages are
pushed to multiple subscribers.
 In SNS service, messages are pushed to the multiple
receivers at the same time while in SQS service, messages
are not received by the multiple receivers at the same
time.
 SQS polling introduces some latency in message delivery
while SQS pushing pushed the messages to the
subscribers immediately.
What is Elastic Transcoder?
 Elastic Transcoder is an aws service used to convert the
media files stored in an S3 bucket into the media files in
different formats supported by different devices.
 Elastic Transcoder is a media transcoder in the cloud.
 It is used to convert media files from their original source
format into different formats that will play on
smartphones, tablets, PC's, etc.
 It provides transcoding presets for popular output formats
means that you don't need to guess about which settings
work best on particular devices.
 If you use Elastic Transcoder, then you need to pay based
on the minutes that you transcode and the resolution at
which you transcode.
Components of Elastic Transcoder

Elastic
Transcoder
components:

Jobs Pipelines Presets Notifications


Components of Elastic Transcoder
 Jobs
The main task of the job is to complete the work of transcoding. Each job
can convert a file up to 30 formats. For example, if you want to convert a
media file into eight different formats, then a single job creates files in eight
formats.
 Pipelines
Pipelines are the queues that consist of transcoding jobs. When you create
a job, then you need to specify which pipeline you want to add your job. If
you want a job to create more than one format, Elastic Transcoder creates
the files for each format in the order you specify the formats in a job.
You can create either of the two pipelines, i.e., standard-priority jobs and
high-priority jobs. Mainly jobs go into the standard-priority jobs. Sometimes
you want to transcode the file immediately; the high-priority pipeline is
used.
Components of Elastic Transcoder (Cont.)
 Presets
Presets are the templates that contain the settings for transcoding the
media file from one format to another format. Elastic transcoder consists
of some default presets for common formats.( You can also create your
own presets that are not included in the default presets. You need to
specify a preset that you want to use when you create a job.)
 Notifications
Notification is an optional field which can configure with the Elastic
Transcoder. Notification Service is a service that keeps updated with the
status of job: when Elastic Transcoder starts processing job, when Elastic
Transcoder finishes its job, whether the Elastic Transcoder encounters an
error condition or not.
How A Cloud Uses Elastic Transcoder

Suppose any mp4 file is upload in S3 bucket. As soon as


uploading is completed, it triggers a Lambda function. Lambda
function will then invoke Elastic Transcoder. Elastic Transcoder
converts the mp4 file into different formats so that the file can
be opened in iphone, Laptop, etc. Once it has completed the
transcoding, it stores the transcoded files in S3 bucket.
Summary:
 SNS stands for Simple Notification Service.
 SNS can send messages to individual devices or broadcast
to multiple destinations at once.
 Direct Push Notification Use Cases in SNS:
Messaging,Turn-based activities, Events, User lifecycle,
Administrative.
 Amazon SNS makes it simple and cost effective to send
push notifications to mobile device users, email recipients
or even send messages to other distributed services.
 Elastic Transcoder is used to convert media files from their
original source format into different formats that will play
on smartphones, tablets, PC's, etc.
Conclusion
 SNS in AWS provides fast, flexible, fully
managed push notification service that lets us
to send individual messages or to fan-out
messages to large numbers of recipients”
 Elastic Transcoder is an aws service used to
convert the media files stored in an S3 bucket
into the media files in different formats
supported by different devices.
THANK YOU

You might also like