Developer Fundamentals 1 Flashcards
Multi-Tenant Concepts | MVC Architecture | Lightning Component Framework (101 cards)
The Salesforce multi-tenant environment consists of what key elements and features?
Shared Resources
Cloud Computing
System Updates
Metadata-Driven Kernel
What is the Lightning Platform?
Lightning platform is a Platform as a Service (PaaS) that is built for cloud computing and based on the multitenant architecture.
Key features of the Lightning Platform?
Web-Based Platform
No Software Installation
Focused Development
Developer Console
The multitenant architecture features shared system resources and what usage limitations?
- All customers share the same computing power, custom-designed database, data storage, and core features.
- Salesforce monitors code execution and has various governor and resource limits associated with code execution.
-Resources such as CPU usage, queries, and records returned are limited per customer to ensure optimal performance.
Multi-tenancy allows customers to receive regular upgrades throughout the year. What is unique about these updates?
- Automatic, seamless upgrades are rolled out three times a year in Spring, Summer, and Winter.
- All customers automatically get the same updates at the same time throughout the year.
- Sandboxes are upgraded before production so that the changes can be previewed and tested
Explain the Metadata-Driven Kernel?
Salesforce uses a runtime engine that materializes all application data from metadata, which is data about the data itself.
Architecture - There is a clear separation between the runtime database engine (kernel), tenant data, and metadata, which allows easy upgrades.
Deployment - Deployment of new or updated metadata components to production is strictly managed. Unit tests must cover no less than 75 percent of the application’s source code for deployment to production.
What is MVC Architecture?
In application development, the MVC is an architectural pattern that separates the data layer from the business logic and how the data is presented in the user interface.
What does the Model represent in MVC for Salesforce?
Model represents the structure of the data through sObjects, fields, and Apex classes.
What does the View Represent in MVC for Salesforce?
View represents the presentation layer which consists of pages and components.
What does the Controller Represent in MVC for Salesforce?
Controller represents the business logic, either declarative or programmatic. Custom controllers and controller extensions are written as Apex classes.
The model layer of the MVC architecture includes what components?
Standard Objects
Custom Objects
Object Fields
Object Relationships
Apex Classes (Data)
The view layer of the MVC architecture includes what components?
Standard Pages
Visualforce Pages
Visualforce Components
Custom Tabs
Page Layouts
The controller layer of the MVC architecture includes what components?
Standard Controllers
Custom Controllers (Apex)
Extensions (Apex)
Declarative Rules & Tools (Apex Triggers, Validation Rules, Flows, etc.)
What is the Lightning Component Framework?
The Lightning Component Framework is a UI framework that allows building single-page web apps with dynamic and responsive user interfaces in Salesforce. It uses JavaScript on the client side and Apex on the server side.
What are the two programming Models of the Lightning Component Framework?
Lightning components can be built using the Aura Components or Lightning Web Components model. They can coexist and interoperate on a page.
What are the Benefits of the Lighting Component Framework?
The framework offers features such as device awareness and cross-browser compatibility, allows using various out-of-the-box components for faster development, and enables customizing Lightning Experience and communities.
How does the Lightning Component Framework handle performance?
The framework utilizes a stateful client (using JavaScript) and a stateless server (Apex). The client calls the server only when absolutely necessary, which results in fewer calls to the server and more responsive and efficient apps.
Does the Lightning Component Framework use Event-Driven Architecture?
Yes. Lightning components utilize event-driven architecture. Components are capable of listening to events and responding accordingly
Lightning Web Components and Aura Components do not follow an MVC Architecture pattern. What Architecture pattern do they follow?
MVCC (Model - View - Controller(Client) - Controller(Server))
In Salesforce, what is the different between a Client-Side Controller and a Server-Side Controller?
The JavaScript controller on the client side is used to perform client-side operations and also acts as the intermediary between the server and the UI.
The Apex controller on the server side is used to perform database operations. The JavaScript controller is used to call methods in the Apex controller.
Does the Lightning Component Framework provide out of the box components?
The framework provides several out-of-the-box components which come with the Lightning Design System styling. These components can be found in the ‘lightning’ namespace and are available in two versions: Aura components and Lightning web components. Note that Aura components in the ‘ui’ namespace are deprecated and will no longer be supported.
Are Lightning Components reusable?
Yes. Components that are built using the framework are self-contained and reusable units that can range in granularity from a single line text to an entire app. Components can be assembled and configured to form new components.
Can you develop a sophisticated UI with Lightning Components?
Yes. A component can contain HTML, JavaScript, CSS, any Web-enabled code, and also other components, which allows developers to build apps with sophisticated UIs.
What Events do Aura Components Support?
Aura components support two types of events, namely component events and application events. Component events are used for handling events in the containment hierarchy while application events allow handling events at the application-level.