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

Twitter Finagle open too many files

I use Twitter-Finagle create a server. In each RPC function of the server, Just use a Finagle client to call another server's RPC. like this: def rpc() = { // finagleClient is created in a std way according to Finagle's Doc: // val client =…
hliu
  • 1,015
  • 8
  • 16
0
votes
1 answer

Finatra - unable to update cookie

I am trying to update a cookie in finatra like this: import com.twitter.finatra.Request import com.twitter.finagle.Cookie def updateCookie(req:Request, cookieName:String, newVal:String) = { // I tried also: //…
TheHube
  • 752
  • 1
  • 10
  • 23
0
votes
1 answer

Scala distributed execution of function objects

Given the following function objects, val f : Int => Double = (i:Int) => i + 0.1 val g1 : Double => Double = (x:Double) => x*10 val g2 : Double => Double = (x:Double) => x/10 val h : (Double,Double) => Double = (x:Double,y:Double) => x+y and for…
elm
  • 20,117
  • 14
  • 67
  • 113
0
votes
1 answer

Direct ByteBuffers in Thrift with Finagle

We currently use thrift server for our RPC. One of the calls we wish to support wants to return the result of reading a file into a direct ByteBuffer. THRIFT-883 says this isn't supported (cause the ByteBuffer.array() isn't supported), so was…
ekaqu
  • 2,038
  • 3
  • 24
  • 38
0
votes
1 answer

Finagle + Memcached codec poor performance

I'm using memcached codec in a finagle application. But the performance is very poor, way worse than using spymemcached client. I got 8k req/s with spymemached and 10 req/s with finagle's memcached codec. The memcached is running in my machine too.…
0
votes
1 answer

How to remove cookies on Finatra?

How do I remove a cookie after processing the request and building the response? I have tried the following code, but it does not seem to work: get("/login") { request => val message = request.cookies.get("flash-message").map(_.value) …
alcarv
  • 889
  • 6
  • 15
0
votes
1 answer

Issue while installing twitter zipkin

I am trying to install zipkin, after following the steps given (https://github.com/twitter/zipkin/blob/master/doc/install.md), when I access http://localhost:8080/ on the web browser, instead of the zipkin UI, it gives, *Channel Exception* at remote…
Aman Jain
  • 3
  • 2
0
votes
1 answer

Scala/Java HTTP parse POST data form-encoded arrays

I use Finatra. If I send POST data of the kind application/x-www-form-urlencoded; charset=UTF-8 where the data is of the kind options[0][name]:option1 options[0][value]:1 options[1][name]:option2 options[1][value]:2 what is a good way to get a…
Jibi Abraham
  • 4,636
  • 2
  • 31
  • 60
0
votes
1 answer

gevent: composing greenlets in series

In Twitter's Finagle, map and flatMap can be used to chain multiple asynchronous operations. For example, a simple web scraper might do something like, downloadURL(url) // download a web page .flatMap(extractProducts) …
duckworthd
  • 14,679
  • 16
  • 53
  • 68
0
votes
1 answer

Hardware importance on asynchronous JVM server performance

I am running a Finatra server (https://github.com/capotej/finatra) which a sinatra inspired web framework for scala built on top of Finagle (an asynchronous RPC system). The application should be design to receive something between 10 and 50…
Benoit Guigal
  • 838
  • 1
  • 10
  • 24
0
votes
1 answer

JVM consuming 100% of one CPU

We have an application runing on Ubuntu Server 12.04 and java. java -version return : java version "1.7.0_40" Java(TM) SE Runtime Environment (build 1.7.0_40-b43) Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode We have other…
Loic
  • 1
0
votes
2 answers

How to use Fingale futures to an existing Restful webservice

I have a webservice running on jboss server. I can't change it to netty because i'm using other features of jboss. But i want to use finagles futures from the client. Is there a way ?
Tejas
  • 17
  • 4
0
votes
1 answer

Finagle client handle onConnected event

I'm trying to build async client for some tcp service. Service requires handshake. When initial connection is established I can make handshake, but if connection fails and finagle reconnects i have no way to make handshake again. Is there a way to…
frx
  • 492
  • 5
  • 15
0
votes
1 answer

Memcached cluster with Finagle

How can I build a cluster of memcached server and access it with finagle. ct Looks like ServerSet with ZooKeeper can be used to build a cluster. But I have several questions. 1 What's the algorithm to distribute the key to the memcached servers in…
jordan
  • 711
  • 1
  • 8
  • 17
0
votes
2 answers

Save object to memcached with Finagle memcached client

com / twitter / finagle / memcached / Client extends BaseClient[ChannelBuffer] so the set is defined as set(key: String, flags: Int, expiry: Time, value: ChannelBuffer): Future[Unit] My question is how can I convert my java Object to a netty…
jordan
  • 711
  • 1
  • 8
  • 17
1 2 3
11
12