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 async variants of proxy_{get,set}_shared_data #54

Open
mpwarres opened this issue Sep 5, 2024 · 2 comments
Open

Add async variants of proxy_{get,set}_shared_data #54

mpwarres opened this issue Sep 5, 2024 · 2 comments

Comments

@mpwarres
Copy link

mpwarres commented Sep 5, 2024

For consideration for the next ABI revision:

The current proxy_set_shared_data and proxy_get_shared_data hostcalls are synchronous. If a host environment wants to provide a remote shared data store with higher latency, offering async/callback-style variants of these hostcalls would fit that use case.

@mpwarres
Copy link
Author

mpwarres commented Sep 5, 2024

@leonm1 @martijneken FYI

@PiotrSikora
Copy link
Member

  1. What's the portability and migration story here? Contrary to WASI (or "future WASI"?), we need "colored" functions for sync/async variants, which means that plugins using "sync KV" would need to move to "async KV" interfaces when migrating to hosts with async KV stores. We could potentially force everybody to "async KV" interface and short-circuit the path for local KV, but that would result in pretty ugly plugin code with the existing SDKs.
  2. More generally, aren't HTTP/gRPC callouts sufficient to integrate with existing Cloud KV/SQL/Storage services? Do we want to provide abstraction to those at the host level?

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