Skip to content

Commit 150f0c0

Browse files
committed
clarify that bring-your-own-state-store is an option
Signed-off-by: Joel Dice <[email protected]>
1 parent 525486d commit 150f0c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/sips/016-inbound-websockets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ However, if the app uses a database that's distributed and eventually consistent
199199

200200
The first two of those options are appealing from a both a developer and user experience perspective. The third one requires the app developer to confront a fundamental trade-off: polling too often creates unreasonable load on the database, application server, etc., while polling too infrequently results in a poor user experience. Indeed, one of the big reasons to provide WebSocket support is to avoid polling and its trade-offs.
201201

202-
Unfortunately, as of this writing, neither of Spin's built-in persistent stores (SQLite and key-value) provide any sort of explicit consistency guarantees, so the third option is the only one currently available to apps. In the future (or even concurrently with this proposal) should consider providing one or both of the first two options.
202+
Unfortunately, as of this writing, neither of Spin's built-in persistent stores (SQLite and key-value) provide any sort of explicit consistency guarantees, so apps must either provide their own store (e.g. a PostgreSQL, MySQL, or Redis server) or use the third option. In the future (or even concurrently with this proposal) should consider providing one or both of the first two options as a built-in part of Spin.
203203

204204
## Future Possibilities
205205

206-
- As discussed above, Spin should offer one or more persistent state stores with explicit consistency guarantees to avoid the need for polling.
206+
- As discussed above, Spin should offer one or more built-in, persistent state stores with explicit consistency guarantees to avoid the need for polling.
207207
- [WebTransport](https://www.w3.org/TR/webtransport/) is a new, more advanced protocol for high-performance client-server networking based on HTTP/3. It's not yet supported by all popular browsers, but could be worth supporting in Spin eventually.
208208
- Outbound WebSockets could be supported similarly to this proposal, with short-lived instantiations created as frames arrive from the remote server. However, server-to-server WebSockets are rare, so it's not clear how useful this would be.

0 commit comments

Comments
 (0)