Bulk API Flashcards
What are the use-cases for Bulk API?
- Loading large volumes of data in a single transaction.
- Searching large volumes of data in a single transaction.
BULK API 1.0 vs Bulk API 2.0
What is an Idempotent design pattern?
In an enterprise application, it’s usually a good idea to use a message broker that guarantees at-least-once delivery. At-least once delivery guarantees that a message broker will deliver a message to a consumer even if errors occur. One side-effect, however, is that the consumer can be invoked repeatedly for the same message. Consequently, a consumer must be idempotent: the outcome of processing the same message repeatedly must be the same as processing the message once. If a consumer is not idempotent, multiple invocations can cause bugs.
Bulk API Data Volume limits?
Bulk API is synchronous when submitting the batch request and associated data. The actual processing of the data occurs asynchronously.
- Up to 10,000 batches can be submitted per rolling 24–hour period.
- A batch can contain a maximum of 10,000 records.
- Event Message—The maximum event message size is 1 MB. Publishing an event using the Salesforce APIs counts against your standard API limits.