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

Add support for serverless #9

Open
galkin opened this issue Dec 1, 2023 · 2 comments
Open

Add support for serverless #9

galkin opened this issue Dec 1, 2023 · 2 comments

Comments

@galkin
Copy link
Contributor

galkin commented Dec 1, 2023

@hdoan741 and @huytool157, i know that rpc is beta. There is my architecture feedback.

The current architecture for retool rpc doesn't support serverless architecture. Under the hood integration uses polling, which requires running server.

Our case:

  • In QA environment application deployed as Cloud Run (serverless container)
  • In prod environment application deployed as k8s pod

We have such setup for cost optimization.
From a security standpoint pull-rpc looks better than rest/graphql/grpc/etc, but we can not use it in QA environment.

Can we add the ability to call webhook from retool based on resource configuration? It should improve the Developer Experience with this resource.

@hdoan741
Copy link
Contributor

hdoan741 commented Dec 5, 2023

Hi @galkin! Thank you for the request! We chose the polling approach for various security benefits. To support serverless, we'll need to implement a push version, which requires us to implement a different authentication mechanism. I'll bring it back to the team to discuss about it.

@KATT
Copy link
Contributor

KATT commented Mar 18, 2024

Making it webhook-based would be better for serverful environments as well. I just deployed Retool RPC today and we already get a lot of false-negative errors due to random network errors when the polling happens.

It'd be nicer if it was a webhook that got called (maybe with a debounced batch of messages in the last x milliseconds so we'd internally could leverage dataloaders etc for e.g. RPC-calls within lists of stuff)

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

3 participants