Do you need an immediate response?
Sometimes, the client application that starts the integration requires an immediate response.
No, I don't need an immediate response
If you're updating a record in an application, you typically don't need an immediate response. For example:
- You need to synchronize inventory between two applications.
- You need to create a packing list for an order.
- You need to create a new employee's accounts in various business systems after you add a new record for them in your human capital management (HCM) software.
Yes, I need an immediate response
- A customer places an order on your website and wants to see an order confirmation page right away.
- You must complete a credit check for a customer before fulfilling an order.
No, I don't need an immediate response
Create an asynchronous integration. You can stop reading here.
Yes, I need an immediate response
Go to the next question.
Will everything finish running in seconds?
Synchronous integrations should finish in milliseconds or seconds.
Asynchronous integrations are better suited to more complex or longer-running integrations, such as integrations that must process hundreds of records.
To make this decision, draw upon your and your coworkers' experience with building integrations. If everyone is new to building integrations, consider building the integration, testing it under real-world circ*mstances, and checking the integration's performance in the activity stream. If the integration's running time is too long, you can always move some of the logic into a separate synchronous integration.
No, the integration can't run in seconds
Consider an online retailer that collects all orders in a single file. One time per day, they run an integration that loops through the orders and processes them. The processing work includes validation, enrichment, and posting to an order-processing application. This integration takes several minutes to run.
Yes, the integration can run in seconds
Consider a bank that lets customers check their bank balances in a mobile app. The customers want to know their balances immediately, not in a minute or two.
No, the integration can't run in seconds
Create a synchronous integration that provides an immediate response, and use it to run an asynchronous integration that performs the longer or more complex task.
For example, when a synchronous integration provides a customer with an order confirmation number, the synchronous integration can kick off an asynchronous integration that completes the remaining order-related tasks, including creating an account for the customer, registering the customer for marketing emails, updating inventory, and generating a packing list, and sending the packing list to the warehouse.
Yes, the integration can run in seconds
Go to the next question.
Do you need to retry if a failure occurs?
Integration failures typically occur when the client application that the integration connects to goes down. Synchronous and asynchronous integrations handle failures differently:
-
When a synchronous integration fails, Oracle Integration returns a failure response to the client. You cannot rerun the integration.
Sometimes, you don't want to rerun an integration, typically because the information that the integration obtains is time sensitive and is relevant only to an immediate need.
-
Oracle Integration saves all requests for asynchronous integrations. Therefore, if the client application is down or otherwise unavailable when Oracle Integration sends a request for an asynchronous integration, you can rerun the integration instance in the future.
No, I don't need to rerun the integration
Rerunning an integration doesn't make sense for the following situations:
- Obtaining the current price for a stock ticker.
- Getting the current inventory numbers for an item.
- Determining how many seats are currently available for a show.
Yes, I need to rerun the integration
Reunning an integration makes sense for the following situations:
-
Updating inventory in an application after the application went down for maintenance.
After the application is available again, you need to rerun the integration so that your inventory can be synchronized for the start of business tomorrow.
-
Attaching a document to a new employee's record after someone creates the employee's record in the HCM software.
After the employee record is created, you need to be able to attach the document.
No, I don't need to rerun the integration
Create a synchronous integration.
Yes, I need to rerun the integration
Create a synchronous integration that provides an immediate response, and use it to run an asynchronous integration that contains the actions that you need to rerun.