0xPolygonMiden / miden-node

Reference implementation of the node for the Polygon Miden rollup
MIT License
52 stars 35 forks source link

add control plane #83

Open hackaugusto opened 8 months ago

hackaugusto commented 8 months ago

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

hackaugusto commented 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)