Investigate RPC solutions #83
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: projectmoon/tenebrous-dicebot#83
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Investiate RPC solutions for the bot. Ideally, we have:
The Rust gRPC implementation doesn't implement grpc-web, which means we can't call gRPC directly. So we'd have to proxy it to a REST API. Perhaps we could create a GraphQL API service, which can call the bot.
We can have different RPC solutions for front-end and backend. For example, GraphQL for frontend, and gRPC for the bot itself. There are some other RPC frameworks that should be useful for the communication between the bot and its API front-end:
A possibly more crazy/interesting solution for web <-> bot communication is to actually make the web frontend log in to Matrix, and send custom Matrix events to the bot. This presents some interesting benefits, but we basically completely lose the ability to do proper two-way communication (AKA request-response).