Skip to content

FaaS positioning & supporting user-defined methods to handle more HTTP methods #2111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Apr 26, 2021

Conversation

RobertLucian
Copy link
Member

@RobertLucian RobertLucian commented Apr 22, 2021

Closes #2063.


Changes to the predictor implementation

Methods for Realtime API
  1. HTTP:
  • __init__, handle_<verb>, conditional load_model.
  • Remove “post_predict” in favour of returning a callback instead.
  • Dynamic-batcher for the post verb (handle_post method) only.
  1. gRPC:
  • __init__, any number of methods as indicated by the protobuf definition (RPC methods), conditional load_model.
Methods for Batch API
  • __init__, handle_batch, handle_on_job_complete.
Methods for Async API
  • __init__, handle_async.
No change to the Task API
Name of the predictor clients

Renamed python_client/tensorflow_client to model_client/tensorflow_client.

Changes to the API spec

Predictor section renamed to handler.


checklist:

  • run make test and make lint
  • test manually (i.e. build/push all images, restart operator, and re-deploy APIs)
  • run e2e
  • update examples
  • update docs and add any new files to summary.md (view in gitbook after merging)

@RobertLucian RobertLucian changed the title [WIP] FaaS positioning & supporting user-defined methods to handle more HTTP methods FaaS positioning & supporting user-defined methods to handle more HTTP methods Apr 22, 2021
# Conflicts:
#	pkg/cortex/serve/cortex_internal/lib/api/__init__.py
#	pkg/cortex/serve/cortex_internal/lib/api/api.py
#	pkg/cortex/serve/cortex_internal/serve/serve.py
#	pkg/cortex/serve/start/batch.py
#	pkg/cortex/serve/start/server_grpc.py
#	pkg/cortex/serve/start/task.py
#	pkg/operator/operator/k8s.go
@RobertLucian RobertLucian merged commit 2b76a1e into master Apr 26, 2021
@RobertLucian RobertLucian deleted the feature/faas-and-http-verbs branch April 26, 2021 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support user-defined functions to handle more HTTP methods for realtime APIs
3 participants