I should start by saying I really know nothing about AWS, Lambda, or for that matter much about Python, so the likelihood of dumb mistakes is high.
I'm trying to create a system wherein a user POSTS a thing, the handler quickly passes them back a jobID, and then the user can revisit later to check on the process/get the result.
Basically:
def long_function(jobID, stuff): //dont know how to define this to be called asychronously
//slow-running code
//stuff the result in dynamoDB
return
def lambda_handler(event, context):
jobID = uuid.uuid4.hex
stuff = event['stuff']
long_function(jobID, stuff) //dont know how to write this call
return jobID //should run before long_function completes
My understanding is that general python async stuff (which I'm also unfamiliar with) won't work, and I need to do a particular Lambda invocation. I'm failing to find a clear and simple way to do this (especially with python syntax)