spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.97k stars 1.29k forks source link

Support for webflux endpoints #885

Open dsyer opened 6 years ago

dsyer commented 6 years ago

There's no real benefit in using webflux, but it might be possible to embed the config server in a webflux app, in principle at least.

dharezlak commented 6 years ago

This is exactly our use case at the moment. We would like to have a config server which exposes a small REST API (webflux) to modify the provided configuration (JDBC-based). The API will be used by a web configuration panel so :+1:

spencergibb commented 6 years ago

You know there's no official spring supported non-blocking relational db access yet (jdbc will never be non-blocking)? Things are in the works though.

venkatnpedada commented 5 years ago

We are trying to use cloud config server dependency in a webflux app to run the integration test cases independent of cloud config server. This enhancement will help to handle this situation.

dsyer commented 5 years ago

@venkatnpedada that doesn't really make any sense to me. Why would you need a config server embedded in an integration test?

venkatnpedada commented 5 years ago

@dsyer In my case, I am pulling application properties directly from git server instead of a cloud config server. This will allow me to run integration test cases without depending on a config server to pull the application properties.

hard-working-boy commented 5 years ago

So, how to use embed the config server with webflux? I have same problem.

spencergibb commented 5 years ago

Not currently possible

sgornostal commented 4 years ago

do you have any updates on this?

spencergibb commented 4 years ago

No, when there is, you will see assignments to projects and milestones.

gdomo commented 4 years ago

This is our use case at the moment, too. We ship webflux web-application with embed config server.

krispanalov commented 3 years ago

Is there a way to vote for this topic. In our case we want to have all our services written with webflux and so are our libs. Now we will need to support both of them.

spencergibb commented 3 years ago

Add a reaction to the very first comment

dlicois commented 1 year ago

It is currently impossible to embed a spring cloud config server in a gateway as long as it isn't resolved..

jgcollings commented 1 year ago

I would also like to embed config server in my webflux cloud gateway. I don't want to host a separate config server. When I attempt to include the spring-cloud-config-server dependency it adds webmvc to the class path and breaks everything. Adding my vote to fix this.