Over the years, different compression techniques have been devised to reduce the data footprint of the websites. Named after the Spanish bun, Brotli (RFC 7932), an open source compression library, is an addition in the category of data compression algorithms used on the internet. According to Google, they have created a “whole new data format” capable of shrink and unshrinking data better than others.
Brotli is based on a combination of LZ77 algorithm, Huffman coding, and second-order context modeling. In comparison to the already popular gzip, Brotli’s lossless compression algorithm is capable of achieving additional compression of around 20%. It also outperforms its predecessor Zopfli by around 25%.
Developed by Google engineers Jyrki Alakuijala and Zoltán Szabadka, Brotli first came into existence in the year 2015. Initially, web fonts compression was the prime objective. Later, the open source library was enhanced for HTTP compression. Now, it’s mainly about HTTPS.
Find your dream job
Brotli includes a speed advantage in the form of a pre-defined dictionary of words and phrases from various languages including English, Chinese, Spanish, Hindi, etc.
In the recent months, there has been an increase in the adoption of Brotli in different web browsers and servers. For example, Google Chrome, Mozilla Firefox, Opera, and servers Apache, ngix, etc. Apple Safari is yet to include the Brotli open source compression library.
Did you find Google’s Brotli data compression algorithm interesting? Drop your thoughts and feedback.
Bonus: 10 Best Ways To Destroy Your iPhone