module
Version:
v0.0.0-...-16733e2
Opens a new window with list of versions in this module.
Published: Jun 21, 2021
License: Apache-2.0
Opens a new window with license information.
README
¶
A proof of concept for the futures API data plane.
(See that doc for pretty pictures)
This consists of three components:
-
A Redis cluster for backing storage
This is provisioned via an operator, so requires no direct action.
-
A stateless API manager for the data plane
This is curretly a Deployment + Service, but it could easily be a Knative Service if desired.
This is the only component that talks to Redis. It exposes a simple HTTP API with three endpoints:
POST /v1/
: creates a new Work unit. Returns an ID for the work unit
GET /v1/<id>
: gets the status of a work unit.
GET /queueLength
: returns the number of items available for work.
-
A set of workers, which consist of a fixed queue-worker
and a user-controlled sidecar.
Currently a hand-rolled deployment with 1 replica -- TODO: convert this to https://keda.sh/ scaling, and put under controller automation.
Uses a GRPC protocol to communicate with the API manager
Directories
¶
cmd
|
|
|
|
|
|
|
|
The protocol package contains gRPC definitions for the internal services for the saync prototype.
|
The protocol package contains gRPC definitions for the internal services for the saync prototype. |
Click to show internal directories.
Click to hide internal directories.