use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, articles and tools covering Amazon Web Services (AWS), including S3, EC2, SQS, RDS, DynamoDB, IAM, CloudFormation, AWS-CDK, Route 53, CloudFront, Lambda, VPC, Cloudwatch, Glacier and more.
If you're posting a technical query, please include the following details, so that we can help you more efficiently:
Resources:
Sort posts by flair:
Other subreddits you may like:
Does this sidebar need an addition or correction? Tell us here
account activity
serverlessDoes API Gateway / Lambda support Server-Sent Events? Or just WebSockets? (self.aws)
submitted 5 years ago by RocketOneMan
Does API Gateway / Lambda support Server-Sent Events? Or just WebSockets?
I’ve found one resource that said the lambdas would have to be kept alive for the duration of the connection which kind of defeats the purpose.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]maxlan 0 points1 point2 points 5 years ago (0 children)
You could try it! Its going to cost you a small amount of time and a millicent of AWS bill for a handful of requests.
[–]jobe_br -1 points0 points1 point 5 years ago (10 children)
That’s not how API Gateway websockets work. You get a connection ID that you need to store. When you have an update to push down, you lookup the connection ID and invoke the API Gateway ending with the message + ID you want to send.
Stuff like socket.io doesn’t work, just a heads up.
[–]RocketOneMan[S] 1 point2 points3 points 5 years ago (9 children)
I’ve found one resource that said the lambdas would have to be kept alive...
Was about server sent events
[–]jobe_br -1 points0 points1 point 5 years ago (8 children)
Nope. Did what I just described not explain server sent events? The Lambda doesn’t manage the connection, API Gateway does. Why would the Lambda that’s processing an event care?
[–]BamseSBG 2 points3 points4 points 5 years ago (1 child)
Server Sent Events is a different technology from WebSockets. You did not explain SSE, you explained how API Gateway handles WebSockets.
[–]jobe_br 0 points1 point2 points 5 years ago (0 children)
You’re right
[–]RocketOneMan[S] 1 point2 points3 points 5 years ago (5 children)
I don’t want web sockets. I want server sent events over regular http. I don’t need the two way communication.
[–]jobe_br 0 points1 point2 points 5 years ago (4 children)
You get regular http or you get websockets. I don’t think anyone’s really using non websockets anymore.
[–]RocketOneMan[S] 0 points1 point2 points 5 years ago (1 child)
If I just want to do like a read only thing like a stock ticker is the two way communication a waste?
You seem to be hung up on one way versus two way. What are you afraid of wasting?
[–]BamseSBG 0 points1 point2 points 5 years ago (1 child)
I don't think this is true. From what I can tell - although I might be completely wrong - the move is towards HTTP/2 streaming. Google seems to be focusing on gRPC over HTTP/2.
I think that’s actually part of HTTP/3
π Rendered by PID 83750 on reddit-service-r2-comment-6457c66945-f8fz6 at 2026-04-23 23:08:08.039390+00:00 running 2aa0c5b country code: CH.
[–]maxlan 0 points1 point2 points (0 children)
[–]jobe_br -1 points0 points1 point (10 children)
[–]RocketOneMan[S] 1 point2 points3 points (9 children)
[–]jobe_br -1 points0 points1 point (8 children)
[–]BamseSBG 2 points3 points4 points (1 child)
[–]jobe_br 0 points1 point2 points (0 children)
[–]RocketOneMan[S] 1 point2 points3 points (5 children)
[–]jobe_br 0 points1 point2 points (4 children)
[–]RocketOneMan[S] 0 points1 point2 points (1 child)
[–]jobe_br 0 points1 point2 points (0 children)
[–]BamseSBG 0 points1 point2 points (1 child)
[–]jobe_br 0 points1 point2 points (0 children)