-
DC/OS does not need odd number of master nodes for leader election. It needs half+1 (quorum) nodes in communication.
-
Mesos DNS (L4 loadbalancer) is not recommended because (https://mesosphere.com/blog/dcos-marathon-lb/)
-
It does not offer real time service discovery
-
Issues with DNS caching
-
-
With Minuteman (L4 loadbalancer) it is possible to use the same port as part of VIP for different services. This can reduce the port administration.
-
Marathon LB (L7 loadbalancer) expects service ports to be unique.
-
Linkerd solves the problem of port administration. Next to that it also offers stability patterns.
-
Understanding Marathon CPU allocation behavior - https://zcox.wordpress.com/2014/09/17/cpu-resources-in-docker-mesos-and-marathon/
-
How much time to invest in code refactoring?
-
Typically for new projects, assuming you are curating code well, no dedicated effort
-
Second year of the projects - start investing 10% of team effort on code refactoring
-
Increase this effort by 10% every upcoming year
-
-
Spagetti codebase
-
Example - https://www.gitbook.com/book/jaceklaskowski/mastering-apache-spark/discussions
-
Blog Hugo based - https://georgecushen.com/create-your-website-with-hugo/
-
Blog Travis Jekyll - http://pauldambra.github.io/using-travis-to-build-jekyll.html
/profile=full/subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=TRACE) |
layout | title | author |
---|---|---|
post |
Context Dependency Injection - Are you doing it right? |
aparnachaudhary |
CDI specification allows Field, Property (aka setter) and constructor injection. Like many developers out there, I also habitually use field injection. I must admit I never gave enough thought about it. But recently I saw a bean with more than 10 injection points and started to ponder over Dependency Injection.
The following blog post discusses why you should prefer constructor injection over field or setter injection. In the later part of the post, we will see how jQAssistant can be used to find beans with too many injection points or to enforce use of constructor injection.
Based on JAX-RS specification; @Path annotation is not mandatory on Resource classes. But many implementations seem to deviate from the specification.
But shouldn’t reference implementation adhere to the specification?
Resource classes are POJOs that have at least one method annotated with @Path or a request method designator.