简体   繁体   English

Akka Persistence Maven是否协调了最新的稳定版本?

[英]Akka Persistence Maven coordinates for latest stable version?

I am brand new to Akka and am very confused about the Maven coordinates of its various modules. 我是Akka的新手,并且对其各种模块的Maven坐标感到非常困惑。

I would like to be on what is considered to be the latest stable version of Akka. 我想谈谈被认为是Akka的最新稳定版本。 I don't need bleeding edge features. 我不需要边缘功能。 I'm brand new. 我是新手。

In my build.gradle file I added: 在我的build.gradle文件中,我添加了:

dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.4.3'
    compile 'com.typesafe.akka:akka-actor_2.10:2.3.12'
}

This pulls in various binaries/dependencies and has allowed me to do simple things like creates UntypedActor subclasses, pass messages to them, etc. 这引入了各种二进制/依赖关系,并允许我做一些简单的事情,例如创建UntypedActor子类,将消息传递给它们等。

I would like to now implement Actor Persistence with, say, Mongo DB as the backing store, however it doesn't appear that I have any akka.persistence.* classes on my runtime classpath. 我现在想用Mongo DB作为后备存储来实现Actor Persistence ,但是在我的运行时类路径上似乎没有任何akka.persistence.*类。 This leads me to believe that Akka Persistence is a full bore module that I need to pull in as a separate JAR. 这使我相信Akka Persistence是一个完整的模块 ,我需要将其作为单独的JAR引入。

So, despite the fact that I am using akka-actor_2.10 , I added the following to my Gradle build: 因此,尽管事实上我正在使用akka-actor_2.10 ,但我还是在Gradle构建中添加了以下内容:

dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.4.3'
    compile 'com.typesafe.akka:akka-actor_2.10:2.3.12'
    compile 'com.typesafe.akka:akka-persistence_2.11:2.4-SNAPSHOT'
}

When I run this, no such akka-persistence_2.11:2.4-SNAPSHOT jar is pulled into my project. 当我运行此程序时,没有这样的akka-persistence_2.11:2.4-SNAPSHOT jar被拉到我的项目中。 This leaves me with several questions: 这给我留下了几个问题:

  • What dependency (specific Maven coordinates) do I need to include so that I'm on the latest stable "core Akka" ( akka-actor ) module?; 我需要包括什么依赖关系(特定的Maven坐标),以便使用最新的稳定“核心Akka”( akka-actor )模块? and
  • What dependency (specific Maven coordinates) do I need to include so that I'm on the latest stable Akka persistence module, thereby giving me the ability to implement message/actor persistence? 我需要包括什么依赖性(特定的Maven坐标),以便使用最新的稳定的Akka持久性模块,从而使我能够实现消息/角色持久性?
  • What's the first version number in all Akka modules ( 2.10 vs 2.11 , etc.)? 所有Akka模块( 2.102.11等)的第一个版本号是什么?

Turns out for Akka 2.3.* you need the experimental persistence module , which will become a stable/core feature of Akka in 2.4. 事实证明,对于Akka 2.3。*,您需要实验性的持久性模块 ,它将成为2.4中Akka的稳定/核心功能。

According to the Akka community, just because its marked as " experimental " doesn't mean that you're a mad scientist playing with fire and alchemy by using it in production, it just means that the module hasn't be around long enough for the community at large to officially mark it as stable. 根据Akka社区的说法,仅因为其标记为“ 实验性 ”并不意味着您是一个疯狂的科学家,并且在生产中使用了它,因此正在玩火和炼金术,这仅意味着该模块的使用时间不足以整个社区正式将其标记为稳定。

At the time of this writing, the 2.3 version of Akka-Persistence has been around a little over a year and is considered to be very stable, even though its still marked as experimental. 在撰写本文时,Akka-Persistence的2.3版本已经存在大约一年多了,尽管它仍被标记为实验性的,但仍被认为非常稳定。 HTH. HTH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM