Open hackaugusto opened 8 months ago
for file watching it seems the best option is notify, it is wildly used (see the docs). The only other option I found was watchman, but that requires an external service.
the only downside is that the api seems to be sync, so we should probably nave a file watching "service" running on a separate thread, sending events to the async tasks in tokia via channels. (note: we can make the service unnecessary by watching a single file, that would mean the configuration of all the services should fit in the same file)
Ideally services would be crash first, since that is th easiest model to work with. but unfortunately this won't serve all the servers:
because of the above, we should have a way of managing the servers without requiring restarts. there are multiple ways this can be implemented:
I don't think any of the options above are ideal, usually a mix of each gives the best results