Our Featured Posts:

SF Arch Interview scenario at Amazon Seattle

SF Arch Interview scenario at Amazon Seattle

Jay Prasad
By
Jay Prasad
February 10, 2025

SF Architect Interview Scenario at Amazon Seattle

The interviewer presented a scenario where

1. A Restaurant Order Service (let’s call it Service 1) receives new orders (like “Burger, Coke, Fries”) from a customer and sends an acknowledgment to Salesforce. It looks something like:

{
  "OrderID": "someText"
}

indicating, “Yes, we got your order.”

2. Another Service (Service 2) in the restaurant then sends updates when items are ready. However, these updates might come in partial form—if the burger is ready but the fries aren’t, you’ll get an update just for the burger. So a payload could be:

{
  "OrderID": 123,
  "status": "Burger Ready"
}

with no mention of the fries or coke. That means we’re dealing with incremental statuses.

3. Salesforce has an Order__c object to track the overall order. Potentially, you might also have OrderItem__c records for each item. The system must show an end user the current status of each item (e.g., “Burger: Ready,” “Coke: Pending,” “Fries: In Progress”).

The Core Challenge

The big twist is that you cannot make the external service wait for a full, final response before acknowledging you got the message. Cooking times can vary, and the entire order might take quite a while to complete. Meanwhile, partial updates come in for individual items. So how do you architect a Salesforce inbound web service (or integration approach) that:

Accepts small status updates for items.

Responds quickly to confirm receipt.

Updates Order__c (and possibly item records) asynchronously.

Handles errors (e.g., out-of-stock or canceled items) gracefully.

Scales for a busy restaurant with potentially thousands of orders every day.

“You can’t wait on the entire meal—you still need to serve the burger while the fries are cooking.”
Let's Start Your Salesforce Journey Together
Choose SalesforceHub for a partnership that combines niche expertise with cost-effective solutions tailored just for you.
Subscribe Now
Let's Start Your Salesforce Journey Together
Choose SalesforceHub for a partnership that combines niche expertise with cost-effective solutions tailored just for you.
Subscribe Now

How Would You Solve It?

Now that you’ve read the scenario, I’d love to see your approach. Would you create a LineItem__c record for each item? Use a single JSON field? Prefer synchronous or asynchronous Apex? Post the link to your designs, diagrams, or code samples — in comment below.

There’s no single “right” answer: The key is to show you can handle real-world complexities and partial updates in Salesforce at scale.

Good luck to anyone tackling a similar challenge in a real project or job interview!

Jay Prasad

Jay Prasad is a seasoned Salesforce Technical Architect and Developer with over 15 years of experience working with companies from small startups to large enterprises. With a strong background in Salesforce, AWS, Azure and Adobe, he knows how to turn real business needs into practical, scalable solutions.

Subscribe Now
No items found.

More like this

Integration
Gathering integration requirements for enterprise-wide salesforce implementations
This is second blog in series of 8 blog focussing on gathering Salesforce integration requirements. The blog will focus on enterprise-wide integration where Salesforce is the primary system but interacts with other core systems.
Integration
Read More
Integration
SF Arch Interview scenario at Amazon Seattle
In this blog post, I share a real-life Salesforce Architect interview scenario from Amazon. The use case centers on a restaurant order management system, where status updates arrive in incremental form (e.g., “Burger Ready”) rather than all at once. Salesforce must receive these partial updates via an inbound web service, respond asynchronously, and handle errors or missing items gracefully. This scenario highlights critical design decisions—from data modeling to performance and security considerations—and reflects how enterprise integrations often involve complex, real-world constraints. I end with a call to action, inviting readers to propose their own solutions and share how they’d architect this use case within Salesforce.
Integration
Read More
Integration
Intro to the Salesforce Integration Decision Making Framework
Whether you’re orchestrating a multi-million-dollar pipeline or a small startup’s first integration, a decision-making framework is your compass. Over the next seven blogs, we’ll tackle each pillar with a deeper dive and more visual aids, ensuring you’re well-equipped to navigate the integration maze. Ready to roll? In the next post, we’ll explore how to gather integration requirements so you’re not firing in the dark. Stay tuned—there’s a lot more knowledge to uncover.
Integration
Read More
Place a Subscription Box
Subscribe Now
Join The Newsletter & stay up to date!
Stay connected and informed! Join our newsletter to receive the latest updates, exclusive offers, and exciting news straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.