Skip to content

Replace GCS + Jobs API with a proper Pub/Sub queue #69

@supreme-gg-gg

Description

@supreme-gg-gg

I would hereby propose the final design to defeat all cloud technical debt once and for all. Yes, you heard it right!

  1. All async endpoints (training, export, inference which is to be made async) will change their POST endpoints to put a message in the pub sub queue with the JSON body instead of uploading it to GCS and using gRPC to the jobs
  2. The cloud run job will run, and once it completes write the result to firestore or GCS (depending on artefact type and size)

I cannot find another way to optimise step 2 other than keeping the polling method. Alternatives are complex solutions like web hook which are not necessary for such a simple use case.

Metadata

Metadata

Assignees

Labels

cloud / opsCloud related or DevOps changesfeature requestNew feature or requesttech debtYes, literally technical debt :skull:

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions