-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement position file change notification #179
Comments
@kentcdodds The position file isn't really an actual file. LiteFS fakes it so it reads the Lines 49 to 65 in 6ecc549
I think I just need to implement Lines 49 to 65 in 6ecc549
I'll take a look and see how difficult it would be to implement. Hopefully it's relatively easy. |
@kentcdodds I did some more research and it looks like FUSE doesn't implement file change notification (e.g. |
Bummer. Back to polling then. I've subscribed to the other issue. Thanks! |
@kentcdodds This is an old issue but I just wanted to let you know that I did end up adding an event stream (#401) so you can get immediate notification of the replication position & primary state changes from LiteFS. That's probably not as big of a deal now that we have the LiteFS proxy but I figured I'd give you a heads up. |
Thanks! |
I'm trying to implement improved consistency and one approach I started with but don't like is polling the file until it's been updated to the user session's txid. I'd rather be notified when the file is updated so I can respond quicker and don't have to poll. So I'm trying to use chokidar on that file and it doesn't seem to be working. I'm thinking that because that file didn't show up in
ls -al
until something fancy was done maybe it's not a real file? So maybe it doesn't work with file watching tools like chokidar?Is there any way to be notified when the
-pos
file is updated?The text was updated successfully, but these errors were encountered: