Skip to content
Johannes Fischer edited this page Dec 14, 2024 · 7 revisions

Reliability Force Library (RFLIB)

Build Status GitHub GitHub package.json version codecov

RFLIB helps developers create clean, production-ready Salesforce code with a high level of operational supportability. Inspired by Dan Appleman’s logging design patterns, RFLIB provides robust tools for logging, diagnostics, and feature toggling, ensuring better visibility and control for both development and production environments.


Quick Links


Key Features

Logging Framework

  • Multi-environment Support: Logs from Apex, Lightning Components (LWC/Aura), Flows, and OmniStudio.
  • Advanced Log Management: Features include batched logging, log aggregation, and platform event-based reporting.
  • Log Archiving: Store logs in Big Objects for querying beyond Salesforce’s 72-hour limit.
  • Integrated Dashboards: Real-time and historical log review with filtering capabilities.
  • Log Aggregation: Use the observibility feature to see error counts on daily and weekly basis, helping you to identify when to action and what errors to prioritize before you need to review the entire set of log messages. 

Feature Switches

  • Hierarchical Configuration: Manage switches at user, profile, public group, or global levels.
  • Toggle Features: Deploy features hidden from users, enable A/B testing, or deactivate integrations during outages.
  • Support Across Salesforce Tools: Compatible with Apex, LWC, Aura, Flows, and Validation Rules.

Trigger Framework

  • Decoupled Design: Manage triggers with configurable activation, error handling, and recursion tracking.
  • Custom Metadata Driven: Configure triggers and handlers dynamically without code changes.

HTTP Mocking Framework

  • Seamless Testing: Simulate HTTP responses in Salesforce for integration testing without external dependencies.
  • Customizable Behavior: Configure mock endpoints and payloads via Custom Metadata.

Retryable Actions

  • Asynchronous Processing: Handle failing actions with up to 8 retry attempts.
  • Use Cases: Ideal for web service integrations or other critical asynchronous operations.

Application Events

  • Business Insights: Track feature adoption, integration performance, and other key activities.
  • Dashboards: Analyze trends and operational metrics in real-time.

Installation

The easiest way to add RFLIB is via an unlocked package:

Install Using Browser

Click here to install RFLIB

Install via SFDX CLI

sf package install --package <latest_package_ID> -w 10 -o <your_org_alias> -w 10

For advanced setups, clone the repository and deploy using:

sf project deploy start -o <your_org_alias>

Getting Started

  1. Explore Core Features:

  2. Use Dashboards:

  3. Learn Best Practices:

  4. Try Examples:


Documentation

Access the full documentation for in-depth guides, best practices, and configuration details.


Contribute

Join our growing community! Report issues, request features, or contribute via our GitHub repository.


Support

For assistance, please refer to our Wiki or contact us via GitHub Issues.

Happy Coding!

Clone this wiki locally