2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
con risposta 4 anni fa
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:
con risposta 23 giorni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
Is there a better way today?