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

RPC protocol for apps #531

Open
ir4y opened this issue Aug 30, 2022 · 0 comments
Open

RPC protocol for apps #531

ir4y opened this issue Aug 30, 2022 · 0 comments

Comments

@ir4y
Copy link
Member

ir4y commented Aug 30, 2022

Problem I need to solve

The new way to extend Aidbox is RPC.
However, the current implementation of the app protocol supports subscription and operations only.
An ability to define RPC on the app side is required.

Solution I see

A user should be able to define a RPC that uses the app as a source.

my-app-rpc
 {:zen/tags #{zenbox/rpc zen/schema}
  :engine  aidbox.rpc/app
  :app my-app-name
  :params {:type zen/map
           :keys {:search {:type zen/string}}}

When this rpc is called aidbox should call app with type rpc.

Reach: Low
Impact: Medium
Effort: Low
Confidence: High

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants