ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.76k stars 5.74k forks source link

[Serve] Litestar support as Starlette/FastAPI alternative #42392

Open antoniomdk opened 9 months ago

antoniomdk commented 9 months ago

Description

Litestar (also known as Starlite) is a performant FastAPI-like web framework. I believe using Litestar instead of FastAPI could provide several benefits:

Disclaimer: I'm willing to contribute to this feature.

Use case

Most of the ML projects I've worked on with Ray Serve either produce or read large JSON payloads. I think for many ML applications, JSON parsing/serializing efficiency is important. Also, when caching is needed, I always encounter myself having to integrate with libs like aiocache or implement custom functionality.

vladjohnson commented 3 months ago

Would be nice to have!