salesforce-architecture-variants

Featured

Choose and implement Salesforce integration architecture patterns for different scales. Use when designing new Salesforce integrations, choosing between polling/event-driven/Heroku Connect, or planning migration paths for Salesforce applications. Trigger with phrases like "salesforce architecture", "salesforce integration pattern", "how to structure salesforce integration", "salesforce event-driven", "salesforce Heroku Connect".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Salesforce Architecture Variants ## Overview Three validated architecture blueprints for Salesforce integrations: Direct API (simple), Event-Driven (scalable), and Middleware/iPaaS (enterprise). Each pattern addresses different scale, latency, and complexity requirements. ## Prerequisites - Understanding of your data volume and sync frequency requirements - Decision on unidirectional vs bidirectional data flow - Knowledge of Salesforce edition (affects available features like CDC) ## Variant A: Direct API Integration (Simple) **Best for:** MVPs, < 50K records/day, single-direction sync ``` ┌─────────────┐ jsforce ┌─────────────┐ │ Your App │ ──── REST API ──▶ │ Salesforce │ │ (Node.js) │ ◀── SOQL/SOSL ── │ Org │ └─────────────┘ └─────────────┘ Data flow: - App queries SF via SOQL (polling or on-demand) - App writes to SF via sObject CRUD - Scheduled cron for periodic sync ``` ### Key Characteristics - Single jsforce connection per process - Polling-based reads (cron schedule) - Direct REST writes - In-memory or Redis caching for describe/metadata - Suitable for: internal tools, admin dashboards, simple data sync ### Code Pattern ```typescript // Cron-based sync — runs every 15 minutes import cron from 'node-cron'; cron.schedule('*/15 * * * *', async () => { const conn = await getConnection(); // Fetch recently modified accounts const accounts = await conn.query(` SELECT Id, Name, Industry, AnnualRevenue FRO...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

salesforce-reference-architecture

Implement Salesforce integration reference architecture with jsforce, SFDX, and event-driven patterns. Use when designing new Salesforce integrations, reviewing project structure, or establishing architecture standards for Salesforce-connected applications. Trigger with phrases like "salesforce architecture", "salesforce project structure", "salesforce integration design", "how to organize salesforce code", "salesforce layout".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-sdk-patterns

Apply production-ready Salesforce jsforce patterns for TypeScript and Python. Use when implementing Salesforce integrations, refactoring SDK usage, or establishing team coding standards for Salesforce. Trigger with phrases like "salesforce SDK patterns", "jsforce best practices", "salesforce code patterns", "idiomatic salesforce", "salesforce typescript".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-reliability-patterns

Implement Salesforce reliability patterns including circuit breakers, idempotent upserts, and fallback caching. Use when building fault-tolerant Salesforce integrations, implementing retry strategies, or adding resilience to production Salesforce services. Trigger with phrases like "salesforce reliability", "salesforce circuit breaker", "salesforce idempotent", "salesforce resilience", "salesforce fallback", "salesforce retry".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-known-pitfalls

Identify and avoid Salesforce anti-patterns including SOQL N+1, governor limit violations, and API waste. Use when reviewing Salesforce code for issues, onboarding new developers, or auditing existing Salesforce integrations for best practices violations. Trigger with phrases like "salesforce mistakes", "salesforce anti-patterns", "salesforce pitfalls", "salesforce what not to do", "salesforce code review".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-performance-tuning

Optimize Salesforce API performance with SOQL tuning, Composite API batching, and caching. Use when experiencing slow API responses, optimizing SOQL queries, or reducing API call count for Salesforce integrations. Trigger with phrases like "salesforce performance", "optimize salesforce", "salesforce latency", "salesforce caching", "salesforce slow", "SOQL optimization".

2,266 Updated today
jeremylongshore