Giter VIP home page Giter VIP logo

Comments (5)

ojhughes avatar ojhughes commented on May 30, 2024

The simplest way to achieve this is introducing a new class CloudFoundryAppDeployerOperations that contains all the functionality needed by both the blocking and non-blocking interface.

from spring-cloud-app-broker.

ojhughes avatar ojhughes commented on May 30, 2024

I don't think it is feasible to introduce Reactive versions of the existing S-C-Deployer implementations without the risk of breaking other consumers. This is because a lot of functionality is with an abstract base class

I tried introducing a shared operations class that could be used by both reactive and non-reactive implementations. This quickly started falling apart because a lot of the functionality that would need to be shared via composition exists in the abstract class.

I think it is reasonable to not use Reactor directly to begin with, instead using deployer with an ExecutorService when parallel deployments are required

from spring-cloud-app-broker.

ojhughes avatar ojhughes commented on May 30, 2024

Maybe I wrote this off too early..
There was another discussion about this some time age spring-cloud/spring-cloud-deployer#19

I think my fears about changing the abstract base class could be rectified by removing it completely and replacing with delegate. Would be good to discuss @royclarkson @scottfrederick

from spring-cloud-app-broker.

ojhughes avatar ojhughes commented on May 30, 2024

@royclarkson Do you think it would be possible to remove the .block() call here: https://github.com/spring-cloud/spring-cloud-deployer-cloudfoundry/blob/master/src/main/java/org/springframework/cloud/deployer/spi/cloudfoundry/CloudFoundryAppDeployer.java#L101-L104

from spring-cloud-app-broker.

royclarkson avatar royclarkson commented on May 30, 2024

We can certainly improve that code if we are returning reactive types. IIUC, blocking there was because they wanted the exception thrown. If you are working with imperative expectations, then blocking might be the best option. I'd have to get it loaded up in an IDE and play with it to confirm.

from spring-cloud-app-broker.

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.