Questions tagged [akka-http]

The purpose of the Akka HTTP layer is to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an Actor-based toolkit for interacting with web services and clients.

The purpose of the Akka HTTP layer is to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an Actor-based toolkit for interacting with web services and clients.

More Info:

1489 questions
-1
votes
1 answer

How to unit test OAuth2BearerToken in route header in akka http

i have a route which needs an access token in its header to grant access to it for that i have this working code def accessProtectedResource: server.Route = path("access-protected-resource") { get { bearerToken { token => …
swaheed
  • 3,671
  • 10
  • 42
  • 103
-1
votes
1 answer

Scala shutwodn akka-htpp server with post method

Don't understand why I can't off akka-http server. Have the next code: path("api" / "system" / "shutdown") { logger.warning("shutting down insights application") appLifecycle.shutdown() complete(JsObject(Map("status" ->…
-1
votes
1 answer

Best way to scale scala + akka microservices?

We are planning to create few new microservices as part of our platform. Currently all our microservices are Java-Spring based, and we use docker/kubernetes to scale. We are now planning to evaluate Scala-Akka to create microservice. Any pointers…
Anuj Mehra
  • 320
  • 3
  • 19
-1
votes
1 answer

Akka-http vs Akka-Remoting

I am new to the Akka world and want to learn what is the difference between Akka-Remoting and Akka-HTTP. Is one better than the other in terms of security or maintenance? What are the things that should be considered when implementing one of them?
-1
votes
1 answer

Returning a JSON array in Akka Http

I have an Akka HTTP server with routing defined like this: case class FooResults(results: Seq[Tuple2[String, Tuple2[Double, Double]]]) object MainApp extends App with JsonSupport { ... lazy val routes: Route = pathPrefix("foo") { …
peidaqi
  • 673
  • 1
  • 7
  • 18
-1
votes
1 answer

Is there any issue will rise if am going to use post HTTP method for all CRUD operations

Is there any issue will rise if am going to use post method for all CRUD operations in Akka HTTP services. why we need to use separate HTTP method for CRUD operations.
sekhar
  • 175
  • 2
  • 13
-1
votes
2 answers

Akka-HTTP template not found

I am using sbt to create an akka-HTTP project. The command I am using is "sbt new https://github.com/akka/akka-http-java-seed.g8." But it says Template not found for: https://github.com/akka/akka-http-java-seed.g8. What shall I do?
-1
votes
1 answer

how can i run my scala code coverage fully

my scala code coverage report was 0.00% (Akka-HTTP microservices) and my report is [info] Statement coverage.: 0.00% [info] Branch coverage....: 0.00% [info] Coverage reports completed [info] All done. Coverage was [0.00%] how can i run the my code…
newbie
  • 456
  • 1
  • 6
  • 17
-1
votes
1 answer

Transform Future into class or Map

I have a class ClassName(id:String, etc:String, long:Long) And a function that returns that object from the DB as Future[Option[ClassName]] I want to get transform that result (the Future[Option]) as, either a class with it's values, or a…
Javier Bullrich
  • 389
  • 1
  • 5
  • 22
-1
votes
1 answer

How to avoid saturation in Akka HTTP (latency spikes)?

I have a akka-http (Scala) API server that serves data to a NodeJS server. In moments after startup, everything works fine, everything is fast. Latency is low. But suddenly, latency increases fastly. The API no longer responds, and the website…
Manuel D.
  • 76
  • 5
-1
votes
1 answer

How can i load two level routing in High Server Http Akka using Java?

I'm trying to work with akka Http with Java. I would like to load a route that look like this : hello/world On my HttpApp, I tried: return route( path("hello/world", () -> get(() -> …
Federico Saenz
  • 512
  • 1
  • 6
  • 21
-1
votes
1 answer

How to read whole HttpResponse body as a String with Akka-Streams HTTP

I hava written a akka http client example,but i can not read HttpResponse body as a String,my code is below: import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.http.scaladsl.model.{HttpResponse, HttpRequest} import…
leoluan
  • 33
  • 6
-1
votes
2 answers

Why can I not pickle my case classes? What should I do to solve this manually next time?

Edit 2: Observations and questions I am pretty sure along with the commenter below Justin that the problem is due to an errant build.sbt configuration. However, this is the first time I have seen an errant build.sbt configuration that literally…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
-2
votes
2 answers

how to use future value inside an akka actor

i want to use akka actors in parent child hierarchy where the parent can send the final computed result to the calling code which may/may not be an actor here is my use case parent->child->childManager childManager has three worker actor (3…
swaheed
  • 3,671
  • 10
  • 42
  • 103
-2
votes
1 answer

Cannot cast scala.concurrent.impl.Promise$Transformation to scala.collection.immutable.Seq erro in akka http using mongodb?

Basically I trying to get data from database using akka http. if i pass (EmployeeRepo.findAll()) directly in api then it show all data but while using actor it shows cast error.... here problem for data fetching only please solve it this is my…
1 2 3
99
100