The portal slows down badly on the day bills are issued. What do you investigate and change?
Concept: Performance and scale for large sitesImplementation: Customer self-service portal for an energy utility
Your confidence:Not rated
Model answer
- Front end: LWR? Are pages light? Are images and scripts optimised?
- Data access: uncached Apex on every page view, non-selective queries, large related lists.
- Callouts: bill retrieval from SAP: timeouts, middleware caching, rate limiting.
- Sharing: account skew or role-based sharing for millions of users.
- Peaks: load tests at bill-run volumes; spread notifications over the day; queue non-urgent work.
Changes: cacheable reads, middleware cache for bills, shorter timeouts with fallbacks, staggered bill notifications, and peak load testing before each change.
โ Key points to hit
โ Red-flag answers
- Asking Salesforce for more capacity first
- No measurement
โช Follow-ups
Why stagger bill notifications?
Sending millions of emails at once creates a login spike; staggering flattens the peak without changing the customer experience much.
How do you test peak load safely?
In a full sandbox with production-like data and agreed load testing, measuring response times and limits.