Day 4


Yet another markup language 

bring services and business logic together
To relate microservices together, i.e yaml - data generalization - business logic specification.
html - we do for data to display.
yaml is mark down language - im not worried about data display, worried about how business logic connected.
if service is depends on other two images, we specify in yaml.

In yaml
- syntax is specific to service or application level

yaml tell you
- what are services
- how are connected

it is not programming language or logic based language

it tells dependency between services/containers/images

program can be called inside yaml file. but yaml is not for logic approach. it is for data generalization.

there are three types of languages:
language  1 - logic and application flow - this is generation lang 3gl
language 2 - markup language - for visual display. html , ojet. service side scripting languages - adf, node js
language 3 - generalization language . used in container based languages. jenkins also uses yaml.

xml is neither markup or markdown.
json is markdown - its only specification. it is data structure. it is physic data structure..yaml is for logical data structure.
markdown neither use compiler or interpreter.

yaml rules:
1 - case sensitive langauage
2 - string based approach
3 - runs rule of indentation
yaml editors are available to manage indentation.
- no tab rule / only space
- extension as yaml or yml
- in terms of transformation - it is always native


Dockerfile cannot manage containers, hence yaml.

docker-composer is a library to


docker-compose up - runs containers/starts (creates,builds,starts) it is daemon process.
docker-compose build - doesn't start container.
docker-compose up -d (runs in a background process)

Name of container will be current directory and it appends some more characters.


docker-compose down (stops container/and removes)





SWARM
set of services if we want to span across docker machines
deploying set of services in a swarm , is called stack.
swarm is physical network.
these machines are connected, and this is how to connect to these machines.
in stack we defined services using yaml and we use swarm.

stack is dependent on swarm


notes:
btwn docker machines - first handshake protocolic handshake..this is nothing but network access sys protocol
second handshake is notary handshake - checks if machiens are using right set of communication or right protocols
default algorithm docker uses is RAFT algorithm
then logical connection happens
and registry handshake happens.





Comments

Popular posts from this blog

Day 2 recap questions walkthrough (certification kind of)

Day 1 - Notes

Day 5 Flow