Chapter 11 - Example of Batching Requests with callbacks and how to do error handling? #46
Replies: 3 comments
-
Hi @HappyZombies , you can find an example in the code samples of the previous edition of the book. Please find the link below. Spoiler alert for other readers of the book. This is essentially a possible answer to one of the exercises in Chapter 11. So if you still want to try to solve the exercise by yourself, don't look at the file below. |
Beta Was this translation helpful? Give feedback.
-
Ah so it does use queues! Makes sense then. Thanks for answering -- btw this book is incredible! Thank you so much for taking the time to write it. |
Beta Was this translation helpful? Give feedback.
-
Thank you
…On Wed, Nov 3, 2021, 19:23 Daniel Reguero ***@***.***> wrote:
Ah so it does use queues! Makes sense then. Thanks for answering -- btw
this book is incredible! Thank you so much for taking the time to write it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZWZZYGQMX72PCROX46N3UKGK5PANCNFSM5HJTKS7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I was wondering if you could perhaps provide an example of batching requests with callbacks? Or if it's even possible with callbacks? I ask cuz I was trying to implement this in a node GRPC server I have but since it's not a Promise based implementation, I have to use callbacks.
I found some things online about using a queue of callbacks, but I am not sure if this considered batching?
Also what should happen if one of the requests contains an error? Will a simple catch send it to the appropriate requests.
Beta Was this translation helpful? Give feedback.
All reactions