Implementing Mesos and Marathon with DCOS
In Chapter 12, Scale Microservices with Spring Cloud Components, we discussed Eureka and Zuul for achieving load balancing. With container orchestration tools, load balancing and DNS services come out of the box and are much more simple to use. However, when developers need code-level control for load balancing and traffic routing, such as the business parameter based scaling scenarios mentioned earlier, Spring Cloud components may fit better.
Note
In order to understand the technologies better, we will use Mesos and Marathon directly in this chapter. However, in all practical scenarios, it is better to go with Mesosphere DCOS rather than playing with plain vanilla Mesos and Marathon.
DCOS offers a number of supporting components on and above plain Mesos and Marathon to manage enterprise-scale deployments.
Note
The DCOS architecture is well explained in the following link:https://dcos.io/docs/1.9/overview/architecture
Let's do a side-by-side comparison...