Price inter-connectivity between supabase functions differently #28403
Unanswered
alita-moore
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am using supabase functions as my defacto server, and for services to communicate with each other they make network requests to the other functions in a standard fashion. This has been working great for me and is really clean imo. However I have a few concerns:
These aren't deal breakers for me yet because I don't have a lot of traffic and am okay with moderate latency. Further, I can self-host when I'm ready / needing a speed increase and budget cut.
With that said, it would be super helpful if inter-function communications were treated differently from regular function calls (e.g. from the client). Both in terms of how long they take and how expensive it is. For example, perhaps inter-communication could be priced at $0.2 / million rather than $2/million. Because a single client request can end up making many calls to other functions / services.
Also, I'm a bit surprised by how slow the inter-function requests are. They take as long as if the request were made from the client which doesn't make sense to me because aren't these functions being hosted in the same place / on the same cluster? I would expect that serverless functions being hosted on an identical cluster would be able to route requests to each other nearly instantly yet that's not the case.
Just a thought.
All reactions