| ▲ | stopachka 15 hours ago | |
If I understood you correctly: You kick off an agent. It reports work back to the user. The user can click cancel, and the agent gets terminated. You are right, this kind of UX comes very naturally with Instant. If an agent writes data to Instant, it will show up right away to the user. If the user clicks an `X` button, it will propagate to the agent. The basic sync engine would handle a lot of the complexity here. If the data streaming gets more complicated, you may want to use Instant streams. For example, if you want to convey updates character by character, you can use Instant streams as an included service, which does this extremely efficiently. More about the sync engine: https://www.instantdb.com/product/sync More about streams: https://www.instantdb.com/docs/streams | ||