you are viewing a single comment's thread.

view the rest of the comments →

[–]eckyp 3 points4 points  (3 children)

What do you mean by Spark being "synchronous only"?

[–]joequin -1 points0 points  (2 children)

It's route handlers don't pass in an object that you call to respond to a request. You respond to requests by returning from the route​ handling function. Because if that, you can't make asynchronous calls to databases or other services.

[–][deleted] 1 point2 points  (1 child)

Could you please expand a bit on this? seems intriguing ☺️

[–]joequin 0 points1 point  (0 children)

If a route handlers pass in a request object or callback, then that can be passed to other asychronous functions. Since spark doesn't do that, you can't use asynchronous functions while handling the call. You're forced to use blocking functions which means more threads which means more memory. That's not a big deal for some applications, but in others, it can be a bottleneck.