SNS vs SQS Comparison? Whats the difference? | Learn with a practical example

  Рет қаралды 213,245

Be A Better Dev

Be A Better Dev

Күн бұрын

Пікірлер: 284
@SergioBerlinches
@SergioBerlinches 4 жыл бұрын
I came looking for copper and found gold. Thanks.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thank you sergio for such a kind comment!
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 3 жыл бұрын
same feeling :)
@shaziamuskaan1987
@shaziamuskaan1987 3 жыл бұрын
same!
@neidsonsouza
@neidsonsouza 3 жыл бұрын
I am felling the same.
@gomes8335
@gomes8335 2 жыл бұрын
Much precious than gold
@sf-spark129
@sf-spark129 2 жыл бұрын
Good explanation!! As an active user of AWS myself, I would like to add one thing here. SQS is not error-proof/fault-tolerant by itself in the event of a failure. It guarantees to deliver all messages to the next microservice by having a back-up option, called DLQ(Dead Letter Queue). When the SQS fails to deliver a message to the next microservice whether due to a source side issue or a destination side issue, it sends that message to the DLQ(it is basically another SQS). Then, you get to re-drive(re-play) that message once you locate and resolve the issue in the system. One caveat is that there is a maximum 14-day message expiration period in DLQ. Also, SNS can be subscribed by a streaming service like Kinesis FH.
@scottscott232
@scottscott232 2 жыл бұрын
2:16 - 2:47 - That was a penny dropping moment for me. What an excellent way to describe the difference. Many thanks.
@BeABetterDev
@BeABetterDev 2 жыл бұрын
So glad I was able to help you "get it" !
@ayeayyiu
@ayeayyiu 2 жыл бұрын
@@BeABetterDev You should be proud of yourself, you really do explain very clearly :)
@TomerBenDavid
@TomerBenDavid 5 жыл бұрын
I really like how you don't just repeat documentation bus get to the core of the thing! Another masterpiece!
@BeABetterDev
@BeABetterDev 5 жыл бұрын
Thanks tomer!
@mikehulbert4411
@mikehulbert4411 4 жыл бұрын
Great explanation and love the fact that you explain the “why”...
@zubkat5196
@zubkat5196 3 жыл бұрын
Awesome explanation as usual
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Zubka!
@monitumsgd
@monitumsgd 2 жыл бұрын
Thank you for this clear explanation with practical example. Thumbs up!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Glad you enjoyed Monit!
@ahmedsalim784
@ahmedsalim784 7 ай бұрын
Thanks for the effort put into this video to make it easier for students to understand.
@stevencastro2238
@stevencastro2238 4 жыл бұрын
I can not thank you enough, for this video. This single video might be the reason i get my certification, when I do I promise to come back and make a generous donation your way. Thank you sir
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You're very welcome Steven! I hope you do well on your exam. Thank you for your support, I really appreciate it!
@koikahi
@koikahi 3 жыл бұрын
Gold indeed!!...so articulate and to the point..in 10 minutes..wow!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Rahul!
@ClaudioLopez-r2j
@ClaudioLopez-r2j 10 ай бұрын
Hey! Great explanation of SNS and SQS. I love you credit card transaction example since not better place than a transactional system to understand those concepts.
@bagyalakshmi72
@bagyalakshmi72 Жыл бұрын
Thank you for the explanation with example and telling about the pros and cons of each method :)
@dwaynem2523
@dwaynem2523 4 жыл бұрын
Finally a great video that fully explains the differences with a concrete use case. Thanks
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad it was helpful!
@yt.arunthakur
@yt.arunthakur 3 жыл бұрын
Wow you really made it so easy to understand
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Arun! Glad you enjoyed :)
@jefffrederick258
@jefffrederick258 3 жыл бұрын
Subscribed. Clearest example I've seen on SNS vs SQS
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Jeff! Glad you enjoyed :)
@ericz8086
@ericz8086 Жыл бұрын
Fantastic explanation for both services, thank you!
@samikshasharma3544
@samikshasharma3544 Жыл бұрын
What a clear demonstration it is!!!
@busyrand
@busyrand 10 ай бұрын
Brilliant explaintion of the reason why the service is used/relevant. Way to close strongly...
@oscarzuniga.personal
@oscarzuniga.personal 4 жыл бұрын
The best explanation for this two services. You rock!!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You're very welcome!
@kazimir9576
@kazimir9576 3 жыл бұрын
Great example, thanks for this video
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome!
@ajayvishwakarma6943
@ajayvishwakarma6943 3 жыл бұрын
best explanation of SNS and SQS
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Glad you enjoyed!
@yashpanicker256
@yashpanicker256 4 жыл бұрын
This is the best video I have seen on SNS and SQS. The practical example was especially helpful.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thank you Yash! Glad you enjoyed
@bluebabboon
@bluebabboon 3 жыл бұрын
Real life examples are gold. Thanks brother.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Krishna! Glad you enjoyed :)
@pauls60r
@pauls60r 3 жыл бұрын
This is the best explanation and practical example of SNS/SQS!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much paul!
@krishnar6749
@krishnar6749 3 жыл бұрын
Good Info; Better than many paid courses
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Krishna!
@wasimbadsha4342
@wasimbadsha4342 2 жыл бұрын
You did it smoothly. ☺️
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thank you!
@HunterStanley-kv3je
@HunterStanley-kv3je Жыл бұрын
I'm a student studying for my Solutions Architect exam. I narrowly failed the first attempt and have been studying material and realized I didn't fully grasp the concepts and differences between the two. This video did so much that the AWS Academy did not in this regard, and I really appreciate that.
@jhonnyyamaniha6033
@jhonnyyamaniha6033 7 ай бұрын
Thank you! Great explaination and great example!
@anuragsoni2256
@anuragsoni2256 3 жыл бұрын
Thanks for this good practical example.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Glad it was helpful!
@MartinPerez-mi1ty
@MartinPerez-mi1ty 2 жыл бұрын
I am so glad that i discovered your channel
@vctorroferz
@vctorroferz 2 жыл бұрын
incredible great explanation ! thanks for such wonderufl content!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome Victor!
@jasimali2467
@jasimali2467 3 жыл бұрын
pure gold, very nicely explained
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Jasim! Glad you enjoyed.
@serreealhamwi6393
@serreealhamwi6393 4 жыл бұрын
your explanation is perfect
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thank you Serree!
@alpha_ray_burst
@alpha_ray_burst 3 жыл бұрын
FANTASTIC video, holy geez man. Brain expanded. Like... I just came here because I wanted to know about SQS, but I was taught about SQS, SNS, and proper application architecture in a way that I will actually remember it. DAYUM. Thank you! Can you do a video about Origin Access Identities?
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Adam, really glad you enjoyed! I'll look into a video on OAI - cheers!
@vivrd
@vivrd 4 жыл бұрын
i loved the use case which clears the picture of the usage of both types of services. thanks.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks Ritesh!
@shilpthapak7823
@shilpthapak7823 3 жыл бұрын
This is Gold!! Thanks for explaining.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome Shilp!
@MightyMike55
@MightyMike55 4 жыл бұрын
Great explanation and example
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks so much Michael!
@taraprasaddash4011
@taraprasaddash4011 4 жыл бұрын
Very clear explanation. Thanks for your good work.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks Tara! Really appreciate the support.
@preetbenipal1034
@preetbenipal1034 4 жыл бұрын
wow explanation one of best explanation of use case of SNS SQS in such a short time ..fully recommended ..thank you :)
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad it was helpful!
@SuperCapitalt
@SuperCapitalt 2 жыл бұрын
This is amazing explanation!!! Thank you so much!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome Nuni!
@erekriccobuano6141
@erekriccobuano6141 Жыл бұрын
Awesome explanation. Now I get it.
@BeABetterDev
@BeABetterDev Жыл бұрын
Glad it helped!
@DatNguyen-br3qd
@DatNguyen-br3qd Ай бұрын
amazing explaination, thanks mate
@Cusifaii
@Cusifaii 3 жыл бұрын
Very clear explanation. The use of practical cases is key, thank youi for that.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Glad it was helpful!
@yulia0g
@yulia0g Жыл бұрын
awesome video, very clear and well explained
@mr_phamtastic
@mr_phamtastic 2 жыл бұрын
i really enjoy your explanation and practical examples!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thanks Paul!
@aldnav
@aldnav 10 ай бұрын
Best explainer vid by far.
@mousumisinha4039
@mousumisinha4039 3 жыл бұрын
Ok now I can definitely say what my application needs 🔥
@SaaSPro-de
@SaaSPro-de 2 жыл бұрын
Very good explained 👍
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thanks!
@vimalm2064
@vimalm2064 3 жыл бұрын
Thank you Sir, Awesome explanation
@avinashch3359
@avinashch3359 4 жыл бұрын
Quite a good Explanation with example.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad it was helpful!
@glennadams7047
@glennadams7047 4 жыл бұрын
Really helped me to understand how/why SNS. Nice slide too.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks Glenn! Glad I was able to help.
@glennadams7047
@glennadams7047 4 жыл бұрын
@@BeABetterDev Studying for the AWS Dev Cert, and these vids reinforce what I read in the documentation :-) Thanks again.
@jontypatel4401
@jontypatel4401 2 жыл бұрын
Great explanation, really helpful
@nirmesh44
@nirmesh44 4 жыл бұрын
best explanation ever.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad it was helpful!
@yumlive5698
@yumlive5698 3 жыл бұрын
wow, nicely presented and explained!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks John! Glad you enjoyed :)
@alcap6145
@alcap6145 4 жыл бұрын
Best explanation ever. I wish I would have found this video before I studied and passed my Solutions architect LOL
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad you liked it!
@emilehoffman8425
@emilehoffman8425 4 жыл бұрын
Very Good and well presented.. Gracis!!!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad it was helpful!
@worldofafrontenddeveloper9187
@worldofafrontenddeveloper9187 3 жыл бұрын
Thanks for making this video 👏
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome Rimika!
@nirmaltripathy3226
@nirmaltripathy3226 Жыл бұрын
Awesome explanation
@BeABetterDev
@BeABetterDev Жыл бұрын
Glad you think so!
@saeedshazad9223
@saeedshazad9223 4 жыл бұрын
you are awsome. never understood SNS /SQS till this lecture. you need to be Amazon Instructor
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thank you! One day :P
@hdang1997
@hdang1997 3 жыл бұрын
You just gave me a final year project idea. Gracias!
@TheKiteDiary
@TheKiteDiary 4 жыл бұрын
Great one. The example helps a lot! Thank you
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You're so welcome!
@pemessh
@pemessh 3 жыл бұрын
Damn this literally is the best video for this topic. Loved it.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Pramesh! Glad you enjoyed.
@hamoudsk8972
@hamoudsk8972 4 жыл бұрын
Pretty good format and just exactly what i wanted , clear explanation good use case examples , just perfect . Thank you
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You're welcome!
@StarContract
@StarContract 2 жыл бұрын
My search for the best tutorial stops here
@VaisakhParannattilCherul
@VaisakhParannattilCherul Жыл бұрын
Really useful video I should admit, Keep rocking with such amazing content!
@harshverm776
@harshverm776 3 жыл бұрын
Excellent Explaination....
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Harsh!
@LuisRivera-mh7gv
@LuisRivera-mh7gv 3 жыл бұрын
Heyyyy!!! Appreciate you sharing this!!! I was having a hard time digesting it! This is clearer thanks to you! Subscribed already!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome Luis! Thanks for your continued support :)
@davidalexander8786
@davidalexander8786 Жыл бұрын
SNS is a stateless message service and sqs is a state-full service that queue messages to decouple big APIS into a distributed system that can be resilient to lots of recurrent tasks
@janithmalinga5765
@janithmalinga5765 11 ай бұрын
Very good practicle example.
@cazino4
@cazino4 4 жыл бұрын
Great video, clear concise and informative. Would like to see a video that compares SNS to Kafka....
@markusfeljofsen8345
@markusfeljofsen8345 3 жыл бұрын
What an awesome explanation! Love it.
@HeavensMeat
@HeavensMeat 5 жыл бұрын
Not sure I understand 8:40 mark, you're saying if a lambda is subscribed to SNS, you can potentially lose the message if there is a problem with your logic whereas in SQS you do not... So what is the advantage to lambda? I'm guessing that it is that lambda runs right away vs waiting for some service to poll it to send that reminder service (which would take longer) Another question I have is, how do you ensure a message gets processed when it is decoupled? Let's say one of them didn't process, then wouldn't you have to repub the SNS topic which would send it to all the other processes subscribed and then you would have duplicate messages sent to the ones that didn't mess up which would just be a different assortment of issues?
@BeABetterDev
@BeABetterDev 5 жыл бұрын
Hi HeavensMeat, Good questions! Regarding the first one (message loss via SNS -> Lambda): As per aws.amazon.com/sns/faqs/#Reliability - "If Lambda is not available, SNS will retry 2 times at 1 seconds apart, then 10 times exponentially backing off from 1 seconds to 20 minutes and finally 38 times every 20 minutes for a total 50 attempts over more than 13 hours before the message is discarded from SNS." Effectively this means your message could be potentially lost if your lambda starts failing. Regarding ensuring a message gets processed: You are quite right that if one of your subscribers fails, you potentially would need to republish to the source SNS which can cause problems for other clients as you described. In order to prevent this, clients should always be able to handle message de-duplication either by using timestamp comparisons or some kind of versioning system to ensure they can handle this situation. There are of course other options such as invoking the affected client manually through some kind of script with the backlog of data that they failed to process.
@HeavensMeat
@HeavensMeat 5 жыл бұрын
@@BeABetterDev That was very informative, thanks so much for responding!
@BeABetterDev
@BeABetterDev 5 жыл бұрын
No problem!
@innocentmutyavaviri8205
@innocentmutyavaviri8205 3 жыл бұрын
Well explained example
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks!
@jasongodmere9882
@jasongodmere9882 2 жыл бұрын
Fantastic job, I was about ready to throw my laptop trying to get a solid use case for these tools
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome Jason!
@joswayski
@joswayski 4 жыл бұрын
Great example thank you
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You're very welcome Jose!
@girishmallya9950
@girishmallya9950 3 жыл бұрын
Nice explanation!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Girish!
@srinivasprs
@srinivasprs 3 жыл бұрын
Excellent video. Cleared my basics on SNS and SQS before going to my AWS SA Exam in next two days. Thank you :)
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome sriniva! Good luck!
@LeonidasPapoulakis
@LeonidasPapoulakis 4 жыл бұрын
An excellent example, keep up the good work! We need more videos like this!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks Leonidas! More to come!
@wenzwenzel2529
@wenzwenzel2529 4 жыл бұрын
Perfect. Super helpful.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad to hear it!
@widadaid
@widadaid 3 жыл бұрын
Great explanation, thanks! :)
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much Juara!
@cheribgh275
@cheribgh275 3 жыл бұрын
You are really Awsome!!!! thanks a lot for the informative videos about AWS.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Shahrzad! And you're very welcome!
@markuspxpx
@markuspxpx 3 жыл бұрын
Thank you very much !
@sowellmemo
@sowellmemo 4 жыл бұрын
Thank you. Well explained.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad you liked it!
@vinayaknawale1015
@vinayaknawale1015 4 жыл бұрын
True very simple and nice explanation ni was looking for and finally got it here and SUBSCRIBED !!?
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Welcome aboard!
@NP96
@NP96 2 жыл бұрын
Thanks, really helpful to me
@shashikantdivekar7839
@shashikantdivekar7839 3 жыл бұрын
Very nicely presented and made things clear. Thank you Sir.
@techytalkswithbp
@techytalkswithbp 4 жыл бұрын
Glad that I found this. Subscribed !
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Brijesh and welcome!
@juicee235
@juicee235 4 жыл бұрын
Amazing examples
@muhammadyaqoob9777
@muhammadyaqoob9777 4 жыл бұрын
nicely explained!! thanks and really appreciate you sharing this!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You are very welcome!
@ameylokhande9918
@ameylokhande9918 4 жыл бұрын
Great explanation!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks Amey!
@arunmathuria321
@arunmathuria321 4 жыл бұрын
thanks Boss, this was super helpful
@babusivaprakasam9846
@babusivaprakasam9846 4 жыл бұрын
Clear explaination
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks babu!
@nelsyrodriguez1535
@nelsyrodriguez1535 4 жыл бұрын
This video is very helpful. Good job you go straight to the point luv it!!!🤗
@BeABetterDev
@BeABetterDev 4 жыл бұрын
So glad you found it useful Nelsy!
@sandeepg1017
@sandeepg1017 4 жыл бұрын
Amazing! Thanks for sharing.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Thanks sandeep! Glad you enjoyed.
@justfair4181
@justfair4181 3 жыл бұрын
Best explanation. Claps
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thank you!
@daviesoludare5821
@daviesoludare5821 4 жыл бұрын
Loved it. You've gained a new subscriber.
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Awesome, thank you!
@guptaashish327
@guptaashish327 4 жыл бұрын
Thanks. Really well explained
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad it was helpful!
@complex5372
@complex5372 4 жыл бұрын
Great video!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
Glad you enjoyed it!
@bharatpatidar3693
@bharatpatidar3693 3 жыл бұрын
You are a Gem Brother
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thank you my friend :)
@virunpatolankitkunchai4179
@virunpatolankitkunchai4179 4 жыл бұрын
This is awesome! The example is well explained. Thank you so much for doing this!!
@BeABetterDev
@BeABetterDev 4 жыл бұрын
You're very welcome!
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 188 М.
AWS EC2 vs ECS vs Lambda | Which is right for YOU?
16:50
Be A Better Dev
Рет қаралды 195 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Introduction to AWS Services
38:54
AWS with Chetan
Рет қаралды 2,2 МЛН
What is a DynamoDB GSI (Global Secondary Index) ?
10:19
Be A Better Dev
Рет қаралды 123 М.
AWS SNS Vs SQS Vs EventBridge In 2024 | When To Use What?
16:26
Cloud With Raj
Рет қаралды 9 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 178 М.
AWS Networking Fundamentals
40:09
Amazon Web Services
Рет қаралды 478 М.
SNS And SQS Deep Dive | SNS Vs SQS | Standard Vs FIFO | Use Cases
15:05
The only Cloud services you actually need to know
17:17
NeetCodeIO
Рет қаралды 205 М.
AWS EC2 vs Lambda | Whats the difference? Pros and Cons?
19:51
Be A Better Dev
Рет қаралды 127 М.
21. What services should I use for events?
21:37
AWS Bites
Рет қаралды 3,8 М.
AWS EC2 on ECS vs Fargate | Whats the Difference and When To Use What?
14:54
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН