- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Actors in application service layer
Wed, 2009-09-09, 10:27
Hello scala people,
the more I read about Scala the more I like it.
I am working on a little web app project and I want convert it
to Scala from Java.
Now I am thinking about using Actors as services. I searched but
I do not realy find something about it.
Has someone experience with his? Or can someone give me some
hints?
I find the Akka project from Jonas, is it for such a scenario?
Schould I look to Erlang OTP to understand it better how to use Actors as
Service?
with best regards
Wed, 2009-09-09, 11:37
#2
Re: Actors in application service layer
2009/9/9 Viktor Klang :
>
>
> On Wed, Sep 9, 2009 at 11:26 AM, greekmac wrote:
>>
>> Hello scala people,
>>
>> the more I read about Scala the more I like it.
>> I am working on a little web app project and I want convert it
>> to Scala from Java.
>>
>> Now I am thinking about using Actors as services. I searched but
>> I do not realy find something about it.
>>
>> Has someone experience with his? Or can someone give me some
>> hints?
>>
>> I find the Akka project from Jonas, is it for such a scenario?
>> Schould I look to Erlang OTP to understand it better how to use Actors as
>> Service?
This is what Akka is created to address.
Here is the doc explaining erlang-style supervisor hieranchies in Akka:
http://wiki.github.com/jboner/akka/reference-supervisor-hierarchies-faul...
Good starting point.
Here is remote actors (very efficient NIO based impl:
http://wiki.github.com/jboner/akka/reference-remoting-distributed-active...
If you have any questions there is a user list:
http://groups.google.com/group/akka-user
/Jonas
>>
>
> Hello greekmac,
>
> yes, Akka would certainly fit this use-case.
> Please have a look at the Akka documentation at
> http://wiki.github.com/jboner/akka
> And be sure to check out the samples in the codebase, they're named:
> akka-sample-*
>
>
>>
>> with best regards
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Actors-in-application-service-layer-tp25361463p253...
>> Sent from the Scala - User mailing list archive at Nabble.com.
>>
>
>
>
> --
> Viktor Klang
>
> Blog: klangism.blogspot.com
> Twttr: viktorklang
>
> Lift Committer - liftweb.com
> AKKA Committer - akkasource.org
> Cassidy - github.com/viktorklang/Cassidy.git
> SoftPub founder: http://groups.google.com/group/softpub
>
Thu, 2009-09-10, 15:07
#3
Re: Actors in application service layer
Hello,
I found that Blog post
http://suereth.blogspot.com/2008/08/adding-scala-actors-to-your-spring.html
adding-scala-actors-to-your-spring and I like the approach to have
a trait, that is my interface and gives me the API. I cant use this with
akka actors...?
I dont have a complete overview yet.
I look at the samples...I can configure the strategy how the actors should
be managed...
but how do the actors interact with each other...something is missing in my
head :)
with best regards
Jonas Bonér-6 wrote:
>
> 2009/9/9 Viktor Klang :
>>
>>
>> On Wed, Sep 9, 2009 at 11:26 AM, greekmac wrote:
>>>
>>> Hello scala people,
>>>
>>> the more I read about Scala the more I like it.
>>> I am working on a little web app project and I want convert it
>>> to Scala from Java.
>>>
>>> Now I am thinking about using Actors as services. I searched but
>>> I do not realy find something about it.
>>>
>>> Has someone experience with his? Or can someone give me some
>>> hints?
>>>
>>> I find the Akka project from Jonas, is it for such a scenario?
>>> Schould I look to Erlang OTP to understand it better how to use Actors
>>> as
>>> Service?
>
> This is what Akka is created to address.
>
> Here is the doc explaining erlang-style supervisor hieranchies in Akka:
> http://wiki.github.com/jboner/akka/reference-supervisor-hierarchies-faul...
> Good starting point.
>
> Here is remote actors (very efficient NIO based impl:
> http://wiki.github.com/jboner/akka/reference-remoting-distributed-active...
>
> If you have any questions there is a user list:
> http://groups.google.com/group/akka-user
>
> /Jonas
>
>>>
>>
>> Hello greekmac,
>>
>> yes, Akka would certainly fit this use-case.
>> Please have a look at the Akka documentation at
>> http://wiki.github.com/jboner/akka
>> And be sure to check out the samples in the codebase, they're named:
>> akka-sample-*
>>
>>
>>>
>>> with best regards
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Actors-in-application-service-layer-tp25361463p253...
>>> Sent from the Scala - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> Viktor Klang
>>
>> Blog: klangism.blogspot.com
>> Twttr: viktorklang
>>
>> Lift Committer - liftweb.com
>> AKKA Committer - akkasource.org
>> Cassidy - github.com/viktorklang/Cassidy.git
>> SoftPub founder: http://groups.google.com/group/softpub
>>
>
>
>
Fri, 2009-09-11, 08:27
#4
Re: Actors in application service layer
2009/9/10 greekmac :
>
> Hello,
>
> I found that Blog post
> http://suereth.blogspot.com/2008/08/adding-scala-actors-to-your-spring.html
> adding-scala-actors-to-your-spring and I like the approach to have
> a trait, that is my interface and gives me the API. I cant use this with
> akka actors...?
> I dont have a complete overview yet.
I might misunderstand but I think that you would like to have what
Akka's Active Objects provide; a regular Java API (through POJO or
Interface+POJO) wrapping an actor. These are as performant,
fault-tolerant and feature-complete as the regular Actors.
Read more here:
http://wiki.github.com/jboner/akka/reference-active-objects-java-api
Sample here: http://wiki.github.com/jboner/akka/examples
The piece that is missing is Spring integration but that would be
trivial to do. Join the akka-user mailing list and we can discuss what
you need there.
/Jonas
>
> I look at the samples...I can configure the strategy how the actors should
> be managed...
> but how do the actors interact with each other...something is missing in my
> head :)
>
> with best regards
>
>
> Jonas Bonér-6 wrote:
>>
>> 2009/9/9 Viktor Klang :
>>>
>>>
>>> On Wed, Sep 9, 2009 at 11:26 AM, greekmac wrote:
>>>>
>>>> Hello scala people,
>>>>
>>>> the more I read about Scala the more I like it.
>>>> I am working on a little web app project and I want convert it
>>>> to Scala from Java.
>>>>
>>>> Now I am thinking about using Actors as services. I searched but
>>>> I do not realy find something about it.
>>>>
>>>> Has someone experience with his? Or can someone give me some
>>>> hints?
>>>>
>>>> I find the Akka project from Jonas, is it for such a scenario?
>>>> Schould I look to Erlang OTP to understand it better how to use Actors
>>>> as
>>>> Service?
>>
>> This is what Akka is created to address.
>>
>> Here is the doc explaining erlang-style supervisor hieranchies in Akka:
>> http://wiki.github.com/jboner/akka/reference-supervisor-hierarchies-faul...
>> Good starting point.
>>
>> Here is remote actors (very efficient NIO based impl:
>> http://wiki.github.com/jboner/akka/reference-remoting-distributed-active...
>>
>> If you have any questions there is a user list:
>> http://groups.google.com/group/akka-user
>>
>> /Jonas
>>
>>>>
>>>
>>> Hello greekmac,
>>>
>>> yes, Akka would certainly fit this use-case.
>>> Please have a look at the Akka documentation at
>>> http://wiki.github.com/jboner/akka
>>> And be sure to check out the samples in the codebase, they're named:
>>> akka-sample-*
>>>
>>>
>>>>
>>>> with best regards
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Actors-in-application-service-layer-tp25361463p253...
>>>> Sent from the Scala - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>> Viktor Klang
>>>
>>> Blog: klangism.blogspot.com
>>> Twttr: viktorklang
>>>
>>> Lift Committer - liftweb.com
>>> AKKA Committer - akkasource.org
>>> Cassidy - github.com/viktorklang/Cassidy.git
>>> SoftPub founder: http://groups.google.com/group/softpub
>>>
>>
>>
>>
>> --
>> Jonas Bonér
>>
>> twitter: @jboner
>> blog: http://jonasboner.com
>> work: http://crisp.se
>> work: http://scalablesolutions.se
>> code: http://github.com/jboner
>> code: http://akkasource.org
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Actors-in-application-service-layer-tp25361463p253...
> Sent from the Scala - User mailing list archive at Nabble.com.
>
>
Sat, 2009-09-12, 13:57
#5
Re: Actors in application service layer
Thanks Jonas and Viktor.
with best regards
Jonas Bonér-6 wrote:
>
> 2009/9/10 greekmac :
>>
>> Hello,
>>
>> I found that Blog post
>> http://suereth.blogspot.com/2008/08/adding-scala-actors-to-your-spring.html
>> adding-scala-actors-to-your-spring and I like the approach to have
>> a trait, that is my interface and gives me the API. I cant use this with
>> akka actors...?
>> I dont have a complete overview yet.
>
> I might misunderstand but I think that you would like to have what
> Akka's Active Objects provide; a regular Java API (through POJO or
> Interface+POJO) wrapping an actor. These are as performant,
> fault-tolerant and feature-complete as the regular Actors.
>
> Read more here:
> http://wiki.github.com/jboner/akka/reference-active-objects-java-api
> Sample here: http://wiki.github.com/jboner/akka/examples
>
> The piece that is missing is Spring integration but that would be
> trivial to do. Join the akka-user mailing list and we can discuss what
> you need there.
>
> /Jonas
>
>
>>
>> I look at the samples...I can configure the strategy how the actors
>> should
>> be managed...
>> but how do the actors interact with each other...something is missing in
>> my
>> head :)
>>
>> with best regards
>>
>>
>> Jonas Bonér-6 wrote:
>>>
>>> 2009/9/9 Viktor Klang :
>>>>
>>>>
>>>> On Wed, Sep 9, 2009 at 11:26 AM, greekmac wrote:
>>>>>
>>>>> Hello scala people,
>>>>>
>>>>> the more I read about Scala the more I like it.
>>>>> I am working on a little web app project and I want convert it
>>>>> to Scala from Java.
>>>>>
>>>>> Now I am thinking about using Actors as services. I searched but
>>>>> I do not realy find something about it.
>>>>>
>>>>> Has someone experience with his? Or can someone give me some
>>>>> hints?
>>>>>
>>>>> I find the Akka project from Jonas, is it for such a scenario?
>>>>> Schould I look to Erlang OTP to understand it better how to use Actors
>>>>> as
>>>>> Service?
>>>
>>> This is what Akka is created to address.
>>>
>>> Here is the doc explaining erlang-style supervisor hieranchies in Akka:
>>> http://wiki.github.com/jboner/akka/reference-supervisor-hierarchies-faul...
>>> Good starting point.
>>>
>>> Here is remote actors (very efficient NIO based impl:
>>> http://wiki.github.com/jboner/akka/reference-remoting-distributed-active...
>>>
>>> If you have any questions there is a user list:
>>> http://groups.google.com/group/akka-user
>>>
>>> /Jonas
>>>
>>>>>
>>>>
>>>> Hello greekmac,
>>>>
>>>> yes, Akka would certainly fit this use-case.
>>>> Please have a look at the Akka documentation at
>>>> http://wiki.github.com/jboner/akka
>>>> And be sure to check out the samples in the codebase, they're named:
>>>> akka-sample-*
>>>>
>>>>
>>>>>
>>>>> with best regards
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Actors-in-application-service-layer-tp25361463p253...
>>>>> Sent from the Scala - User mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Viktor Klang
>>>>
>>>> Blog: klangism.blogspot.com
>>>> Twttr: viktorklang
>>>>
>>>> Lift Committer - liftweb.com
>>>> AKKA Committer - akkasource.org
>>>> Cassidy - github.com/viktorklang/Cassidy.git
>>>> SoftPub founder: http://groups.google.com/group/softpub
>>>>
>>>
>>>
>>>
>>> --
>>> Jonas Bonér
>>>
>>> twitter: @jboner
>>> blog: http://jonasboner.com
>>> work: http://crisp.se
>>> work: http://scalablesolutions.se
>>> code: http://github.com/jboner
>>> code: http://akkasource.org
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Actors-in-application-service-layer-tp25361463p253...
>> Sent from the Scala - User mailing list archive at Nabble.com.
>>
>>
>
>
>
On Wed, Sep 9, 2009 at 11:26 AM, greekmac <marsias@gmx.net> wrote:
Hello greekmac,
yes, Akka would certainly fit this use-case.
Please have a look at the Akka documentation at http://wiki.github.com/jboner/akka
And be sure to check out the samples in the codebase, they're named: akka-sample-*
--
Viktor Klang
Blog: klangism.blogspot.com
Twttr: viktorklang
Lift Committer - liftweb.com
AKKA Committer - akkasource.org
Cassidy - github.com/viktorklang/Cassidy.git
SoftPub founder: http://groups.google.com/group/softpub