Skip to content

Accuracy of async call() concurrency warning #890

Answered by miguelgrinberg
tt2468 asked this question in Q&A
Discussion options

You must be logged in to vote

Couple of things.

The call() method is a wrapper that combines an EVENT packet sent to the other side with the corresponding ACK packet sent in return. The purpose is for the recipient to "acknowledge" that the event was received. My personal opinion is that you are abusing this feature a bit by making it be a return a result after a long task. While it is not a problem to have long running events, there isn't really much of a benefit for these long tasks versus using HTTP, which is much easier to manage (still my opinion).

The thread safety warning is not specific to call(), the same warning appears in the emit() method. It is not a design goal of this package for these methods to be thr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tt2468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants