---
schema_version: "1"
id: f513347fcd0f3e761c7381e0f74fd861585039bbbe8213806cbf4b09d5a4167f
title: How is Visualforce Architected?
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/intro/pages-intro-architecture.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-intro-architecture.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0389c93d14b32feb9886d619edec2f772a5dfff664163adc989d18a1db393bda
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# How is Visualforce Architected?

All Visualforce pages run entirely on the Lightning platform, both when a developer creates the page, and when an end user requests a page, as shown in the following architecture diagrams.

![A diagram indicating the way a Visualforce page runs on the platform](../../../../../media/salesforce-pages-developers-guide/pages_intro_dev_architecture.jpg "Visualforce System Architecture - Development
Mode")

When a developer finishes writing a Visualforce page and saves it to the platform, the platform application server attempts to compile the markup into an abstract set of instructions that can be understood by the Visualforce renderer. If compilation generates errors, the save is aborted and the errors are returned to the developer. Otherwise, the instructions are saved to the metadata repository and sent to the Visualforce renderer. The renderer turns the instructions into HTML and then refreshes the developer's view, thereby providing instantaneous feedback to the developer for whatever changes were made in the markup.

The architecture diagram below shows the process flow when a non-developer user requests a Visualforce page. Because the page is already compiled into instructions, the application server simply retrieves the page from the metadata repository and sends it to the Visualforce renderer for conversion into HTML.

![A diagram of the platform when a user edits a page](https://developer.salesforce.com/media/salesforce-pages-developers-guide/pages_intro_user_architecture.jpg "Visualforce System Architecture - Standard User Mode")

**note:** Your Visualforce pages may be run on one of the force.com servers instead of a salesforce.com server.

**See Also**  


-   [What is Visualforce?](https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-intro-what-is-it.md)

