spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

Support for webflux endpoints

Open dsyer opened this issue 7 years ago • 14 comments

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.

dsyer avatar Jan 10 '18 11:01 dsyer

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:

dharezlak avatar Aug 03 '18 13:08 dharezlak

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.

spencergibb avatar Aug 03 '18 14:08 spencergibb

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.

venkatnpedada avatar Jan 22 '19 05:01 venkatnpedada

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

dsyer avatar Jan 22 '19 08:01 dsyer

@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.

venkatnpedada avatar Mar 11 '19 14:03 venkatnpedada

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

hard-working-boy avatar Mar 19 '19 11:03 hard-working-boy

Not currently possible

spencergibb avatar Mar 19 '19 12:03 spencergibb

do you have any updates on this?

sgornostal avatar Dec 06 '19 13:12 sgornostal

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

spencergibb avatar Dec 06 '19 13:12 spencergibb

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

gdomo avatar Jan 15 '20 11:01 gdomo

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.

krispanalov avatar Mar 12 '21 07:03 krispanalov

Add a reaction to the very first comment

spencergibb avatar Mar 12 '21 12:03 spencergibb

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

dlicois avatar Jan 17 '23 10:01 dlicois

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.

jgcollings avatar Apr 03 '23 23:04 jgcollings