Questions tagged [lagom]

Lagom is a framework for creating microservice-based systems on the Java Virtual Machine.

Lagom is a framework for creating microservice-based systems. It offers four main features:

  • Service API
  • Persistence API
  • Development Environment
  • Production Environment

The Service API provides a way to declare and implement service interfaces, to be consumed by clients. For location transparency, clients discover services through a Service Locator. The Service API supports synchronous request-response calls as well as asynchronous streaming between services.

The Persistence API provides event-sourced persistent entities for services that store data. Command Query Responsibility Segregation (CQRS) read-side support is provided as well. Lagom manages the distribution of persisted entities across a cluster of nodes, enabling sharding and horizontal scaling. Cassandra is provided as a database out-of-the-box.

The Development Environment allows running all your services, and the supporting Lagom infrastructure, with one command. It hot-reloads your services when code changes; no fragile scripts are needed to set up and maintain a development environment. With Lagom, a developer can bring up a new service or join an existing Lagom development team in just a few minutes.

328 questions
15
votes
4 answers

Lagom without ConductR?

Is it practical or wise to use Lagom in production without ConductR? The commercial licensing is putting me off. This framework looks like it could be pretty arduous to deploy and custom tooling for that can take a lot of effort to get right.
stelterd
  • 4,842
  • 1
  • 13
  • 10
7
votes
2 answers

Lagom service consuming input from Kafka

I am trying to figure out how Lagom can be used to consume data from external systems communicating over Kafka. I've ran into this section of Lagom documentation, which describes how Lagom service can communicate with another Lagom service by…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
7
votes
1 answer

What's the sbt command for creating new lagom microservicem in an existing project?

What's the sbt command for creating new lagom microservice in an existing project? I tried to search this question on google as well as separately in lagom documentation, but didn't find any luck. Right now I am using a very long path of creating…
Ravinder Payal
  • 2,884
  • 31
  • 40
7
votes
3 answers

What is the simplest way to consume an external REST service in Lagom?

According to Lagom documentation, we can define external service URI (like below) and can get it from ServiceLocator. lagomUnmanagedServices in ThisBuild := Map("weather" ->…
5
votes
2 answers

Lagom debugger Intellij

I can't get the debugger to work. Steps to reproduce: 1) sbt lagom:runAll 2) sbt -jvm-debug 5005 3) Set remote config in Intellij + start debugging 4) Set breakpoints 5) Make request The debugger doesn't stop at the breakpoints. What is…
html_programmer
  • 18,126
  • 18
  • 85
  • 158
5
votes
1 answer

Lagom ConductR connection refused error

I am new to lagom-sbt and I am trying to run the Lagom service bundle using ConductR. I have added following sbt-conductr version in plugins.sbt addSbtPlugin("com.lightbend.conductr" % "sbt-conductr" % "2.4.0") Here what I have run so far sbt…
Charmy Garg
  • 291
  • 2
  • 14
4
votes
1 answer

Lagom cassandra readside table not created

I have created a user repository Lagom readside in my user-impl service, but for some reason the Cassandra users table doesn't get created when running sbt lagom:runAll. I'm not sure what I'm missing here. My UserRepository class:…
html_programmer
  • 18,126
  • 18
  • 85
  • 158
4
votes
0 answers

Breakpoints in Eclipse for Lagom or Akka code

We are using Eclipse to remote debug Lagom and Akka applications, but Eclipse is not allowing us to put breakpoints in the code. I am able to put breakpoints in my Scala code, but not in the Akka library. For example: I am trying add a breakpoint on…
techagrammer
  • 1,291
  • 8
  • 19
4
votes
2 answers

What is the difference between Akka Persistence and Akka Persistence Query?

Akka persistence query complements Persistence by providing a universal asynchronous stream based query interface that various journal plugins can implement in order to expose their query capabilities. This is the description of 'Akka Persistence…
znkomurcu
  • 41
  • 5
4
votes
1 answer

Is it possible to Use MongoDB for Lagom persistence?

The Lagom Documentation does not mention anything about MongoDB support, but Lagom seems to have JPA and JDBC support. Can Hibernate OGM be used as a JPA interface between MongoDB & Lagom? ReactiveMongo driver is one good candidate which even works…
Chamil
  • 805
  • 5
  • 12
4
votes
1 answer

Lagom's embedded Kafka fails to start after killing Lagom process once

I've played around with lagom-scala-word-count Activator template and I was forced to kill the application process. Since then embedded kafka doesn't work - this project and every new I create became unusable. I've tried: running sbt clean, to…
4
votes
1 answer

Lightbend Lagom and Akka: Unable to hit rest endpoint of lagom services

I am creating lagom simple application, with define one rest end point and hit end point using rest client postman. But In response I am getting, action not found error. I am integrate Akka with lagom, Following is my code: Service: trait…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
3
votes
2 answers

How to combine Source.repeat and Source.completionStage using Akka

I'm using akka with a microservice framework, so I've got a lot of completionStage requests. I want to get a list of elements from one microservice and zip them together with a single element from another such that I end up with a Source of…
Simon
  • 69
  • 1
  • 6
3
votes
0 answers

What is a lagom server in lagom framework?

Inside the doc, nothing is written except a line which says " A Lagom server" And on searching on the doc https://www.lagomframework.com/documentation/current/scala/Migration14.html#Akka-HTTP-as-the-default-server-engine Found out that Akka-http as…
supernatural
  • 1,107
  • 11
  • 34
3
votes
1 answer

How does lagom manage event versioning?

Lets say we modified an event to have a new field added. I understand that we can handle the serialization for event mapping changes in this documentation https://www.lagomframework.com/documentation/1.5.x/scala/Serialization.html but how does lagom…
vvavepacket
  • 1,882
  • 4
  • 25
  • 38
1
2 3
21 22