Hi there,
3 styles answers to the question :-)

*Short version:*
Don't do it. Blocking the default dispatcher is a very very very bad thing,
do it on a dedicated dispatcher.

*Documentation version: *
First, this is very well documented here:
http://doc.akka.io/docs/akka-http/current/scala/http/handling-blocking-operations-in-akka-http-routes.html
Please read the above documentation, it explains what happens to the
dispatchers and how one should manage blocking there.
In addition to the link Rafał shared you can also read:
http://doc.akka.io/docs/akka/current/general/actor-systems.html#Blocking_Needs_Careful_Management



*Visual version:*
And the stars of heaven fell to the earth, even as a fig tree casts her
untimely figs, when she is shaken of a mighty wind.
And the heaven departed as a scroll when it is rolled together; and every
mountain and island were moved out of their places. [...]
For the great day of his wrath is come; and who shall be able to stand?
[Revelation 6]


;-)

-- 
Konrad `ktoso` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

On 25 November 2016 at 19:43:50, Rafał Krzewski (rafal.krzew...@gmail.com)
wrote:

W dniu piątek, 25 listopada 2016 17:12:06 UTC+1 użytkownik gitted napisał:
>
> Instead of composing futures in my akka http application, if I was to
> frequently make use of Await.result what is the ramification of doing this?
>

Threads would get blocked and performance of your application would
plummet. Why would you ever want do do that?


> By default how many threads are there in the main execution context?
>

see http://doc.akka.io/docs/akka/2.4/scala/dispatchers.html

cheeres,
Rafał
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
"Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to