Company
Date Published
Author
Neel Phadnis
Word count
2180
Language
English
Hacker News points
None

Summary

Aerospike Database now supports batch writes, which can be executed in synchronous and asynchronous mode, allowing applications to leverage improved ingest and update throughputs by combining multiple requests into a single operation. The execution flow of a request involves combining or batching requests, obtaining a connection to the server, sending the request, receiving the response, processing the response, and executing inline processing, retries, and optimal batch size. Synchronous batch requests can be sent as soon as they are formed and receive responses all at once, while asynchronous batch requests allow for more efficient use of thread resources but may incur context switching overhead. The combination of single-record vs batch and sync vs async operations offers various tradeoffs in terms of resource utilization, throughput, and ease of programming. Pipeline processing is also an option that offers best resource utilization without having to wait for responses or obtain new connections. Additionally, Aerospike supports multi-key operate, general batch operate, synchronous general batch request, and other batch capabilities, while ensuring entire batches are processed and providing features such as key field matching, overall batch status, and filter expressions alignment with batch operation semantics.