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
2 answers

Lagom PubSubRef subscriber drops messages

[Attention] The question is Lagom framework specific! In my current project, the problem with cutting the list of messages from Source to Kafka topic publisher has been observed when upstream is of high speed and looks like downstream can't handle…
0
votes
1 answer

Lagom - Could not find Cassandra contact points, due to: access denied

Could not find Cassandra contact points, due to: Access Denied. Your credentials could not be authenticated. Credentials are missing. Not sure how to fix this. I am trying to run the lagom sample online-auction-scala.
0
votes
1 answer

Lagom and inter-PersistentEntity references

In Lagom, aggregate roots [DDD] are each represented as a PersistentEntity. Is it possible for one PersistentEntity to resolve and hold a reference to a different PersistentEntity? I could not find any Lagom examples which illustrated that…
Robin Roos
  • 100
  • 8
0
votes
1 answer

Lagom service does not responding when it receives Source

I'm playing with Lagom and created service receiving Source as input and returning case class object: import akka.NotUsed import akka.stream.scaladsl.Source import com.lightbend.lagom.scaladsl.api.{Service, ServiceCall} import…
Mikhail Tsaplin
  • 642
  • 1
  • 9
  • 21
0
votes
1 answer

Lagom + LagomPlay - There is no started application

During val value = Play.current.configuration.getString("confKey") An exception or error caused a run to abort: There is no started application java.lang.RuntimeException: There is no started application
0
votes
1 answer

Get or inject Lagom application context LagomApplicationContext

Exist any way to get LagomApplicationContext? I would like to use play configuration object play.api.Configuration form playContext - composition: sealed trait LagomApplicationContext { /** * The Play application loader context. */ val…
0
votes
2 answers

Lagom: Caching external service call

I am implementing a Lagom service that calls an external service using the Joss client of Swift Stack. How can I cache this info in order to don't call the external service every time my service is called?
gilcu2
  • 343
  • 3
  • 13
0
votes
1 answer

Fetching a list with Lagom framework

I'm VERY new to Lagom framework and I have absolutely no idea what I'm doing. I have a simple CRUD lagom application that does work, but I can't figure out how to retrieve a list. So this is what I have for now, but I'm getting @Override public…
OguzGelal
  • 757
  • 7
  • 20
0
votes
0 answers

java.io.NotSerializableException using Apache Flink with Lagom

I am writing Flink CEP program inside the Lagom's Microservice Implementation. My FLINK CEP program run perfectly fine in simple scala application. But when i use this code inside the Lagom service implementation i am receiving the following…
Madiha Khalid
  • 414
  • 3
  • 15
0
votes
2 answers

Template not found for: -Dsbt.version 0.13.13 lagom/lagom-scala.g8

Good afternoon, I am trying to follow this hello world tutorial of lagom, however when running the command: sbt new -Dsbt.version=0.13.13 lagom/lagom-scala.g8 I get the following error: Template not found for: -Dsbt.version 0.13.13…
oskar132
  • 794
  • 2
  • 12
  • 32
0
votes
1 answer

Lagom insert direct stream of events (records) to Cassandra

I am new in Lagom and Persistence Entities Database concepts. I am building Streaming Analytics Engine. My each analysis will work as independent micro-service and for each individual micro-service according to its design philosophy the results will…
Madiha Khalid
  • 414
  • 3
  • 15
0
votes
1 answer

not able to create lagom scala project behind proxy

I am trying to create a new lagom scala project on windows 7 machine (behind proxy) but I get error message "org.eclipse.jgit.api.errors.TransportException: git://github.com/lagom/lagom-scala.g8.git: Connection time out" Here is the command : sbt…
0
votes
2 answers

write immutable code for storing data in listBuffer in scala

I have the below code where I am using a mutable list buffer to store files recieved from kafka consumer , and then when the list size reached 15 I insert them into cassandra . But Is their any way to do the same thing using immutable list. val…
Piyush_Rana
  • 305
  • 3
  • 15
0
votes
2 answers

Lagom Cassandra read before update

This is specific to Lagom Framework. During an update I do not have the complete data, I have a few alternate tables which needs to be updated as well, how do I do a read from my main table, so I have all they keys to perform an update on alternate…
Amar
  • 11
0
votes
1 answer

Lagom + akka-http integration

What is the simplest solution to integrate Akka HTTP service with / into Lagom? I have two services - akkahttp:8000 and lagom:9000, they are serving methods for Angular application. It would be great to have one endpoint for all the services -…
Etam
  • 4,553
  • 10
  • 40
  • 60