Suggested answer

The B2C Commerce Service framework is a managed approach to calling external HTTP, FTP, and SOAP services from server-side scripts. Services are configured in Business Manager under Operations > Services with URL, credentials, timeout, and mock mode settings.

In code, services are instantiated using LocalServiceRegistry.createService() (for cartridge-registered services) and called via service.call(params).

The service framework provides:

1. Connection pooling — reuses HTTP connections for performance
2. Timeout enforcement — prevents hanging server-side threads from blocking all quota threads
3. Circuit breaker — automatically disables a service if it starts failing and prevents cascading failures
4. Logging — automatically logs call duration, response codes, and errors to the custom log files
5. Mock mode — allows development and testing without calling live external APIs

Using the service framework for all external calls is a platform best practice and is enforced by Salesforce's code review for LINK cartridge certification.

Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.

Community comments (0)

No comments yet.

Sign in or create a free account to add a comment. Comments are moderated before they appear.

Plain text only, 3–2000 characters. A moderator reviews every comment before it is published.