Git Product home page Git Product logo

Comments (2)

JoshVanL avatar JoshVanL commented on June 25, 2024

Hi @yejialiango, thanks for the issue!

You are correct that in order for (all) Dapr services to pick up changes to Configurations, a restart is required. Today, this process is a task left to the reader. There is currently an initiative to make all resources dynamically loadable in Dapr- in v1.13 we added "hot reloading" of Components as a preview feature. The next resource targeted for hot reloading is Subscriptions, targeted for v1.14. Feature requests like these helps us prioritize which resources to work on next, so thank you!

Speculatively, I imagine hot reloading of Configuration would be supported by first listening for SIGHUP signals, and when received, restart the service in-code from main or equivalent. When a Configuration change is detected, the process will send itself this signal. Windows will need to some Go channel or equivalent as it has no SIGHUP. Restarting the service in-code from the top level will be required as values from Configuration span the entire code base so this is the safest/most correct thing to do.

from dapr.

yejialiango avatar yejialiango commented on June 25, 2024

Hi @yejialiango, thanks for the issue!

You are correct that in order for (all) Dapr services to pick up changes to Configurations, a restart is required. Today, this process is a task left to the reader. There is currently an initiative to make all resources dynamically loadable in Dapr- in v1.13 we added "hot reloading" of Components as a preview feature. The next resource targeted for hot reloading is Subscriptions, targeted for v1.14. Feature requests like these helps us prioritize which resources to work on next, so thank you!

Speculatively, I imagine hot reloading of Configuration would be supported by first listening for SIGHUP signals, and when received, restart the service in-code from main or equivalent. When a Configuration change is detected, the process will send itself this signal. Windows will need to some Go channel or equivalent as it has no SIGHUP. Restarting the service in-code from the top level will be required as values from Configuration span the entire code base so this is the safest/most correct thing to do.

Thanks for the quick response and the insights on dynamic loading and hot reloading features. Looking forward to these enhancements in Dapr. I'll explore the core code further and hope to contribute to this area in the future.

from dapr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.