SC (as understood by RG): Suppose an authenticated client access a topic resource either via a HEAD/GET or a POST; Is exposing websockets cURL in the header any different from going through subscription process from a security point of view.
RG: From what I understand, such a cURL will be a standardized channel specific to a topic, i.e. the client cannot add multiple topics or add features. This is undeirable! While this way would be more performant for a subscribing to a single topic, it will be scale poorly.
As the number of topics in a websocket channel increases, using the subscription flow to get a cURL becomes more efficient! The former (SC proposal) will require client to manage each topic separately. However, this way a single websocket can handle all the topics on a pod/server.
Therefore, I favour exposing Subscription Service on the header (same as the discovery resource) and let the client subscribe to that with all the topics/features it pleases.
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing