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 to get this finagle example to work?

I have been looking at some finagle tutorials. I found this code for a simple server, but I can not get it to work. Should Service be specified with type so that it is possible to find the type of serve? Code: import com.twitter.finagle.{Http,…
stian
  • 1,947
  • 5
  • 25
  • 47
1
vote
1 answer

Can I apply filters server-side for finagle-thrift?

I'm trying to write a finagle-thrift service that applies filters in the server. finagle-thrift generates a service interface (Iface) from the thrift IDL that you implement and then pass to the Thrift.serveIface(addr, Iface) method. There is another…
postfuturist
  • 22,211
  • 11
  • 65
  • 85
1
vote
0 answers

How do I start a thrift server in Scala?

I have a thrift service implemented in scala that I would like to serve. I'm using scrooge with finagle for the server. It seems to be running fine, however, whenever I try to connect a client and actually do an RPC, the client and the server seems…
spearmunkie
  • 21
  • 1
  • 7
1
vote
1 answer

How to limit the connections number Finagle creates?

I use Finalge https://twitter.github.io/finagle/ to test the timeout case like this: Server side: in the RPC definition, Just sleep 10 secs and return. Client side: call RPC function using within like within(50.milliseconds) onSuccess { ... }…
hliu
  • 1,015
  • 8
  • 16
1
vote
1 answer

Traits not implemented in finagle service

I have a simple finagle service as follows: import com.twitter.finagle.{Http,Service} import com.twitter.util.{Await, Future} import java.net.InetSocketAddress import org.jboss.netty.handler.codec.http._ import…
sc_ray
  • 7,803
  • 11
  • 63
  • 100
1
vote
1 answer

concurrent requests limit of Twitter-Finagle

I create a thrift server using Finagle like this val server = Thrift.serveIface(bindAddr(), new MyService[Future] { def myRPCFuction() {} }) But, I found that the maximum number of concurrent requests is five( why 5? when more than 5, the server…
hl1020
  • 529
  • 5
  • 11
1
vote
2 answers

Twitter Finagle client: How to make external REST api call?

I'm trying to make an external (to finagle server) REST GET request in my finagle code, the URI for is: http://service.site-dev.com/subservices/list I'm using the client code found in the example at :…
pl0u
  • 365
  • 7
  • 16
1
vote
1 answer

Advantage of asynchronous libraries

I was going through the twitter finagle library which is an asynchronous service framework in scala and I have some question regarding asynchronous libraries in general. So as I understand, the advantage of an synchronous library using a callback…
Piyush
  • 321
  • 2
  • 13
1
vote
0 answers

Finagle using load balancing across custom Services

Unfortunately all documentation on Finagle only shows examples of using ClientBuilders to build clients. If I have a Set of Services, is it possible to add load balancing and fail-fast capabilities to it and combine them in one Service this way? I…
user3489275
  • 401
  • 4
  • 8
1
vote
1 answer

finagle in java - Function, Function1 etc

How do I create Function1 object for use in flatMap method of finagle's Future object in Java? Tried this: Function1 f = new Function1() { @Override public String apply(String s) { return null; …
user3489275
  • 401
  • 4
  • 8
1
vote
2 answers

Server .codec(Http()) not working as specified in example code

I am attempting to try out Finagle for the first time. I am new to Scala, so this question may seem easy to many of you. I pulled 6.10.1-SNAPSHOT from GitHub, and attempted to implement the Robust Server example shown in the docs. The imports were…
JohnC
  • 61
  • 4
1
vote
1 answer

How to convert a Twitter Future[Map[A, Future[C]]] to a Future[Map[A, C]]

I am trying to fix the following issue: I have a Future[Map[A, B]]. For all B, I need to apply a method that convert B to a Future[C] and I want to give back a Future[Map[A, C]] Here is the code I have so far: def getClients(clientIds: Seq[Int]):…
snessarb
  • 85
  • 1
  • 1
  • 6
1
vote
1 answer

Error when generating thrift files contains Union using scrooge

I generate a thrift server with twitter's scrooge,all runs well, but if I include a union type in thrift file, the generating process fails: [error] Exception in thread "main" com.twitter.scrooge.ParseException: [13.1] failure: string matching regex…
DiveInto
  • 2,158
  • 3
  • 27
  • 50
1
vote
1 answer

How to use a Filtered Service with RoutingService in Finagle

Fair warning, I'm new to Scala, so I could be missing something simple here. I have this code, it works great import java.net.InetSocketAddress import com.twitter.finagle.builder.Server import com.twitter.finagle.builder.ServerBuilder import…
eric
  • 2,699
  • 4
  • 29
  • 40
1
vote
1 answer

What compares to Finagle and Akka in the ruby world?

I was reading up on Finagle and Akka, and was wondering if there are any similar frameworks in the ruby world?
Jim Soho
  • 2,018
  • 2
  • 21
  • 25