holy-lambda

Benjamin 2021-10-12T10:38:14.048500Z

is it possible / adviceable to return a success http repsonse immediately and continue doing work in the lambda?

Karol Wójcik 2021-10-12T10:53:26.048600Z

Nope.

Karol Wójcik 2021-10-12T10:53:54.048800Z

What you would like to do after sending the http response?

Benjamin 2021-10-12T10:57:12.049Z

It was just that gitlab said it should return true and quick. But yea I can just do all my work and then return

Karol Wójcik 2021-10-12T11:05:05.049200Z

If you're doing something that is async/requires fault tolerancy consider using sqs

👀 1
Eugene Koontz 2021-10-16T10:56:52.049700Z

i was considering sqs for that use case, but I think a Cloudwatch log filter would be better since it’s simpler - log a message describing what you want to do and have a lambda that runs by reading that log message and doing whatever is needed: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#LambdaFunctionExample

👍 1
Karol Wójcik 2021-10-16T11:17:28.050900Z

Yeah. But still it's hard to handle retries that way.

Eugene Koontz 2021-10-16T12:27:31.051100Z

that’s true, something to keep in mind