What is YAML?

·

2 min read

YAML is one of the important skills in DevOps. It is extensively used in docker and Kubernetes.

  • Previously it was called "Yet another Markup Language" then it was renamed as "YAML Ain't Markup Language".

  • It is basically a data format used to exchange data.

  • It is similar to XML/JSON datatypes.

  • In YAML, we can store only data and not commands.

Data Serialization

Serialization is basically a process of converting data objects that is present in some complex data structure into a stream of data or storage that can be used to transfer this data on our physical devices. Capture.PNG

Capture1.PNG

Object is a combination of code and data. It is basically a data storage unit.

Another definition of serialization?

It is basically a process of converting the data object which is a combination of code and data into series of bytes that saves the state of this object in a form that is easily transmittable.

Deserialization is the reverse of serialization which is of reconstructing a data structure or object from a series of bytes or a string.

YAML, JSON, and XML are data serialization languages.

Benefits of YAML:

  • It is simple and easy to read.

  • It has strict syntax rule(Indentation is important).

  • Easily convertible to JSON and XML.

  • More powerful when representing complex data.

For more info, please visit my GitHub profile.