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

How to make normal http service calls between two micro services asynchronous in Lagom

I was going through Lagom documentation and want to clarify one thing with respect to microservice to microservice communication. We have the below use case. WebBrowser <--http--> MicroService1 <--http--> MicroService2. This is purely synchronous…
Sajeev
  • 17
  • 3
0
votes
1 answer

Best practice : How to retrieve all EntityIds based on some condition applied on the state?

Here is my use case: case class Organization(id: String = UUID.randomUUID().toString, userId: String) case class OrganizationState(organization: Option[Organization]) case CreateOrganization extends OrganizationCommand case OrganizationCreated…
Thomas Pocreau
  • 470
  • 5
  • 12
0
votes
1 answer

Update in Lagom via REST API

I have went through 2 examples of using Lagom to develop Micro-Service Architecture system, namely the 'chirp' and 'cargotracker', but none of them show how to update to existing entity. For instance, having following entity with REST…
Bond Chen
  • 168
  • 1
  • 8
0
votes
1 answer

Best way to handle a synchronous call

Say your ReadProcessor needs to insert records using JDBC, or you need to integrate with a SOAP layer via a JAXWS call. What is the best way to handle synchronous calls using Lagom asynchronous (by design) platform.
Olivier Refalo
  • 50,287
  • 22
  • 91
  • 122
0
votes
1 answer

Best way to store/retrieve service properties

What is the best way to store/retrieve configurations related to the microservice? How to get for instance, the IP and port serving the endpoint?
Olivier Refalo
  • 50,287
  • 22
  • 91
  • 122
0
votes
2 answers

Can a ReadSideProcessor manage multiple events?

My application needs to manage 3 types of events: creation, edit and deletion. Can I manage all these events with just one ReadSideProcessor? Is there any particular order I should prepare the statements in the prepare method?
Mattia C.
  • 700
  • 1
  • 5
  • 15
0
votes
1 answer

Lagom framework / streamed response / websocket / pathCall / Descriptor / Creator instead of Function

I have my service declared this way: public interface BlogQueryService extends Service { public ServiceCall> tick(int interval); public ServiceCall> tock(); public ServiceCall
Cokorda Raka
  • 4,375
  • 6
  • 36
  • 54
0
votes
1 answer

Does Lagom support REST only?

I know this is an odd question... after all, why would anyone use SOAP these days? But I would like to build a proof of concept and I need to produce a SOAP service. It's not apparent to me how that might be done in Lagom but from the documentation…
Mike Nishizawa
  • 1,410
  • 1
  • 14
  • 14
0
votes
3 answers

Lightbend Lagom - how to refactor Java EE monoliths

I was watching a webinar made by lightbend talking about refactoring monoliths into microservices and a question came to me. The framework's main target seems to be refactoring monoliths, but lagom seems to run on its own container and set of…
Augusto
  • 1,234
  • 1
  • 16
  • 35
-1
votes
1 answer

Error ( No implicits found for parameter responseSerializer: MessageSerializer[Seq[SearchFormData], _] )

enter image description here Getting error in scala rest API while passing Seq[] in response. And when I remove Seq it works fine. Thank You
Samual
  • 67
  • 9
-1
votes
1 answer

Communication between 2 Lagom service (running on two different servers/machines), over Kafka topic

I am trying to learn/understand scala+lagom+kafka in detail. While searching through the web found a sample Twitter project that explains it pretty nicely (https://github.com/knoldus/lagom-scala.g8/tree/master/src/main/g8). In this project two…
Aseem
  • 1
  • 5
-1
votes
1 answer

Query params in Lagom

I need a service call which has two query parameters. One with a default hardcoded value and other the user would supply. I tried creating : ServiceCall randomCall(String abc) using restCall(Method.GET, "/testing?a=something&abc",…
Sajit Gupta
  • 98
  • 1
  • 6
-6
votes
1 answer

Scala, Akka, Lagom, Play, Reactive and Microservices

I've been meaning to create MicroServices using Scala. Later we may need some web pages as well. What is Reactive programming in terms of Micro Services or REST HTTP? What is the relationship (if any) between Play, Lagom and Akka? Are they all…
TriCore
  • 1,844
  • 1
  • 16
  • 17
1 2 3
21
22