Fork me on GitHub
#clojure-uk
<
2022-06-24
>
steffan09:06:03

Morning all šŸ™‚

folcon14:06:06

Is there anything that nicely handles the complexity of building / orchestrating applications that use sqs and lambdas? IE, push work onto an sqs, it triggers a lambda, outcomes go on an sqs and those can be checked by an external system? I know you can do this with datomic ions for example, just wondering if there was anything less substantial?

folcon14:06:45

Hmm, lots of things have happened in this space since I last looked, found so far: ā€¢ https://github.com/babashka/pod-babashka-aws ā€¢ https://github.com/FieryCod/holy-lambda ā€¢ https://fierycod.github.io/holy-lambda/#/

dominicm14:06:28

If I was doing this today, I would copy the ions approach.

dominicm14:06:58

Dumb lambda talking to an autoscaling clojure application running on EC2 or containers or whatever is cool.

folcon14:06:34

Is there a but there? šŸ˜ƒ

dominicm14:06:57

But I don't have to suffer lambdas šŸ˜…

folcon14:06:06

Ah ok šŸ˜ƒ

folcon14:06:07

Sure that's fair, at the moment it seems like lambdas will be enough, at some point we'll transition, perhaps to just using ions. Not sure on that front. I think the real question is how hard will it be to debug, lambdas can be really finicky to debug I've found.

folcon14:06:33

Though maybe just a dumb server that's just sitting around waiting for work...

dominicm14:06:35

Yeah, that's why I like the option of having a dumb lambda that just forwards everything.

dominicm14:06:56

You make it really good with fantastic logging and then use it everywhere.

folcon14:06:05

God, logging is still super painful as well, I don't know how people are productive with cloudlogs, all of the ui for them I've ever seen has terrible defaults... That's not just AWS, all cloud logging I've ever seen is just >_<...

šŸ’Æ 1
folcon17:06:31

Ok, one completely golden thing so far is the REPL seems to both working and a valid representation (so far at least) of what actual lambda code looks like...

steffan13:06:53

If the orchestration part is significant to you, you may wish to look into https://aws.amazon.com/step-functions/

1