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
3
votes
1 answer

multipart form data in Lagom

I want to have a service which receives an item object, the object contains; name, description, price and picture. the other attributes are strings which easily can be sent as Json object but for including picture what is the best solution? if…
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
3
votes
1 answer

what is restcall,pathcall,namedcall in lagom.javadsl.api.Descriptor;

I am new to microservices and Lagom framework, in the service api where we make ServiceCalls I do not understand the difference of namedcall, pathcall and restcall. where and when should we use which? for instance in these calls: …
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
3
votes
1 answer

How does Lagom manage communication patterns?

I'm referring to the "Managing Communication Patterns" section of Reactive Microservices Architecture by Jonas Boner. Usually when communicating between services (ESB is one example), one would need: 1) A queue for pub-sub communication, and to…
EugeneMi
  • 3,475
  • 3
  • 38
  • 57
2
votes
0 answers

How to use lagom in scala3

I want to compile my lagom project in Scala 3. Follow this documentation scala3 documentation, when prepare the dependencies, I change my build.sbt: lazy val `service-api` = (project in file("service-api")) .settings( …
wangzi
  • 21
  • 1
2
votes
1 answer

In lagom: on increasing concurrent http calls, thread count (akka.actor.default-dispatcher) keeps increasing. How to control this behaviour?

We observe that on increasing concurrent http calls to our service, thread count (akka.actor.default-dispatcher) keeps increasing (see screenshot from visualVM). Also after the requests stop, the thread count don’t go down. And most of these remain…
2
votes
0 answers

Kafka quits unexpectedly in Intellij but not in bash

When I try to run "runAll" in Lagom from within Intellij, Kafka server is closed unexpectedly right after starting Cassandra. Once I get to the line that reads "Services started, press enter to stop and go..." it automatically generated a "Stopping…
BigSky
  • 81
  • 5
2
votes
0 answers

Versioning for deployments of microservices in lagom on kubernetes

Question is related to deployment of micro services . Framework used -- Lagom . Suppose i Have two microservices Say M1,M2 which is in same git repository . So we have only one build.sbt and both microservices are define in that build.sbt . …
Sahil Aggarwal
  • 1,311
  • 1
  • 12
  • 29
2
votes
1 answer

Lagom: is it possible to split service instances across multiple clusters?

Let's say I have Hello-Service. In Lagom, this service can run across multiple nodes of a single cluster. So within Cluster 1, we can have multiple "copies" of Hello-Service: Cluster1: Hello-Service-1, Hello-Service-2, Hello-Service-3 But is it…
Teimuraz
  • 8,795
  • 5
  • 35
  • 62
2
votes
0 answers

How to handle unique constraint in Entity (AggregateRoot) in Lagom?

In our case we are creating a Ticket entity and in that Email Id has to be unique, how to achieve this using the Lagom Framework?
techagrammer
  • 1,291
  • 8
  • 19
2
votes
0 answers

Lagom and Kamon: Classloading errors

We are using Kamon to instrument all of our microservices, some of them use Lagom and other use akka-http. Our Lagom microservices are using sbt-native-packager to create a zip file that, once unzipped, will run in our server. Whereas the akka-http…
2
votes
1 answer

Secure websockets with Lagom

With the lightbend Lagom framework I'm trying to connect to the websocket api of Binance. However, I'm keep getting the following error on connecting: 400 The plain HTTP request was sent to HTTPS port Should it be possible from Lagom to connect to…
Stijn Koopal
  • 143
  • 7
2
votes
0 answers

Error when calling two consecutive commands in Lagom

when I call two consecutive commands, I have the following compilation error: no instance(s) of type variable(s) U exist so that CompletionStage conforms to Pair inference variable U has…
2
votes
2 answers

How can I proceed a delete operation in Lagom Framework?

I am a little newbie on the Lagom framework and I need to know what the right way to do a delete operation in this framework. I develop with Java and I tested two approaches: when I handle the delete event I set the state to Optional.empty () but…
2
votes
0 answers

Accessing config instance from a Lagom service descriptor

Is there a recommended way for injecting / accessing the application Typesafe config instance from within a Lagom service interface (ie, the trait, not Impl)? The use case I am thinking of is for the creation of a request header filter that depends…
simonl
  • 1,240
  • 7
  • 19
2
votes
1 answer

Running Multiple Lagom Application in a Single Process

We built multiple microservices based on Lagom which are independently deployable, on our cloud setup we deploy like that, but on some onpremise setup it become and issue to run multiple Lagom Services in diff. process. We were able to run multiple…
techagrammer
  • 1,291
  • 8
  • 19
1 2
3
21 22