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

ChannelClosedException - Upstream Address: Not Available

Our scala/thrift service is using twitter finagle 2.12-18.10.0 with java8. The Service is working fine for single request or handful of requests but when we try to hit the service with lot many requests we are…
Ashish Garg
  • 101
  • 1
  • 7
3
votes
0 answers

Writing a testable Finagle Resolver

I'd like to test a Finagle Resolver properly. Let's get a sample code: import com.twitter.finagle.{Addr, Address, Resolver} import com.twitter.util._ class DummyResolver extends Resolver { override val scheme: String = "sample" override def…
Alban Dericbourg
  • 1,616
  • 2
  • 16
  • 39
3
votes
1 answer

Finagle + Thrift: Count method invocations

I’m working on a system of microservices, implemented in Scala with Finagle and Thrift as the platform. As there are a few services that nobody touched for a while, I need to find out if they are used at all anymore (or rather, which parts are not…
Andreas Wolf
  • 995
  • 6
  • 19
3
votes
1 answer

Failure retries with Finagle

I'm struggling with Finagle client retries. For some reason, client doesn't retry failed requests in test, even though I use a custom classifier, which should mark any response code other than 200 as RetryableFailure. I have tried bulding client…
stefkin
  • 679
  • 7
  • 19
3
votes
1 answer

Finagle quickstart client

I have a bare sbt project to which I have added "com.twitter" %% "finagle-http" % "6.33.0". I am following the quickstart guide for Twitter Finagle. The code I have is a direct copy-paste: import com.twitter.finagle.{Http, Service} import…
EthanP
  • 1,663
  • 3
  • 22
  • 27
3
votes
2 answers

How do I close a Finagle Thrift client?

I'm using scrooge + thrift to generate my server and client code. Everything is working just fine so far. Here's a simplified example of how I use my client: private lazy val client = Thrift.newIface[MyPingService[Future]](s"$host:$port") def…
Chris Eberle
  • 47,994
  • 12
  • 82
  • 119
3
votes
1 answer

Disable http in finatra app

I am deploying a Finatra app to Heroku. Thanks to Twitter guys together with Heroku this is a very easy task. The thing is that Heorku gives you https out of the box (if im trying to reach my service through https it just works). Nevertheless it…
Gal
  • 371
  • 2
  • 14
3
votes
3 answers

Integrating Scala app with NewRelic Java Agent

I want to integrate a Scala app (Kestrel, http://robey.github.com/kestrel) with NewRelic using java agant but failed with error sh scripts/devel.sh Starting kestrel in development mode... Mar 28, 2013 18:15:15 +0800 NewRelic 1 INFO: Agent is using…
Ryan
  • 10,041
  • 27
  • 91
  • 156
3
votes
1 answer

Persistent authentication with finagle

I'm developping a turn by turn strategy game and I'm trying to do the multiplayer part. I never did anything similar but I received strong advice to use rpc. My multiplayer games will be hosted on a main server, and basically the player send what he…
Atol
  • 569
  • 4
  • 12
2
votes
1 answer

jQuery Ajax call to Twitter Finagle server

I'm struggling getting the JSON string that was sent from a web page to my server. In the web page, I do the following: $.ajax({ type: "POST", url: url, data: JSON.stringify(formData), contentType: "application/json;…
Jack
  • 16,506
  • 19
  • 100
  • 167
2
votes
1 answer

Sending e-mail and SMS from Scala using Heroku and Ubuntu server

I'm creating a simple HTTP proxy that will sit between mobile apps and a backend SOAP server. The proxy server will be wrapped in a filter that sends e-mail and sms notifications when discovering certain types of messages. I've decided to use Scala,…
Jack
  • 16,506
  • 19
  • 100
  • 167
2
votes
1 answer

Twitter Future blocking

Someone can explain me why the behavior of Twitter future is not Async? Having this code private val future: Future[String] = Future { Thread.sleep(2000) println(s"Running this effect in ${Thread.currentThread().getName}") "Hello from…
paul
  • 12,873
  • 23
  • 91
  • 153
2
votes
1 answer

What is the maximum number of outgoing HTTP connections a JVM app can make?

I have a Scala application that uses Finagle HTTP Client to make as much as 2k requests per second each to 10 external HTTP APIs behind proxy. I have configured the connection pool size per external host to 2000*10 (10s is request timeout) but I'm…
Vigneshwaran
  • 3,265
  • 6
  • 23
  • 36
2
votes
0 answers

How does one get all query params from within a endpoint?

I'm writing a toy finch project and trying to allow requests to specify arbitrary query parameters to set some value. I am able to retrieve the value for a known parameter name (i.e. param[String]("foo")) but how can I get a Map[String,String] of…
BWStearns
  • 2,567
  • 2
  • 19
  • 33
2
votes
1 answer

java.lang.IllegalArgumentException: Failure parsing Toggle config resources when updating Scala version from 2.11 to 2.12

I have maven project with Scala and java. We are using twitter finagle library version 18.9.0. The current version of scala is 2.11.11 and I want to update the version to 2.12.6. When I compile the program now I get the below…
user51
  • 8,843
  • 21
  • 79
  • 158
1 2
3
11 12