Questions tagged [finagle]

Finagle is an open source network stack from Twitter that you can use to build asynchronous Remote Procedure Call (RPC) clients and servers in Java, Scala, or any other JVM-hosted language.

Finagle, created by Twitter, is an open source network stack for the JVM that you can use to build asynchronous Remote Procedure Call (RPC) clients and servers in Java, Scala, or any other JVM-hosted language.

See the user guide and source code for more information.

Questions about the design of Finagle or the status of related projects are likely to find better answers over at the Finaglers mailing list.
Questions about implementation details, finagle libraries, best practices and how-to's can be found in the finaglers google group.

167 questions
0
votes
0 answers

Converting Guava futures to Twitter ones

I have a Finatra application that accesses Cassandra using Datastax driver which produces Guava Futures. The conversion is done by following code import com.google.common.util.concurrent.{FutureCallback, Futures, ListenableFuture} import…
synapse
  • 5,588
  • 6
  • 35
  • 65
0
votes
1 answer

Finatra TooLongMessageException HTTP content length exceeded 5242880 bytes, despite flag setting more bytes

I'm seeing a TooLongMessageException HTTP content length exceeded 5242880 bytes. exception thrown from my finatra server. Looking at the flags available via -help=true, it looks like the flag to set is maxRequestSize. Here is the output of the help…
Clayton
  • 325
  • 5
  • 12
0
votes
0 answers

Get Header from Post Request - Finch (Finagle)

So here is my code: post((name :: stringBody) :+: headerOption[String]("AMI-WS-Header")) { (body: String, amiHeader: String) => val response: HttpResponse[String] = Http(url + name).headers( if (name == "login") Map("Content-Type" ->…
Adifyr
  • 2,649
  • 7
  • 41
  • 62
0
votes
1 answer

no suitable method found for configured finagle in Java code

I've Java polyglot application which mainly has Java code and uses few Scala libraries as well. The Scala below code compiles fine. import com.twitter.finagle.Http.Client import com.twitter.finagle.Http import…
user51
  • 8,843
  • 21
  • 79
  • 158
0
votes
1 answer

Scala 2.12 interop with java 1.8 doesn't compile for twitter finagle code

I've Java polyglot application which mainly has Java code and uses few Scala libraries as well. The Scala below code compiles fine. import com.twitter.finagle.{Http, Service} import com.twitter.finagle.http.{Request, Response} import…
user51
  • 8,843
  • 21
  • 79
  • 158
0
votes
1 answer

Finagle Thrift NoSuchMethodError

I´m using Finagle thrift but when I build the server and service val service = new EchoService$FinagleService(new EchoServiceImpl, new TBinaryProtocol.Factory()) val server = Thrift.server.serveIface("localhost:8080", service) And I run it I…
paul
  • 12,873
  • 23
  • 91
  • 153
0
votes
1 answer

Finatra IntegrationTest failed with "object TwitterModule is not a member of package com.twitter.inject"

I got a problem when implementing IntegrationTest with Finatra on Scala. I'm just following their official docs for early implementation, but I got error [error] D:\Workspace\OpenSource\kanca-api\src\test\scala\io\kanca\GraphTestModule.scala:4:8:…
Andi N. Dirgantara
  • 2,050
  • 13
  • 20
0
votes
1 answer

Finch: how can i define Endpoint with param in the middle

i am trying to define an Endpoint with param in the middle. something similar to: get("foo" :: param("id") :: "goo") so, i can call it with the following rest call: http://mydomain/foo?id=99/goo but, for some reason, it doesn't work. any idea…
eran
  • 21
  • 3
0
votes
1 answer

Finagle server dont ready after start

I have a Finagle server which apperently there´s no way to know when is rerally up. Having this code esbMockServer = Some(defaultServer .serve(s"localhost:$esbPort", esbService)) println(s"Running Finagle Regular Esb Mock Server in…
paul
  • 12,873
  • 23
  • 91
  • 153
0
votes
1 answer

Finch Hello World Error: Http not a member of com.twitter.finagle

I'm trying to use the scala finch library to build an API. I have the following simple code: package example import io.finch._ import com.twitter.finagle.Http object HelloWorld extends App { val api: Endpoint[String] = get("hello") { Ok("Hello,…
James
  • 3,957
  • 4
  • 37
  • 82
0
votes
1 answer

Finagle resolver example

I've been looking Tweeter finagle technology, and I'm looking forward to see how Resolver it's applyied https://twitter.github.io/finagle/docs/com/twitter/finagle/Resolver.html Can anybody please point me to a blog/github project with examples of an…
paul
  • 12,873
  • 23
  • 91
  • 153
0
votes
1 answer

Empty metrics in TwitterServer

I'm trying to run a simple TwitterServer with implementation from https://twitter.github.io/twitter-server/Features.html After several requests to the http://localhost:9990/echo I haven't see any metric in http://localhost:9990/admin/metrics. After…
St.
  • 521
  • 3
  • 8
0
votes
1 answer

Errors when sending data in body using Finagle/Finch in Scala

I am using Finagle/Finch and I get this error: diverging implicit expansion for type argonaut.DecodeJson[A] starting with method MapDecodeJson in trait DecodeJsons diverging implicit expansion for type argonaut.DecodeJson[V] starting with…
James Black
  • 41,583
  • 10
  • 86
  • 166
0
votes
1 answer

Can you define a dependency alias in sbt

Recently the Finagle library started depending on a custom fork of libthrift as "com.twitter" % "libthrift". The regular one is "org.apache.thrift" % "libthrift". Both contain the same classes in the same package. While it is possible to manually…
reikje
  • 2,850
  • 2
  • 24
  • 44
0
votes
1 answer

How to specify a request parameter as Json type

I am creating a Finch endpoint which expects a Json. URL - LogBundles/Long JSON Message/Process I am using json4s library for Json parsing How do I specify the body as type json Or how do I pass a Json value between LogBundles and Process? I…
Prateek Mane
  • 111
  • 1
  • 9