Introduction
This is the first step in our journey inside the browser as I believe that understanding frontend engineering is a journey into the browser.
Why this journey?
Understanding the environment is not essential but it is one of the best develop deep knowledge and to be proficient in your field and it has many benefits :
- Fix the workspace errors and problems not just in your code.
- Strong understanding the best practices.
- Know the system behind your code.
- Improve you code quality.
and much more than this advantages.
What Will We Explore?
In this series we will know the basic components, concepts architecture inside the browser and the responsibility of each component and the relationships between it, it will be the start point to understand the browsing system.
Learning Roadmap
1. What Is a Browser?
In this article i will explain:
- What is the browser, basically?
- What is the problem that the browser is made to solve?
- What is the browser responsibilities?
- What is the basic component for it?
This is our resources:
- https://developer.chrome.com/blog/inside-browser-part1/
- https://www.chromium.org/developers/design-documents/multi-process-architecture/
2: The Multi-Process Architecture
In this article i will dive into the overall architecture and functionality of the system.
- What is the Process and the Thread and what is the difference?
- What is the relationships between Process and Threads?
- What is the Multi-Process Architecture?
- Why the browser does not work on a single process?
- What is the benefits from Multi-Process Architecture?
This is our resources:
- https://www.chromium.org/developers/design-documents/multi-process-architecture/
- https://developer.chrome.com/blog/inside-browser-part1/
3: The Browser Process
In this article, we'll explore the Browser Process, the main process responsible for managing the browser's UI and coordinating other browser processes.
- Why the
Browser Process? - Browser UI and Tabs or window management.
- Render Process Management.
This is our resources:
- https://developer.chrome.com/blog/inside-browser-part1
- https://developer.chrome.com/blog/inside-browser-part2
- https://www.chromium.org/developers/design-documents/multi-process-architecture/
4: The Renderer Process
This article explores how the browser processes and renders web content.
- What is the render process responsibilities?
- What is the relationship between
BlinkandRenderer? - The architectural meaning of
Main ThreadandWorker Thread? - What is the relationship between
Rendererand page content? - Is every tap has its own
Renderer?
This is our resources:
- https://developer.chrome.com/blog/inside-browser-part3
- https://www.chromium.org/developers/design-documents/multi-process-architecture
5: Browser Services and Utility Processes
In this article i will explain the important differences between services and utilities.
- What is a browser service, and how can it be hosted inside a Utility Process?
- Why does
Chromiumrun some services in separate processes? - What is the
Browser ServicesandUtility Processes? - What is the main services in the browser and its responsibilities?
- Why does chromium separates some services from other process?
This is our resources:
- https://www.chromium.org/developers/design-documents/multi-process-architecture
- https://chromium.googlesource.com/chromium/src/+/main/services/network/README.md
6: The GPU Process and Visual Compositing
This is the Graphics article in it i will explain the way that the browser render your content.
- Why the browser need GPU?
- What is the responsibility of GPU process?
- What is
CompositingandViz? - What is the relationship between compositor, renderer and GPU?
- How the visualized frames displayed on the screen?
This is our resources:
- https://developer.chrome.com/blog/inside-browser-part3
- https://chromium.googlesource.com/chromium/src/+/main/services/viz/
- https://chromium.googlesource.com/chromium/src/+/main/docs/how_cc_works.md
7: Inter-Process Communication (IPC)
In this article i will explain the way that all of this process cooperate with each others.
- What communication mechanisms does Chromium use between processes?
- What are Mojo Interfaces and Message Pipes?
When is shared memory useful for inter-process communication?
https://www.chromium.org/developers/design-documents/multi-process-architecture/
-
https://chromium.googlesource.com/chromium/src/+/HEAD/docs/mojo_and_services.md
8: Browser Security
Here i will explain the methods and ways that browsers isolate websites and secure its systems by architectural design that protect the user inside it.
- What is the
Sandboxing? - Why the renderer is given limited permissions?
- What is the site isolation?
- What is the link between process model and browser security?
How does isolation limit hacking and failures?
https://chromium.googlesource.com/chromium/src/+/main/docs/process_model_and_site_isolation.md
https://www.chromium.org/developers/design-documents/multi-process-architecture/
The next step
every few days i will publish an article of this deep series so stay in touch.
Top comments (0)