Code Monkey home page Code Monkey logo

Comments (4)

elandau avatar elandau commented on August 16, 2024

Yes, you should be using governator to bootstrap your application. Most of our OSS projects already provide governator/guice modules that you can use in your project. Here are a few,

Eureka,
https://github.com/Netflix/eureka/blob/master/eureka-client/src/main/java/com/netflix/discovery/guice/EurekaModule.java

Archaius,
https://github.com/Netflix/archaius/tree/2.x/archaius2-guice

from karyon.

kennedyoliveira avatar kennedyoliveira commented on August 16, 2024

@elandau, thank you for clarifying that.

Another doubt, i noticed the EurekaModule is for configuring the client, exist something that i can start a Eureka Server in my application, like embedded, similar to what springboot do with @EnableEureka?

I'm asking because i used the eureka server with springboot and it's very convenient because of the possibility of creating different profiles to work in different environments, and reading the eureka documentation i understood that i should configure the deploy and start it to get a server working.

I wanna understand all the Netflix stack and wire them together without spring, and i didn't saw an effective way of starting the server.

from karyon.

jaume-pinyol avatar jaume-pinyol commented on August 16, 2024

I don't know about an embedded one but you can use:
https://github.com/Netflix-Skunkworks/zerotodocker

and start eureka in a docker container.

About the environment you can get that using the archaius property
-Ddeployment.environment=dev|pre|prod|...
and then having different property files like:

  • your-app-dev.properties
  • your-app-prod.properties
  • etc

Archaius will load the property file depending on the environment

from karyon.

kennedyoliveira avatar kennedyoliveira commented on August 16, 2024

@jaume-pinyol, thank you for your suggestion, it sure will do the trick.
I forgot about the archaius property, need to use it more :D
I think that maybe it should be added to the wiki in eureka, maybe it helps someone with that doubt.

from karyon.

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.