Dynamically change a Source parameters

136 Views Asked by At

How I can dynamically change a Source parameters (for example: for a File source - directory)?

sample

1

There are 1 best solutions below

0
On

You can host the file-source properties in config-server to centrally manage the dynamic changes via git-commit. On a new commit, you could trigger a refresh on the property that you'd like to change dynamically.

With that said, you'd have to customize the file-source to add the @RefreshScope annotation, so the directory can be changed dynamically.

There are a lot of online postings on config-server and I thought this article might be useful.