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

Investigate migrating bots to serverless function calls instead of DO k8s #71

Open
0xAurelius opened this issue Nov 3, 2023 · 0 comments
Assignees

Comments

@0xAurelius
Copy link
Collaborator

To reduce running costs and deployment complexity, these bots could be migrated to a set of serverless function calls

As long as the serverless platform supports Python function calls on a sub-minute latency, it would likely be much cheaper than the current k8s setup, though that should be confirmed with some cost estimation with the planned function provider

Simple multiply the number of function calls per minute (scaled by the amount of resources required) by the number of updates per month (most bots update every few minutes or once per minute)

The key question is whether modern serverless hosting providers can provide sub-minute responses at lower cost than the current setup for all current bots and any projected new bots. Python typically has slow boot times so this likely means either "warm" function calls, or potentially redeveloping these all in TypeScript for consistency with the rest of the codebase (with the help of ChatGPT?)

Scoping this as an investigation ticket to make it achievable, if this were to be implemented there would need to be subsequent tickets

@0xAurelius 0xAurelius self-assigned this Nov 3, 2023
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

1 participant