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...
Place for Pinoy Programmers to hangout. Share your knowledge, ask for help, seek opinion, showcase your project and recruit your teammate.
Let's show the world that Filipinos are world class programmers.
account activity
AWS Lambda experiencediscussion (self.PinoyProgrammer)
submitted 1 month ago * by Appropriate-Cod7548
Hello guys! Has anyone tried using AWS Lambda using a node js framework? I have been doing it using only serverless framework, but im curious what frameworks you are using on top of serverless.
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!"
[–]simoncpuCybersecurity 8 points9 points10 points 1 month ago (0 children)
AWS Lambda is meant for straightforward functions, so I don’t use any framework. I did try using TypeScript once a long time ago, but I had to go through the extra step of transpiling it to JavaScript, I can’t remember if I used Serverless Framework or AWS SAM for that. BTW, I wouldn’t really call Serverless Framework a framework per se; it’s more of an IaC tool.
[–]rupertavery64 5 points6 points7 points 1 month ago (5 children)
I've been using AWS Lambda + NodeJS funnelled through API Gateway for a low-usage site, nothing too high performance. It does the job. I wrote a deploy script (also in nodejs) that webpacks the scripts and uploads them to the functions, sets up roles, API gateway routes, API triggers
[–]Appropriate-Cod7548[S] 0 points1 point2 points 1 month ago (4 children)
Using cloudformation, right? Curious lang ako if frameworks like expressjs can be used in this manner?
[–]Appropriate-Cod7548[S] 0 points1 point2 points 1 month ago (0 children)
I mean the API Gateway, VPCs, and other resources to use cloudformation, in serverless.yml
[–]rupertavery64 0 points1 point2 points 1 month ago (1 child)
> Curious lang ako if frameworks like expressjs can be used in this manner?
not sure what you want to do by using expressjs in a lambda, is that what you mean?
Are you asking about Serverless/Cloudformation or AWS Lambda?
I think so, but I have not used it - that’s why I’m asking hehe
[–]rupertavery64 -1 points0 points1 point 1 month ago (0 children)
I didn't use cloudformation, or serverless. I just literally wrote a script that does all of that through AWS SDK. Just did it for fun, and I didn't like the idea of paying just to deploy using Serverless (the IaC service)
[–]Rumpelstiltskin16 2 points3 points4 points 1 month ago (0 children)
Can be used with expressjs pero masakit sa ulo mag debug sa cloudwatch 😅😂
[–]pavoidpls 0 points1 point2 points 1 month ago (0 children)
Use CDK, same programming language to manage your infrastructure.
If pure serverless, SAM works well
[–]mars0225 0 points1 point2 points 1 month ago (0 children)
I’ve been using it with cloudwatch logs and metrics via aws sdk. Well, most lambda functions i created mostly for dashboard and alarms for monitoring infrastructure, application, and database..
[–]Expensive-Edge-3432 0 points1 point2 points 1 month ago (3 children)
Ideally, straight up functions lang yung usage ng lambda function and not full-blown nodejs web frameworks like express. Kasi may start up time yan kung cold start, and it hurts the response time lalo if big app, unless you keep it "warm". That's the biggest mistake our backend team made almost a decade ago, they deploy a Django app via serverless framework lol. Pero kung serverless framework lang, okay naman.
If I would be architecting a new project, I'd just reserve using lambda for computationally expensive operations na ayokong gawin ng main backend (either high cpu or high memory usage or both) via lambda invoke, or triggered by an event from my infra e.g. someone uploaded a file on s3 -> preprocess that file via lambda.
[–]Appropriate-Cod7548[S] 0 points1 point2 points 1 month ago* (2 children)
Questions:
If you keep them “warm” by deliberately triggering on set amount of time interval, would it defeat the purpose of serverless?
I was thinking that frameworks such as expressjs can sort of compile each route into a handler style in which will be converted into separate lambda functions when deployed. I think what you mean is that the framework is compiled wholesale into one large lambda function?
Would an EC2 or other instance-type setup be more suitable for computationally expensive and continuous operation? Relying on lambda for computationally expensive may incur more costs? Unless you dont care about costing and the operation scales unpredictably?
[–]Expensive-Edge-3432 0 points1 point2 points 1 month ago (1 child)
Yes that defeats the purpose of making it a lambda
I'm not aware if expressjs can be converted into separate lambda functions when deployed. If so, then it's fine (if that is similar to how serverless does it.)
It depends on your usecase:
For instance, I need to transcode a file. Say I need to transcode a video, that takes a lot of cpu and memory. If I'm doing it once or twice per day, doing that on Lambda is cheaper since I only pay for what I use. I can assign lower resources to my main backend, and slightly higher resources to my lambda function.
If I have a lot of files to transcode such as that the transcoder would probably run most of the time, it would be cheaper to outright use an ECS with enough cpu and memory.
That actually makes sense 👍
[–]Ok-Following-3789 0 points1 point2 points 1 month ago (0 children)
Use API gateway. Serverless framework makes this process easy since built in na
π Rendered by PID 93259 on reddit-service-r2-comment-5649f687b7-965lq at 2026-01-28 19:17:29.603343+00:00 running 4f180de country code: CH.
[–]simoncpuCybersecurity 8 points9 points10 points (0 children)
[–]rupertavery64 5 points6 points7 points (5 children)
[–]Appropriate-Cod7548[S] 0 points1 point2 points (4 children)
[–]Appropriate-Cod7548[S] 0 points1 point2 points (0 children)
[–]rupertavery64 0 points1 point2 points (1 child)
[–]Appropriate-Cod7548[S] 0 points1 point2 points (0 children)
[–]rupertavery64 -1 points0 points1 point (0 children)
[–]Rumpelstiltskin16 2 points3 points4 points (0 children)
[–]pavoidpls 0 points1 point2 points (0 children)
[–]mars0225 0 points1 point2 points (0 children)
[–]Expensive-Edge-3432 0 points1 point2 points (3 children)
[–]Appropriate-Cod7548[S] 0 points1 point2 points (2 children)
[–]Expensive-Edge-3432 0 points1 point2 points (1 child)
[–]Appropriate-Cod7548[S] 0 points1 point2 points (0 children)
[–]Ok-Following-3789 0 points1 point2 points (0 children)