2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
I was able to work around this by making the Lambda function not async and run an async submethod using asyncio.get_event_loop().run_until_complete()
Still would be nice to get confirmation / documentation that async Lambdas are not compatible with websocket APIs.
répondu il y a 4 ans
0
You might consider using boto3 Lambda.Client.invoke() and calling the WebSockets API directly with an Asynchronous Event. You marshall the data yourself into the Event object and have total control over what the other side receives. Here's a paper on using invoke() and the Asynchronous Event Design Pattern in AWS Lambdas that might help you:
répondu il y a 22 jours
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 10 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
Is there a better way today?