Comments (4)
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,
Archaius,
https://github.com/Netflix/archaius/tree/2.x/archaius2-guice
from karyon.
@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.
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.
@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)
- Question: How would you prefer a Jersey 2.X support PR done? HOT 2
- [Proposal] karyon 3.x server context
- 3.x Instance should be marked up in Eureka once injector is created HOT 1
- Need better strategy handling AutobindSingleton
- Update Wiki to provide more comprehensive examples
- 3.x admin server now requires ui module to be installed HOT 1
- Hide Injector from public API HOT 1
- Event driven lifecycle HOT 1
- Memory leak in SimpleProvisionMetrics HOT 1
- More compact configuration format HOT 2
- Guice best practices violation report
- AutoBind annotation to avoid having to define modules
- Eureka Integration karyon HOT 1
- Changing default max chunck size
- ArchaiusBootstrapModule constructor problem
- Karyon2 Deprecation
- Official docker image
- .travis.yml: The 'sudo' tag is now deprecated in Travis CI
- Overwrite the default error response
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karyon.