Content Deep Dive
Async C Client: Opening the Door to Event-Based Processing
Blog post from Aerospike
Post Details
Company
Date Published
Author
Brian Nichols
Word Count
2,047
Language
English
Hacker News Points
-
Summary
The Aerospike C/C++ client version 4.0 introduces asynchronous programming support, joining the Java and C# clients in this feature. Asynchronous calls allow a single thread to issue multiple commands and receive callbacks upon completion, reducing resource utilization and enabling better scaling compared to synchronous calls that tie up threads for the duration of each command. The event loop style of concurrent programming is used by the Aerospike C client's async commands, which return all results within a single thread. This tutorial demonstrates how to use the Aerospike C client's asynchronous interface to read and write large batches of records efficiently.