Is there a specific reason to not use another piece of software for this?
I'm thinking of something like nginx or haproxy. Both of which are much
more hardened and performant in regards to serving as proxies for HTTP
traffic.

On Wed, May 27, 2015 at 7:34 AM, Viktor Klang <viktor.kl...@gmail.com>
wrote:

>
>
> On Wed, May 27, 2015 at 2:33 PM, Viktor Klang <viktor.kl...@gmail.com>
> wrote:
>
>>
>>
>> On Wed, May 27, 2015 at 2:01 PM, Endre Varga <endre.va...@typesafe.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Instead of Http.request, you should use the Flow returned by
>>> Http.superPool() (see
>>> http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC3/scala/http/client-side/request-level.html).
>>> That flattens out the Futures and you get responses instead. That also
>>> makes Balance actually aware of response times.
>>>
>>> OTOH I don't think performance wise akka-http is currently up to the
>>> task of being a balancer.
>>>
>>
>> …at the moment.
>>
>
> Doh, that "currently" eluded me, see my response as emphasis :)
>
>
>>
>>
>>>
>>> -Endre
>>>
>>> On Wed, May 27, 2015 at 1:21 PM, zergood <zergoodso...@gmail.com> wrote:
>>>
>>>> Hello!
>>>>
>>>> I have a task to develop a http balance loader for my 2 servers. Here
>>>> is my qucik and very dirty implementation
>>>> https://gist.github.com/zergood/e705cd6ce4cfec47c0a5. The main problem
>>>> with it is performance, this solution is slower than my single server.
>>>> What is the reason of performance degradation? Could you give me any
>>>> advices how to make http load balancer with akka-http? I am using
>>>> scala-2.11 and akka-http 1.0-RC3.
>>>>
>>>> --
>>>> >>>>>>>>>> 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 http://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 http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
>
>
>
> --
> Cheers,
> √
>
> --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Adam Shannon | Software Engineer | Banno | Jack Henry
206 6th Ave Suite 1020 | Des Moines, IA 50309 | Cell: 515.867.8337

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to