[Lambda] Binary Invoke API
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
No se nombran archivos, pruebas ni puntos de entrada de implementación. Empieza por trazar el flujo de codificación de la REST Invoke API actual y la cuestión de compatibilidad de la Runtime API descrita en el issue. Se consideraría terminado cuando exista una API binaria de request y response definida que evite los pasos de codificación descritos y funcione con integraciones relevantes de AWS y de terceros.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Tell us about your request
It would be excellent to have a binary API for invoking Lambdas, and receiving responses.
Which service(s) is this request for?
This is a request for Lambda proper, but could benefit integrations with other services (AWS and 3rd party) as well.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Many use cases for Lambda involve processing binary data (network, images, data, etc.). The current REST API requires two full encoding/decoding passes:
- The calling code must encode the binary data to invoke the lambda.
- The Lambda function decodes the request to process it.
- The Lambda function encodes the response.
- The calling code decodes the response.
In addition to the encoding and decoding compute being a burden at scale, encoding inflates the size of payloads (hence reducing the effective payload size).
Removing the encoding would reduce complexity in customer code, reduce compute consumption and increase the effective request and response payload size.
Are you currently working around this issue?
At Proxylity we encode each UDP packet arriving at our service before passing to Lambda. An arriving packet is serialized to JSON with the binary data being base64 encoded before sending to Lambda. Our customers then write (or use library) code that handles the de/reserialization. Our code then decodes the JSON response and sends a the binary data in a UDP response. The encoding alone can account for as much as a third of the CPU time overall for simple handlers.
Additional context
I understand this ask may sound daunting, but could it perhaps be compatible with the current runtime API as an underlay (pre deserialization/serialization)?
Attachments
None at this time.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 196
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aws/aws-lambda-roadmap
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
aws/aws-lambda-roadmap#101 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
aws/aws-lambda-roadmap#100 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
aws/aws-lambda-roadmap#97 · 1 comentario · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
aws/aws-lambda-roadmap#96 · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
aws/aws-lambda-roadmap#95 · 1 comentario · 1 reacción ·
Todos los issues de aws/aws-lambda-roadmap
Issues similares
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Abiertobug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
AXERA-TECH/ax-llm#77 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
games-on-whales/wolf#509 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100