Discussion of Lagom project development: https://github.com/lagom/.github/blob/master/CONTRIBUTING.md | Use lagom/lagom channel for general discussion. | Code of Conduct: https://www.lightbend.com/conduct | Forums: https://discuss.lagomframework.com | Commercial support from https://www.lightbend.com/
:+1: The required changes are outlined here: https://github.com/lagom/lagom/issues/571#issuecomment-508942154
A large number of changes are just SJS compatibility changes of artifacts. The lagom changes are basically breaking components into separate files and adding a few abstractions.
wsClient
from play)
(Message, Offset)
pair for message to be published. So in case we filter out messages, it won't commit offset until another message pass through, which results in unnecessary replays when app restarts. I've been playing with API of TopicProducer locally and changing it to accept Source[(Option[Message], Offset), Any]
instead of Source[(Message, Offset), Any]
. I wanted to ask if this is desirable change before I submit a PR.
persistence-cassandra-javads
). sbt srcriptrd
throws this errors [info] [error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.lightbend.lagom#lagom-sbt-plugin;1.6.0+209-e7410a29: not found
[info] [error] unresolved dependency: com.lightbend.lagom#lagom-sbt-scripted-tools;1.6.0+209-e7410a29: not found
I am unable to import lagom/docs/build.sbt
as mentioned here: https://github.com/lagom/lagom/blob/master/CONTRIBUTING.md#development-tips.
IntellijJ version: 2020.1 (but was not working with 2019.3.4 as well)
error:
[error] (lagom-internal-meta-project-kafka / update) sbt.librarymanagement.ResolveException: Error downloading com.lightbend.lagom:lagom-kafka-server_2.12:1.6.1+367-8c8cff59
[error] Not found
[error] Not found
[error] not found: /Users/miroslav.matejovsky/.ivy2/local/com.lightbend.lagom/lagom-kafka-server_2.12/1.6.1+367-8c8cff59/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-kafka-server_2.12/1.6.1+367-8c8cff59/lagom-kafka-server_2.12-1.6.1+367-8c8cff59.pom
[error] (lagom-internal-meta-project-service-locator / update) sbt.librarymanagement.ResolveException: Error downloading com.lightbend.lagom:lagom-service-locator_2.12:1.6.1+367-8c8cff59
[error] Not found
[error] Not found
[error] not found: /Users/miroslav.matejovsky/.ivy2/local/com.lightbend.lagom/lagom-service-locator_2.12/1.6.1+367-8c8cff59/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-service-locator_2.12/1.6.1+367-8c8cff59/lagom-service-locator_2.12-1.6.1+367-8c8cff59.pom
[error] (lagom-internal-meta-project-cassandra / update) sbt.librarymanagement.ResolveException: Error downloading com.lightbend.lagom:lagom-cassandra-server_2.12:1.6.1+367-8c8cff59
[error] Not found
[error] Not found
[error] not found: /Users/miroslav.matejovsky/.ivy2/local/com.lightbend.lagom/lagom-cassandra-server_2.12/1.6.1+367-8c8cff59/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-cassandra-server_2.12/1.6.1+367-8c8cff59/lagom-cassandra-server_2.12-1.6.1+367-8c8cff59.pom
[error] (lagom-internal-meta-project-kafka / ssExtractDependencies) sbt.librarymanagement.ResolveException: Error downloading com.lightbend.lagom:lagom-kafka-server_2.12:1.6.1+367-8c8cff59
[error] Not found
[error] Not found
[error] not found: /Users/miroslav.matejovsky/.ivy2/local/com.lightbend.lagom/lagom-kafka-server_2.12/1.6.1+367-8c8cff59/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-kafka-server_2.12/1.6.1+367-8c8cff59/lagom-kafka-server_2.12-1.6.1+367-8c8cff59.pom
[error] (lagom-internal-meta-project-service-locator / ssExtractDependencies) sbt.librarymanagement.ResolveException: Error downloading com.lightbend.lagom:lagom-service-locator_2.12:1.6.1+367-8c8cff59
[error] Not found
[error] Not found
[error] not found: /Users/miroslav.matejovsky/.ivy2/local/com.lightbend.lagom/lagom-service-locator_2.12/1.6.1+367-8c8cff59/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-service-locator_2.12/1.6.1+367-8c8cff59/lagom-service-locator_2.12-1.6.1+367-8c8cff59.pom
[error] (lagom-internal-meta-project-cassandra / ssExtractDependencies) sbt.librarymanagement.ResolveException: Error downloading com.lightbend.lagom:lagom-cassandra-server_2.12:1.6.1+367-8c8cff59
[error] Not found
[error] Not found
[error] not found: /Users/miroslav.matejovsky/.ivy2/local/com.lightbend.lagom/lagom-cassandra-server_2.12/1.6.1+367-8c8cff59/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-cassandra-server_2.12/1.6.1+367-8c8cff59/lagom-cassandra-server_2.12-1.6.1+367-8c8cff59.pom
[error] Total time: 26 s, completed 12 Apr 2020, 14:46:36
[info] shutting down sbt server
Any tips?
Hi @praajoo, unfortunately the cluster bootstrap operation sort of requires using kubernetes-api. Using akka-dns, for example, is not possible because the kubernetes DNS will not expose a POD until it’s ready and a lagom node is not ready until it has joind the cluster, and it won’t join the cluster until it can locate it’s peers that won’t be locatable until ready, and note ready until …
That being said, if you can think of alternative implementations for the discovery step of the cluster boostraping phase that don’t rely on Kubernetes api or extra RBAC settings it’d be a great addition!
I think this will be better contributed as an akka management subproject in https://github.com/akka/akka-management/
Thanks @ignasi35 , what I was thinking is instead of calling kubernetes api to return all the pod objects, if we can find another api of kubernetes which only gives the pod status and any other required pod details for the cluster start up, shall we use that for discovery phase !!! Let me try if that is feasible and like to contribute for it....