NodeJs Tutorial Part 6 (RPC): RPC Client code does not work after the first request #2758
Replies: 6 comments 4 replies
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
Thank you for considering a contribution. I cannot reproduce: for i in {1..20}; do node src/rpc_client.js $i; done
[x] Requesting fib(1)
[.] Got 1
[x] Requesting fib(2)
[.] Got 1
[x] Requesting fib(3)
[.] Got 2
[x] Requesting fib(4)
[.] Got 3
[x] Requesting fib(5)
[.] Got 5
[x] Requesting fib(6)
[.] Got 8
[x] Requesting fib(7)
[.] Got 13
[x] Requesting fib(8)
[.] Got 21
[x] Requesting fib(9)
[.] Got 34
[x] Requesting fib(10)
[.] Got 55
[x] Requesting fib(11)
[.] Got 89
[x] Requesting fib(12)
[.] Got 144
[x] Requesting fib(13)
[.] Got 233
[x] Requesting fib(14)
[.] Got 377
[x] Requesting fib(15)
[.] Got 610
[x] Requesting fib(16)
[.] Got 987
[x] Requesting fib(17)
[.] Got 1597
[x] Requesting fib(18)
[.] Got 2584
[x] Requesting fib(19)
[.] Got 4181
[x] Requesting fib(20)
[.] Got 6765 |
Beta Was this translation helpful? Give feedback.
-
This example is substantially more involved and it's not obvious to me that it would be a better tutorial. A better demonstration of modern JavaScript, perhaps, but our tutorials focus on explaining RabbitMQ concepts with intentionally minimalistic code. Until this style of code becomes commonly requested, I think we will keep the tutorials as they are. We have years of evidence that they |
Beta Was this translation helpful? Give feedback.
-
Totally agree with you on 'keep it simple' for beginners.
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the contribution. Questions:
|
Beta Was this translation helpful? Give feedback.
-
@saeidjoker OK, for this arguably more involved tutorial we can probably adopt this. Can you please submit a pull request to https://github.com/rabbitmq/rabbitmq-tutorials and another one to https://github.com/rabbitmq/rabbitmq-website (see under |
Beta Was this translation helpful? Give feedback.
-
I've spent some time on
https://www.rabbitmq.com/tutorials/tutorial-six-javascript.html
and trying to wrap my head around the issue that the second request to some RPC Server won't work.
I've prepared a code for this tutorial, which is tested and I propose to use this code for this tutorial:
Beta Was this translation helpful? Give feedback.
All reactions