Ask Your Question
2

Does it make sense that the speed of synchronous `multi_get` exceeds asynchronous `get`?

asked 2023-07-20 07:10:31 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-20 07:38:02 +0000

djk gravatar image

Yes, it is possible for the speed of synchronous multi_get to exceed asynchronous get because synchronous operations block the execution until they have completed, whereas asynchronous operations allow the program to continue executing while the operation is being performed. This means that synchronous multi_get can fetch multiple keys simultaneously in a single network call, whereas asynchronous get would make multiple individual network calls. Therefore, for a smaller number of keys, asynchronous get may be faster due to less overhead, but for a larger number of keys, synchronous multi_get may be faster because of reduced network round-trip time.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-20 07:10:31 +0000

Seen: 14 times

Last updated: Jul 20 '23