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

Finch: not enough arguments for method 'toService'

I've made a pretty simple rest-method using Finch and Finagle: val getUsers:Endpoint[List[User]] = get("users") {Ok(getAllUsers())} Http.serve(":8080", getUsers.toService) and got this error: Error:(50, 32) not enough arguments for method…
NikitaAbrosimov
  • 127
  • 1
  • 8
5
votes
3 answers

Write a thrift server in scala using scrooge and client in python or ruby

I want to write a thrift service implementation in Scala (using Scrooge) but without the use of Finagle, since I couldn't write a ruby/python client for Finagle servers. The problem is that with scrooge the service doesn't seem to implement…
Ahmed Farghal
  • 1,294
  • 11
  • 17
4
votes
1 answer

Finagle thrift client server implementation in Java using Netty

Was just going through Finagle homepage "http://twitter.github.com/finagle/". It says we can write java implementation of netty with thrift using Finagale. I tried searching for examples for the same, but couldn't find one. All examples are in…
surbhi
  • 41
  • 1
  • 3
4
votes
1 answer

com.twitter.util.Await doesn't raise a com.twitter.util.TimeoutException

I expect that this code will raise a TimeoutException, but it doesn't. What do I do wrong? import com.twitter.conversions.time._ import com.twitter.util.{Await, Future} object Tmp { def main(args: Array[String]): Unit = { Await.result( …
Alexander Ershov
  • 1,105
  • 2
  • 12
  • 26
4
votes
1 answer

Logging the remote host in Finagle

I'd like to log the called remote host to STDOUT when using Finagle Client. But as far as I see this is not possible via com.twitter.finagle.http.filter.LoggingFilter; Its #format (example see below) method cannot access the actual…
jonas
  • 185
  • 8
4
votes
1 answer

How to make proper https request using Finagle to Telegram API

Currently i working at simple bot that will have a telegram interface. The problem is, that finagle have means to make http request, but i have no clue how to make https request. I tried to make https request with scala-library finagle to telegram…
Iva Kam
  • 41
  • 3
4
votes
1 answer

Redis - integer list

How do I push integers with lpush in a redis list type? I want to test my finagle-redis client if it works correctly and insert manual sample data into redis like this 127.0.0.1:6379> rpush key:214 1 1 1 (integer) 3 127.0.0.1:6379> LRANGE key:214 0…
Muki
  • 3,513
  • 3
  • 27
  • 50
4
votes
2 answers

finagle-websocket server example doesn't dies without blocking on listening

I'm a beginner with Finagle. Today I tried to put together a hello world with finagle-websocket, but I can't understand why, when I run it, it doesn't block listening and dies. TestWS.scala: package foo.bar import…
sscarduzio
  • 5,938
  • 5
  • 42
  • 54
4
votes
1 answer

How to host static resources in finagle

I am trying to host static resources, like javascript and css files, in finagle. I've managed to get it to work, but I have to specifically configure every route to a resource folder in my routing service. For example: def…
eric
  • 2,699
  • 4
  • 29
  • 40
4
votes
0 answers

Write a thrift server in scala using scrooge without Finagle

I knew the same question asked here Write a thrift server in scala using scrooge and client in python or ruby client-in-python-or-ruby, but no answer for "how to start a service without using finagle".
Bewang
  • 453
  • 3
  • 18
4
votes
1 answer

How to call a scala function from php?

Is there any method to call a Scala function from PHP other than Thrift service? Initially I tried the Thrift service but the problem is, it works some times and some times it doesn't. Is there any easy solution to this problem? The code below is my…
yAsH
  • 3,367
  • 8
  • 36
  • 67
4
votes
3 answers

Finagle Future objects, are they reusable?

I'm a newbie in Finagle. I'm now reading someone's code and found that a Future object is reused in different join operations. My question is will that cause the Future object to be executed multiple times (in each join), or will it only execute…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
3
votes
2 answers

How to set up a scala project in IntelliJ IDEA that uses git libraries

I would like to give IntelliJ IDEA a try, but I have no idea how to get going. I am simply trying to create a new project that uses Finagle Echo Server, hosted on github, as starting point. Assuming I'm starting with a clean install on Mac. I…
Jack
  • 16,506
  • 19
  • 100
  • 167
3
votes
0 answers

Scala Design Question - Unify 3 similar endpoints to retrieve from database

I'm designing a Scala service which has 3 endpoints which are very similar - a. getUserByUserID(userIds: List[UserID]): List[User] b. getUserByEmployeeID(employeeIDs: List[EmployeeID]): List[User] c. getUserByDepartmentID(departmentIDs:…
CodeSsscala
  • 729
  • 3
  • 11
  • 23
3
votes
0 answers

Finagle and load balancing

I have seen in many places that Finagle has service discovery and load balancing capabilities, but I cannot find any reference to actual detailed implementation. How does Finagle client get the address of the Service Discovery? How is such a service…
Mr.Eddart
  • 10,050
  • 13
  • 49
  • 77
1
2
3
11 12