How would you got about it if the lambda should transact stuff with datomic (dynamo) ? Atm I'm targeting graalvm
Don't get your use case. Could you elaborate?
basically I have a lambda that get's triggered when our app has a release on android/ios store. And I'd like to keep some memory so I can do some process only if both ios + android are released
> And I'd like to keep some memory so I can do some process only if both ios + android are released Don't get this part. Lambda is triggered per release for ios or android. You would like to do some action only if there is a new release for both platforms?
I need some clear explanation, what you have and what would you like to achieve 馃槃
yea basially having some state or database. So a quite general question
Do you have some experience with AWS Lambda on Node.js or Python? The approach is the same here as in all AWS Lambda runtimes. Basically the idea is that you have to initialize the connection only once per lambda initialization before handling the request. Therefore one of the options is init db before h/entrypoint macro or specify :init-hook for h/entrypoint.
(h/entrypoint [fns] {:init-hook (fn [] (init-database!))})ah interesting. No I'm completely new to aws
One initialization for one lambda instance creation
I see and one lambda instance has some livetime or sth
Lambda can live up to 15min. If you're using dynamodb the integration is extremely straightforward.
You can use faraday for this 馃槃
and if you would like to trigger a lambda upon a change in db you can also use HL for this
https://github.com/Taoensso/faraday https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-dynamo-db.html