Deploying Akka

191 views
Skip to first unread message

Zach Cox

unread,
Jan 26, 2011, 11:52:14 AM1/26/11
to Iowa Scala Enthusiasts
Ben - great Akka talk yesterday! How are you deploying your Akka
projects on your servers? Just a .jar that uses the microkernel, or
a .war in some container? Or something else?

Thanks,
Zach

Ben Metz

unread,
Jan 26, 2011, 1:03:33 PM1/26/11
to iowa-scala-...@googlegroups.com
Thx.  Really enjoyed your Lift prez as well... I might have caught the Lift bug.

We are currently "deploying fat jars" :)  So no container.  Wade put this exact question to Coda Hale (Yammer) and Alex Payne(BankSimple/Twitter) about deploying Scala when we were at OSCON last year.  They both said just "deploy fat jars, and restart processes".  
We've been using https://github.com/bwmcadams/sbt-akka-bivy which makes it pretty easy to deploy akka apps.  

However, this project https://github.com/codahale/assembly-sbt just hit my radar this week.  We'll have a whirl with it and post back on this thread.  Looks like magic sauce tho :)

Zach Cox

unread,
Jan 26, 2011, 2:19:37 PM1/26/11
to iowa-scala-...@googlegroups.com
Wow those sbt plugins are new to me and look great, thanks for passing along!

One other related question: when you "restart processes" are you
concerned at all about losing messages that were in actor mailboxes in
ram before the restart?

Ben Metz

unread,
Jan 26, 2011, 3:32:28 PM1/26/11
to iowa-scala-...@googlegroups.com
Yes.  I am concerned.  One answer to the problem is persistent mailboxes, which Jonas is working on right now.  You'll have your choice of persistent back-ends(basic Journal(file-system), BeanStalk, Redis, Mongo, ZooKeeper, etc...).  It remains to be seen if that will be in OS version or commercial. 

Event Sourcing, *can be helpful* for this problem as well... 
That being said, the problem makes you think hard about architecture and how to bring down(and bring back up) certain parts of your system.  

Ben Metz

unread,
Jan 29, 2011, 12:10:18 AM1/29/11
to Iowa Scala Enthusiasts

http://images2.memegenerator.net/ImageMacro/2756015/Deploy-fat-jars-Restart-processes.jpg?imageSize=Medium&generatorName=Joseph-Ducreux

On Jan 26, 2:32 pm, Ben Metz <ben.m...@t8webware.com> wrote:
> Yes.  I am concerned.  One answer to the problem is persistent mailboxes,
> which Jonas is working on right now.  You'll have your choice of persistent
> back-ends(basic Journal(file-system), BeanStalk, Redis, Mongo, ZooKeeper,
> etc...).  It remains to be seen if that will be in OS version or
> commercial.
>
> Event Sourcing, *can be helpful* for this problem as well...
> That being said, the problem makes you think hard about architecture and how
> to bring down(and bring back up) certain parts of your system.
>
>
>
>
>
>
>
> On Wed, Jan 26, 2011 at 1:19 PM, Zach Cox <zcox...@gmail.com> wrote:
> > Wow those sbt plugins are new to me and look great, thanks for passing
> > along!
>
> > One other related question: when you "restart processes" are you
> > concerned at all about losing messages that were in actor mailboxes in
> > ram before the restart?
>
> > On Wed, Jan 26, 2011 at 12:03 PM, Ben Metz <ben.m...@t8webware.com> wrote:
> > > Thx.  Really enjoyed your Lift prez as well... I might have caught the
> > Lift
> > > bug.
> > > We are currently "deploying fat jars" :)  So no container.  Wade put this
> > > exact question to Coda Hale (Yammer) and Alex Payne(BankSimple/Twitter)
> > > about deploying Scala when we were at OSCON last year.  They both said
> > just
> > > "deploy fat jars, and restart processes".
> > > We've been usinghttps://github.com/bwmcadams/sbt-akka-bivywhich makes
> > it
> > > pretty easy to deploy akka apps.
> > > However, this projecthttps://github.com/codahale/assembly-sbtjust hit
> > my
> > > radar this week.  We'll have a whirl with it and post back on this
> > thread.
> > >  Looks like magic sauce tho :)
>

Zach Cox

unread,
Jan 29, 2011, 7:57:02 AM1/29/11
to iowa-scala-...@googlegroups.com
That may just be the new Iowa Scala Enthusiasts logo!

Zach Cox

unread,
Mar 10, 2011, 7:29:36 PM3/10/11
to Iowa Scala Enthusiasts
Are you guys still using sbt-akka-bivy for deployments? Have you
tried assembly-sbt yet?


On Jan 26, 12:03 pm, Ben Metz <ben.m...@t8webware.com> wrote:
> Thx.  Really enjoyed your Lift prez as well... I might have caught the Lift
> bug.
>
> We are currently "deploying fat jars" :)  So no container.  Wade put this
> exact question to Coda Hale (Yammer) and Alex Payne(BankSimple/Twitter)
> about deploying Scala when we were at OSCON last year.  They both said just
> "deploy fat jars, and restart processes".
> We've been usinghttps://github.com/bwmcadams/sbt-akka-bivywhich makes it
> pretty easy to deploy akka apps.
> *
> *
> *However, *this projecthttps://github.com/codahale/assembly-sbtjust hit my

Ben Metz

unread,
Mar 10, 2011, 11:21:54 PM3/10/11
to iowa-scala-...@googlegroups.com
Still using bivy.  assembly-sbt looks real nice, haven't tried it yet.

Zach Cox

unread,
Mar 10, 2011, 11:49:20 PM3/10/11
to iowa-scala-...@googlegroups.com, Ben Metz
Started using assembly-sbt tonight, works great. Produces one giant
jar and auto-creates manifest with main class.

Will still need upstart scripts to run as daemon though...

Reply all
Reply to author
Forward
0 new messages