Skip to content
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

Expertise Cloud Service: Move API interactions to Local Database #208

Open
haroldrubio opened this issue Jan 9, 2025 · 2 comments
Open
Assignees

Comments

@haroldrubio
Copy link
Member

Currently, we're using Google Cloud Storage as a database by reading the bucket to fetch the status.

For a quick approximation (as of January 2025), over 24 hours we receive at most 30 jobs that take at most an hour each. For each job, we poll every minute so there are 1800 polls. Each poll involves a list blob call and a download call, so 3600 Class A operations per day. For ~1.3M Class A operations per year, this will cost at most $8/year but this can grow substantially as we need to scale.

It also creates added latency in the endpoint.

@haroldrubio haroldrubio self-assigned this Jan 9, 2025
@haroldrubio
Copy link
Member Author

Also unify job IDs into a single format (suggest to use the Vertex AI Pipeline compliant one, but what happens when requests are sent too quickly for the same job0

@carlosmondra
Copy link
Member

Also unify job IDs into a single format (suggest to use the Vertex AI Pipeline compliant one, but what happens when requests are sent too quickly for the same job0

If the same job is guaranteed to have the same jobId, the queue will handle this case. It's impossible to have more than one job with the same id.

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

No branches or pull requests

2 participants