Skip to content

Conversation

@dmishra-aero
Copy link

Added examples to showcase Single Async Operation, Batch Async Operation that a enduser could do with Go client Api


Before using async operations, ensure you have:

1. **Go 1.18+** installed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: Match the version of go set in go.mod

Go version in go.mod is set to 1.24.0.


```

### Operate Operations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: format of the title

(Operate) Operation

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will omit this comment for other places.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


**Note**: A single Get/Put call does not require a goroutine; it can be invoked directly. The provided examples use goroutines only to show how these operations can participate in concurrent workflows.

### Write Operations (Put)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: format of the title

(Write) Operation


## Batch Async Operations

Batch operations in the Aerospike Go client already use internal concurrency (via goroutines) to process multiple nodes in parallel. However, you can run multiple batch operations concurrently for even better performance.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: reword

Replace However, you can run multiple batch operations concurrently for even better performance. with Wrap batch operations in go routine to avoid blocking

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@mirzakaracic mirzakaracic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would give this document to Stever Renekar. The ticket was asking to create a doc on we portal not here. I think there is some confusion what I suggested would be nice to have for reviews.


```

### Operate Operations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will omit this comment for other places.

@dmishra-aero
Copy link
Author

dmishra-aero commented Dec 10, 2025

I would give this document to Stever Renekar. The ticket was asking to create a doc on we portal not here. I think there is some confusion what I suggested would be nice to have for reviews.

Yes, the idea is to avoid adding these documentation files to the code repository. I’ve only placed the document in the docs directory for review, since that’s where the other documents are stored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants