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

What are the advantages of using Lagom over the Playframework directly?

I'm at the stage of conceiving a small JSON-based web services framework on top of Scala Play which makes really easy and suddenly stumbled upon the new Lagom framework and I'm wondering what's the added value of using it rather than the play…
SkyWalker
  • 13,729
  • 18
  • 91
  • 187
0
votes
1 answer

Using jersey filters in Lagom

Read the documents but couldn't find support for using jersey filters (ContainerRequestFilters, Filters etc). Can someone please some examples of using Jersey filters in lagom?
Jordan
  • 133
  • 1
  • 7
0
votes
1 answer

Lagom external Cassandra authentication

I have been trying to set up an external Cassandra for my Lagom setup. In root pom I have written http://ip:9042
tariq zafar
  • 659
  • 7
  • 24
0
votes
1 answer

Full example of Message Broker in Lagom

I'm trying to implement a Message Broker set up with Lagom 1.2.2 and have run into a wall. The documentation has the following example for the service descriptor: default Descriptor descriptor() { return named("helloservice").withCalls(...) //…
0
votes
1 answer

Lagom Server: java.lang.IllegalArgumentException

I am creating a module in lagom project. My module have only kafka consumer for consuming messages and store message events in cassandra. Thanks why, in my LagomApplicationLoader I am not defining any service and initialize lagomServer empty with…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
0
votes
1 answer

Lagom message durability between persistent actor and read processor

just wondering about the guarantee of the event notification delivery from the persistent event sourced actor to the read processor in lagom , is there any or there is no message durability for event notification to the read processor which will…
0
votes
1 answer

Lagom - Testing Service Call with Headers

I'm trying to follow the documentation here regarding "Handling headers." I can't figure out how to test service call invocation with headers. Normally, I would just do service.sayHello().invoke(...) I noticed that ServerServiceCall and…
ehaydenr
  • 240
  • 3
  • 13
0
votes
1 answer

Why did lagom throw java.lang.ClassNotFoundException: com.lightbend.lagom.internal.javadsl.api.broker.TopicFactoryProvider?

A previous attempt to run an initial lagom service failed after getting help on [getting a service listening][1]. So, on this attempt, a maven project (usvcs) has only two modules (actor-api and actor-impl) and a single service call 'echo'. public…
tevye
  • 47
  • 6
0
votes
1 answer

How to get 'mvn lagom:runAll' to get my service listening on a port?

I was having problems getting my first service to run and decided to add the hello-api and hello-impl projects from the lagom Maven archtype project to see if it would work. It did but mine do not. Background Since other team members are pure Java…
tevye
  • 47
  • 6
0
votes
1 answer

Simple Microservice framework

For a while I was looking for a fast and simple solution for a microservice framework. I am quite new to all Lightbend products & scala but since its looks very interesting I decided to give it a try. Few Questions: 1) I don’t understand why there…
angus
  • 3,210
  • 10
  • 41
  • 71
0
votes
1 answer

Parse Exception while loading bundle on to ConductR Sandbox (Windows)

I am trying to deploy a lagom micro-service on Lightbend ConductR sandbox, but it throws exception (related to configuration parsing) when I try to load the bundle. This step worked fine on a Ubuntu Machine with the same project. Here is the error…
0
votes
1 answer

I am not able to configure Docker VM for Lightbend ConductR. Sandbox init is throwing FileNotFoundError

I am trying out Lighbend's ConductR and currently stuck with setting up the sandbox. I followed the instructions given on their site but I am facing following error at the step "Configure Docker VM" - when I try to do sandbox…
0
votes
0 answers

classpathentry for lazy val project

in defining service description in lagom documents, I have defined a service as follow: lazy val userApi = project("user-api") .settings( version := "1.0-SNAPSHOT", libraryDependencies += lagomJavadslApi ) lazy val userImpl =…
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
0
votes
1 answer

sbt.ResolveException play-bootstrap-SNAPSHOT

I am trying to build this project for Eclipse. here are the errors that I have no clue what to do [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] …
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
0
votes
1 answer

How to create a new project with activator for Lagom

Just downloaded and installed the last version of the activator (1.3.10) following this guide. The location where I installed the activator distro is writable and activator-1.3.10/bin was added to my $PATH. Then, I tried to create a new project like…
j3d
  • 9,492
  • 22
  • 88
  • 172
1 2 3
21
22