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
1
vote
1 answer

How can I disable caching in Twitter Finagle?

It seems like the Twitter Finagle library uses caching when multiple calls are made to the same endpoint. Normally this would be fine, but it is bad for automated testing. Is there a cache, can I turn it off?
Jake Pearson
  • 27,069
  • 12
  • 75
  • 95
1
vote
1 answer

How does finagle kestrel cluster work

It says we can use the finagle ServerSet with Zookeeper to create a cluster. Should I use the finagle server builder to launch a kestrel cluster? Or the cluster can be built with finagle client only. What's the algorithm to distribute the queue in…
jordan
  • 711
  • 1
  • 8
  • 17
1
vote
2 answers

Is finagle 5.0 published in a Maven repository which I can add to my sbt.build (sbt11)?

I'm trying to use finagle in a Scala project and I'm wondering if there's a Maven repository out there which has the jars. I want to add it as a dependency and rather not compile all the stuff locally.
janschaf
  • 123
  • 5
0
votes
1 answer

SSlconfiguration exception on finagle upgrade

I recently upgraded to finagle-core 22.4.0 from 21.4.0 and see this while loading integration tests in the application. I use wiremock-standalone version 2.27.2. Netty version is 4.1.73.Final. How can I fix this issue? I am assuming it is related to…
user3310115
  • 1,372
  • 2
  • 18
  • 48
0
votes
1 answer

Print the JSON response from GET request in Finagle

I am trying to do a GET request and print the JSON response that I get back. The JSON response should look like this. { "request_status": "Success", "workflow_step": "End" } Here's my code: handle(GetStatus) { args: GetStatus.Args => …
asquare14
  • 33
  • 1
  • 6
0
votes
1 answer

Simple hello world api using finagle - Error: object twitter is not a member of package com import com.twitter.finagle.Http

Im really new to this microservice world and was trying to learn from scratch. But for some reason not able to call a simple dependency. Getting the error object twitter is not a member of package com import com.twitter.finagle._ SBT file, Ive…
ss301
  • 514
  • 9
  • 22
0
votes
1 answer

Return Twitter's Future within a certain duration

According to Twitter Util's Future documentation, Future.within() or .by() "Returns a new Future that fails if it is not satisfied before the given time". I was trying to use this, in Java, to return a (Future) String if getDownload() takes less…
0
votes
1 answer

Finagle KetamaShardingServiceBuilder is unknown

We're using finagle as a rest api and as we need to have some exotic loadbalancing we used Finagle's KetamaShardingServiceBuilder available in 19.3 I tried updating finagle version to 20.10 but the KetamaShardingServiceBuilder seems gone. No…
dr jerry
  • 9,768
  • 24
  • 79
  • 122
0
votes
1 answer

how to set response with camelCase in finatra

I need to return a json response in camelCase with finatra but it is in snake_case by default. From what I found so far, I need to use ObjectMapper, but I can't understand where do I pass it once I create it. An example would be very helpful. Here…
chibis
  • 658
  • 2
  • 12
  • 22
0
votes
1 answer

What's the best way to pass a common request identifier across a chain of Filter/Services for logging in Finagle/Scala?

We use a lot of Finagle Filters and Services in our code. However, we don't support Zipkin in our infrastructure. At times there's a need to trace an incoming request across the chain of Filters/Services, especially in the face of concurrent…
PhD
  • 11,202
  • 14
  • 64
  • 112
0
votes
1 answer

TwitterServer (Finch/Finagle) seems to block api call till it finishes its calculation

I'm setting up a new rest server using TwitterServer, and it seems to block a new api call, till a previous one be finished. Here is a simple modification of the basic code taken from the documentation at https://twitter.github.io/twitter-server…
eran
  • 21
  • 3
0
votes
2 answers

Is it possible to have generic decorators in TypeScript that could be chained per their input/output types?

For some of our integrations we have rather "templatized" implementations in our code base which can be conveniently put into the "pipe and filter" pattern IMHO. The "components" can be made to look like the following type(s): class Component1
PhD
  • 11,202
  • 14
  • 64
  • 112
0
votes
0 answers

Sharing connection pools between client instances in finagle

Given two or more finagle clients that have different destination names, if those names happen to resolve to the same inet address how to I get finagle to only maintain a single pool of connections to that endpoint? Overly Simple Sample Code The…
Matt
  • 722
  • 10
  • 20
0
votes
1 answer

Which of the listed .jar contains class 'com.twitter.finagle.stats.ExceptionStatsHandler'?

I have to use Finagle 6.35.0 for Scala 2.11 as a dependency. I made my project dependent on finagle-core_2.11-6.35.0.jar finagle-stats_2.11-6.35.0.jar. Error what I got: java.lang.ClassNotFoundException:…
luke
  • 3,435
  • 33
  • 41
0
votes
1 answer

cannot find symbol symbol: variable param location: class com.twitter.finagle.transport.Transport.Liveness

I'm using finagle scala library in my java code base. Below is the sample code from finagle written in scala code. import com.twitter.finagle.transport.Transport import com.twitter.finagle.{Http, Stack} val client = Http.client val…
user51
  • 8,843
  • 21
  • 79
  • 158