Hi! I’m trying to figure out how to build an aws serverless worker program.
The reason for it is I would like to pay less upfront, while the costs of a full fargate deployment for each of my environments wouldn’t be so feasible right now.
I thought of an architecture which uses SNS/SQS and lambda (and temporal cloud).
Maybe creating a lambda scheduled to happen each 5 minutes only responsible getting pendingWorkflows
, then getting something like “pendingTasks” by executing this current pending workflows.
If it finds pending tasks, it sends SNS/SQS for this pending tasks which is handled in other lambda that handles activities.
PS. the reason I would like to separate this, is because some of my activities uses resources that maybe more compute intensive (would require more memory) or need more costly connections (prisma.connect for example). Then a pooling separated from that may be better
My question is, I didn’t really find something in the docs that says this kind of architecture would be feasible, or if I could build it with primitive temporal api’s.
Is it feasible, or there’s something I missed while reading the docs?
Thank you for your time helping me! =)