Is FastAPI needed with Ray Serve here?

My app sends json API requests to an http server which returns json responses. The endpoint for each API type is a function (or class). A high performance http server is needed on the head-node.

FastAPI could be useful for automatic validation of the json requests. Otherwise, do I need FastAPI?

Me thinks no. What do you say.

Based on what you’ve mentioned so far, FastAPI doesn’t seem necessary. However, it’s also worth mentioning that FastAPI does more than validation. See the FastAPI documentation for other features like dependency injection. The Ray documentation also has examples of handling complex HTTP logic with FastAPI.