How to build a chat using Lambda + WebSocket + API Gateway? (nodejs)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 2024

ความคิดเห็น • 87

  • @BiteSizeAcademy
    @BiteSizeAcademy  3 ปีที่แล้ว

    ⚡️ NEW VIDEO: How to use versioning and aliases to deploy lambda functions? (/w API Gateway) th-cam.com/video/OGMaE63YgEU/w-d-xo.html

  • @sagarKumar-v7i8j
    @sagarKumar-v7i8j ปีที่แล้ว

    So much useful for my project in 2023. Thankyou

  • @Duckzzzzzzzzzz
    @Duckzzzzzzzzzz ปีที่แล้ว

    I don't ever comment, but I just wanted to say that I appreciate the pace of your content.

    • @dhrubdas2975
      @dhrubdas2975 8 หลายเดือนก่อน

      dude i am getting an error Unexpected server response: 502
      what should i do
      how to solve

  • @abhisharma1471
    @abhisharma1471 ปีที่แล้ว

    thankyou for this video it help me alot , if someone looking to understand the basics of aws websocket just watch this video
    thanks once again

  • @archidvignesh5368
    @archidvignesh5368 ปีที่แล้ว +1

    What an amazing tutorial. You deserve more than a million subs. Please keep the videos coming

  • @sadev0
    @sadev0 3 ปีที่แล้ว +7

    Hey Alex, thanks for this tutorial.
    It would be great if you make a complete series on Serverless SASS application with AWS CDK and reactjs

  • @TuanTran-zc5ei
    @TuanTran-zc5ei ปีที่แล้ว

    Thank you for this tutorial. This is a great guide to learn WebSocket API in AWS.

  • @kidsAdventuresvlogs
    @kidsAdventuresvlogs ปีที่แล้ว

    It was great learning from this video about AWS API

  • @abdulbasitrana2743
    @abdulbasitrana2743 ปีที่แล้ว

    Excellent tutorial and very well explained in detail.

  • @tamer5639
    @tamer5639 3 ปีที่แล้ว +1

    Really good walkthrough. You're only 2 subscribers away from 1000, so I'm gonna have to subscribe! :D Almost there!

  • @khandoor7228
    @khandoor7228 3 ปีที่แล้ว +1

    Excellent please do more of these types of tutorials.

  • @JJLabajo
    @JJLabajo 3 ปีที่แล้ว

    Awesome, I think you deserve thousands of subscribers. Keep up the work brother.

  • @likithravva2246
    @likithravva2246 ปีที่แล้ว

    Awesome tutorial ALex!!Love from india

    • @sampatil5474
      @sampatil5474 9 หลายเดือนก่อน

      i have some problem with implementation can u help?

  • @momulla5639
    @momulla5639 2 ปีที่แล้ว

    Genius video. Really enjoyed this one. Also very well explained, 10/10 for all of it . My own further request would be that it would be nice to see and edit message feature too :)

  • @DecypherMedia
    @DecypherMedia 2 ปีที่แล้ว +1

    this was an excellent tutorial, thank you.

  • @jesusmuhammad8220
    @jesusmuhammad8220 2 ปีที่แล้ว

    so detailed and super helpful for a beginner, THANK YOU SIR

  • @alexgolubev1182
    @alexgolubev1182 ปีที่แล้ว

    sustained, informative, thank you

  • @seanknowles9985
    @seanknowles9985 3 ปีที่แล้ว +1

    Yo what amazing content !!!

  • @parkerschlank1713
    @parkerschlank1713 2 ปีที่แล้ว

    Exceptional tutorial. Subbed. 🤩

  • @taufinews5736
    @taufinews5736 2 ปีที่แล้ว

    Very good tutorial. Compact and rich in content.

  • @petrovandrey9735
    @petrovandrey9735 ปีที่แล้ว

    This is amazing!!! Thanks for sharing with us ))

  • @PaulPetersVids
    @PaulPetersVids 3 ปีที่แล้ว

    I've been looking for a good api gateway websocket gateway. Thank you!

  • @kunalghosh1117
    @kunalghosh1117 3 ปีที่แล้ว +5

    Solid tutorial...Could you please provide the complete set of working codes? It will be easier to run and check things on local.
    Thanks in advance!

    • @BiteSizeAcademy
      @BiteSizeAcademy  2 ปีที่แล้ว +2

      I've added a link to the github repo in the description

  • @stevenlin0719
    @stevenlin0719 3 ปีที่แล้ว

    Thank you so much! Very helpful.

  • @sourabhk2373
    @sourabhk2373 2 ปีที่แล้ว

    Very Very well explained.

  • @guillaume5623
    @guillaume5623 2 ปีที่แล้ว

    Such a great video, thank you very much 👍

  • @nahomberhe9640
    @nahomberhe9640 3 ปีที่แล้ว

    Amazing!! Thank you!

  • @Cedielagekohaha
    @Cedielagekohaha 2 ปีที่แล้ว

    So helpful man!

  • @shrivatsavk2246
    @shrivatsavk2246 2 หลายเดือนก่อน

    how did you open the terminal in 09:34???
    please do help me

  • @garyboss583
    @garyboss583 2 ปีที่แล้ว

    Great video, super Like

  • @arshdeepkumar2586
    @arshdeepkumar2586 2 ปีที่แล้ว

    Excellent

  • @jixster1566
    @jixster1566 2 ปีที่แล้ว

    Please make a video on how to do authentication for websockets

  • @gideonwekesa_
    @gideonwekesa_ 3 ปีที่แล้ว +2

    Amazing! Kindly share the github repository of the frontend code.

    • @BiteSizeAcademy
      @BiteSizeAcademy  2 ปีที่แล้ว

      Thanks! Added the links to the repo in the description

  • @sekhniashvili
    @sekhniashvili 3 ปีที่แล้ว +3

    Hey man,
    Nice and helpful video. Thank you.
    I get Forbidden error when sending message from socket client {"message": "Forbidden", "connectionId":"some_ID", "requestId":"some_ID"}
    I think I have not missed any step. The request does not appear in lambda logs, so I think API gateway blocks the request for some reason.

  • @НиколайПоливанов-и2т
    @НиколайПоливанов-и2т 3 ปีที่แล้ว

    thank you very much

  • @smritieligar2518
    @smritieligar2518 6 หลายเดือนก่อน

    i am getting Unexpected server response: 502 when i run wscat(9:38 timeline in the video). how do i solve it?

    • @iamkarthykeyan
      @iamkarthykeyan 3 หลายเดือนก่อน

      Yea I'm too facing the same issues !
      Can you please tell me what to do next? If you resolved..

  • @swethareddy8550
    @swethareddy8550 2 ปีที่แล้ว

    Thank you

  • @sagarKumar-v7i8j
    @sagarKumar-v7i8j ปีที่แล้ว

    Could you make a video on aws opensearch

  • @alexarevalo1971
    @alexarevalo1971 4 หลายเดือนก่อน

    I cant go further than the third step, seems like the next button isn't working. Do somebody has the same problem?

  • @chengyiliu2277
    @chengyiliu2277 2 ปีที่แล้ว

    Hello, do you have a tutorial on how to write chat application on google function?

  • @roshnipathan-j2z
    @roshnipathan-j2z 10 หลายเดือนก่อน +1

    I am not getting response from web socket api Connected (press CTRL+C to quit)
    > {"action":"setName","name":"bob"}
    >

    • @KenyK47
      @KenyK47 8 หลายเดือนก่อน

      Did you find a solution to this?

  • @jshossen
    @jshossen 2 ปีที่แล้ว +2

    Great Videos. I implemented your way. but my connection returns 500 internal server errors.

    • @studiomonty
      @studiomonty 2 ปีที่แล้ว +2

      Did you find a solution to this? I'm having the 500 error as well

    • @emmy0021
      @emmy0021 ปีที่แล้ว +1

      @@studiomonty same

  • @isohumulone
    @isohumulone 11 หลายเดือนก่อน

    Where is the array variable "ids" initialized.

  • @shrivatsavk2246
    @shrivatsavk2246 2 หลายเดือนก่อน

    could you provide the frontend code of the web chat app
    ??please help me

  • @AbhishekKumar-wx3dh
    @AbhishekKumar-wx3dh 10 หลายเดือนก่อน

    How do you handle error from the lambda fn. Error which can come from not connecting to db.

  • @alibarznji2000
    @alibarznji2000 3 ปีที่แล้ว

    I like you "Bob" (:).
    subbed

  • @Caramelon-e4u
    @Caramelon-e4u 9 หลายเดือนก่อน

    Is there a way to see how much this will cost with aws price calculator?

  • @geekthegeek730
    @geekthegeek730 3 ปีที่แล้ว

    🤤more more tutorials!

  • @evanserickson
    @evanserickson 3 ปีที่แล้ว

    No link to the React Components for the front end?

  • @AhmedYounissICG
    @AhmedYounissICG ปีที่แล้ว

    I have a question please , When a user creates a chat room and adds a members for this chatRoom ,How can we generate connectionId for each member to be able to receive connectionId

  • @tnmyk_
    @tnmyk_ 3 ปีที่แล้ว

    Great video! How can I make the web app hosted completely on cloud, without having to use the terminal/local host?

  • @shaheerahmed5234
    @shaheerahmed5234 2 ปีที่แล้ว

    what if bob is disconnected and jimmy wants to send message to bob how to handle this situation like in chat application . The problem is connection id is recreated when ever the user is join the chat .

  • @duongucthang2191
    @duongucthang2191 ปีที่แล้ว

    could you teach me how to run the client

  • @eruiluvatar6178
    @eruiluvatar6178 3 ปีที่แล้ว

    One question, what about pricing? Can we use this solution for a high load system?

  • @fedelecavaliere5249
    @fedelecavaliere5249 3 ปีที่แล้ว

    Very nice! But I was questioning if using Lambda what it's billed to me it's per say 100ms for each client for every message. On the other hand Lambda is taking up and storing my variables with my ids... How does Lambda bills me?
    Thank you!

  • @okeyshourovroy2769
    @okeyshourovroy2769 3 ปีที่แล้ว

    Please make a secure video on demand like netflix using mern stack and aws.
    New subscriber 😊

  • @edilsonfb
    @edilsonfb 2 ปีที่แล้ว

    Thank you for the video, it really helped me! I've facing an issue regarding using only serverless.yml to deploy the application. Locally everything works, but on aws the postToConnection only send if a user has joined. I'm saving the data in mongogb. Is there a huge difference by doing the firsts steps in the video and doing locally?

  • @shitalkhoje4946
    @shitalkhoje4946 ปีที่แล้ว

    I really really need a urgent help if anyone can pls...
    Hey Alex...and other people reading this comment
    ...can anyone tell me how to open this CLI from lambda function whose prompt will be lambda too....
    I'm.not getting how in this video at 9.30 timing the cli opens from the lambda service window....
    Pls help urgent

  • @CATAPASMARENT
    @CATAPASMARENT 3 ปีที่แล้ว

    When i send a message i always go in the $default routeKey any advice or code sample ?

  • @headmaster499
    @headmaster499 3 ปีที่แล้ว +1

    Do you mind sharing the repo for the lambda code? I cant seem to get a response back when I use Wscat to test.

  • @oldyoung
    @oldyoung 3 ปีที่แล้ว +1

    The message store in dynamodb ?

    • @amra1610
      @amra1610 3 ปีที่แล้ว

      same question?

  • @bhavanishankar5204
    @bhavanishankar5204 3 ปีที่แล้ว

    hi can u pls tell me how to make a chat application using dynamodb and nodejs without using lambda/serverless???? The user wil send u a text message ,u have to store it in dynamodb (you read it later and reply them or live reply)!! is it possible to do this in this way ?? if not please tell me!!! y

  • @mcpoppyborger
    @mcpoppyborger 3 ปีที่แล้ว +2

    I’m getting an unexpected serverr response: 502 :

    • @peppyday
      @peppyday 3 ปีที่แล้ว

      any solution

    • @BiteSizeAcademy
      @BiteSizeAcademy  3 ปีที่แล้ว +1

      Try to check the logs of the lambda function to see what causes the error,
      then troubleshoot it: aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-invoke-error-502-500/

    • @peppyday
      @peppyday 3 ปีที่แล้ว +1

      @@BiteSizeAcademy worked

    • @peppyday
      @peppyday 3 ปีที่แล้ว

      any idea how to store the chat message in dynamodb ( need schema )

  • @anhadparashar710
    @anhadparashar710 2 ปีที่แล้ว

    hey, does it work?

  • @kazinayem2011
    @kazinayem2011 2 ปีที่แล้ว

    What about ChatClient component? You didn't show us what's inside it. Could you please share that code?

    • @BiteSizeAcademy
      @BiteSizeAcademy  2 ปีที่แล้ว +1

      Added to the video's description

    • @kazinayem2011
      @kazinayem2011 2 ปีที่แล้ว +1

      @@BiteSizeAcademy I appreciate your quick reply and this is really my luck to have the source code. Started practicing your tutorial. Many many thanks.

  • @Jagadish47
    @Jagadish47 ปีที่แล้ว

    HOW lambda holds the names object ( var names = { }; ) for every request won't it become resetted ???

  • @Siscerto
    @Siscerto 2 ปีที่แล้ว

    why should we use .promise() when we are using async and await

  • @DuffMan
    @DuffMan 10 หลายเดือนก่อน +1

    If anyone is trying this lately, I don't know if something changed in AWS, but I was getting bad gateway from the wscat connection. So I checked cloudwatch and it was giving me this error:
    Error: Cannot find module 'aws-sdk'".
    So I installed @aws-sdk/client-apigatewaymanagementapi directly and it fixed the issue.
    Usage:
    import {
    ApiGatewayManagementApiClient,
    PostToConnectionCommand,
    } from '@aws-sdk/client-apigatewaymanagementapi'
    const command = new PostToConnectionCommand({
    ConnectionId: id,
    Data: Buffer.from(JSON.stringify(body)),
    })
    return await client.send(command)

    • @Neosdragon
      @Neosdragon 7 หลายเดือนก่อน

      Can you further elaborate on this?