Title: A pub notification is not triggered when a file changes · Issue #18 · nodeSolidServer/node-solid-ws · GitHub
Open Graph Title: A pub notification is not triggered when a file changes · Issue #18 · nodeSolidServer/node-solid-ws
X Title: A pub notification is not triggered when a file changes · Issue #18 · nodeSolidServer/node-solid-ws
Description: From my experimentation pub notifications are triggered, in some, but not all cases of an underlying file changing For example when a PUT/PATCH/DELETE operation occurs, then a pub notification is delivered However, if the file is changed...
Open Graph Description: From my experimentation pub notifications are triggered, in some, but not all cases of an underlying file changing For example when a PUT/PATCH/DELETE operation occurs, then a pub notification is d...
X Description: From my experimentation pub notifications are triggered, in some, but not all cases of an underlying file changing For example when a PUT/PATCH/DELETE operation occurs, then a pub notification is d...
Opengraph URL: https://github.com/nodeSolidServer/node-solid-ws/issues/18
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A pub notification is not triggered when a file changes","articleBody":"From my experimentation pub notifications are triggered, in some, but not all cases of an underlying file changing\r\n\r\nFor example when a PUT/PATCH/DELETE operation occurs, then a pub notification is delivered\r\n\r\nHowever, if the file is changed on the file system then the watching client would be normally unaware that such a change has been made, leading to potentially inconsistent states or conflicts\r\n\r\nOne way to mitigate this would be to watch the file system and have that as an additional input to the pub / sub mechanism. In my experimentation, this works well, but the only caveat is that there are OS level configurations of the number of files that can be watched, but this can be easily raised, there is a slight memory overhead of a few bytes per file.\r\n\r\nAnother method I've used is to \"touch\" a file when it is updated on the OS. You can do this (hopefully!) by sending an empty PATCH to a file. However, the disadvantage of this approach is that the latency for update increases, it involves an extra moving part, can be more resource-intensive, and PATCH can be buggy. \r\n\r\nIt would be great if full realtime updates could be considered in node solid server. This is something I use on a daily basis, and it would be nice not to have to use workarounds. It's not hard to imagine a plethora of use cases for realtime updates : realtime decentralized chat, markets of changing products, media updates and slideshows, playlists and so on. ","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2019-11-29T08:41:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/18/node-solid-ws/issues/18"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a7096c2-dc8f-f6ac-843e-4437603097ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDC4:E7A9D:1B11C32:255050E:6971F45A |
| html-safe-nonce | 301021ac70b0ebcaac481b4144029eabc786123b67f041fb6cb7f1d4bd4fa205 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREM0OkU3QTlEOjFCMTFDMzI6MjU1MDUwRTo2OTcxRjQ1QSIsInZpc2l0b3JfaWQiOiI0MTA3ODkwODQ4OTExNDU1MzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b23ac91640f46e0ac3ccc45d579838d189475d5a9fdf6d28c68fbd7fc9164bb9 |
| hovercard-subject-tag | issue:530221604 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodeSolidServer/node-solid-ws/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/285e2512647f5fbe153aadab742639d25d37af7155c83b78b2d7d294dec75591/nodeSolidServer/node-solid-ws/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/285e2512647f5fbe153aadab742639d25d37af7155c83b78b2d7d294dec75591/nodeSolidServer/node-solid-ws/issues/18 |
| og:image:alt | From my experimentation pub notifications are triggered, in some, but not all cases of an underlying file changing For example when a PUT/PATCH/DELETE operation occurs, then a pub notification is d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d9da1aa47d387dfb2aca0f2e5c19150dc936b8128a6b2ecd6a02fc26a378fff |
| turbo-cache-control | no-preview |
| go-import | github.com/nodeSolidServer/node-solid-ws git https://github.com/nodeSolidServer/node-solid-ws.git |
| octolytics-dimension-user_id | 104446421 |
| octolytics-dimension-user_login | nodeSolidServer |
| octolytics-dimension-repository_id | 43249504 |
| octolytics-dimension-repository_nwo | nodeSolidServer/node-solid-ws |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43249504 |
| octolytics-dimension-repository_network_root_nwo | nodeSolidServer/node-solid-ws |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4332d3e3368b9bce3dfd3c4a2643112933072734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width