Layer handles data formatting, translation, and encryption.
Main functions:
- Translation: converting character encodings
- Compression: reducing data size
- Encryption: securing data
When you connect via HTTPS, TLS encryption happens conceptually here. The application sends plaintext, and Layer encrypts before passing it down.
Serialization formats like JSON and Protocol Buffers fit here too. Your app works with objects. Layer serializes them to bytes for transmission.