← Back
Home › Systems › Sales, marketing and customer service

cpq

configure-price-quote

Salesforce CPQ

SystemTechniques · 11Primitives · 51 cpq Template enginescompilers · medium: Compile templates with loops, partials and auto-escaping into render functionsTariff ratingfinance · medium: Rate usage events against price plans: tiers, time bands, bundles and rounding rulesUsage meteringfinance · medium: Counting tokens/requests per user and key, aggregating for quotas and billing with idempotent eventsBill of materials explosionoptimization · medium: MRP netting: explode BOMs level by level with lead-time offsetting into planned ordersConstraint propagation (constraint…optimization · medium: Variables with finite domains, propagators that prune impossible values to a fixpoint, and backtracking search with trail undo between decisions.›Pdf digital signaturessecurity · medium: CMS/PAdES signatures embedded in PDFs with byte ranges and long-term validationChange data capturestorage · medium: Decode the database's own commit log into row-change events in commit order, with a resume position, so any consumer can mirror the data exactly.›Largest remainder roundingfinance · low: Splitting an amount into parts that sum exactly (largest remainder / Hamilton) for allocations, splits and prorationsMoney representationfinance · low: Store money as integer minor units with an explicit currency exponent, compute in wider integers, and round once with a named rounding mode.›Currency cross rate triangulationfinance · low: Deriving cross rates through a base currency with correct precision, inversion and spreadsProration calculationfinance · low: Prorating charges and credits for mid-cycle plan changes by time usedRevenue recognition schedulesfinance · low: Deferred revenue schedules that recognize income over service periods (ASC 606 / IFRS 15)Binary decision diagramsoptimization · low: A reduced ordered BDD stores a Boolean function as a shared DAG that is unique per variable order, so equivalence is one integer compare and counting is one pass.›Dual control approvalsecurity · low: Four-eyes / maker-checker approval with quorum policies for sensitive operationsOptimistic concurrency controlstorage · low: Run transactions without locks, record what they read, and validate at commit that nothing changed; fastest when conflicts are rare.›Hierarchical state machinesystems · low: Nest states so a substate inherits its parent's reactions and only overrides what differs, with ordered entry and exit actions along the path.›Name resolutioncompilers · low: Bind every use of a name to its declaration with a scope stack, handling shadowing, hoisting and closure capture in one AST walk.›Recursive-descent parsingcompilers · low: Hand-written top-down parser with one function per grammar rule; simple, fast, with full control over error messages and recovery.›Html sanitizationsecurity · low: Allowlist-based HTML sanitizing of untrusted markupInterval treedata-structures · low: Index of ranges that answers "which intervals overlap this point or range?" in O(log n + k); static sorted-array form is the compact, cache-friendly choice.›Calendar date arithmeticsystems · low: Civil dates, time zones (tzdb), DST gaps, month-end anchoring and duration mathSharded countersconcurrency · low: Split one hot counter into per-core or per-thread cells on separate cache lines; increments stay local and reads sum the cells.›Event deduplication windowdistributed · low: Keep the ids of recently accepted events for a time window and drop repeats; memory stays bounded by rotating time buckets instead of per-entry timers.›+ 4 more techniques+ 35 more primitives

Similar systems

Share the most building blocks with this one.