fflib Apex Common (Enterprise Patterns)
By Andrew Fawcett / FinancialForce
What It Does
Apex enterprise design patterns — Unit of Work, Selector, Domain, and Service layers. The foundation for scalable Salesforce architecture.
Glen's Take
This is the gold standard for Apex architecture. Unit of Work alone saves you from DML-in-loop mistakes. The Selector pattern makes SOQL reusable. The learning curve is real — but once it clicks, your code is 10x more maintainable. I use this on every enterprise project.
Tags
Need help with your Salesforce tooling stack?
I'll help you pick and configure the right tools for your team.
View Consulting →Enjoyed this? Get more like it.
Glen's Musings — AI, investing, and building things. Occasional. Free.
More Library Tools
fflib Apex Mocks
Mocking framework for Apex unit tests. Mock selectors, services, and domain classes to write fast, isolated tests without hitting the database.
Read moreOpen SourceNebula Logger
Enterprise-grade logging framework for Salesforce. Custom logging levels, log entry tagging, automatic stack traces, and a beautiful log viewer UI.
Read moreOpen SourceApex Trigger Actions Framework
Metadata-driven trigger framework. Define trigger actions in custom metadata instead of code. Supports ordering, bypassing, and recursive protection.
Read more