Finagle blog

Featuring announcements, release notes, and posts by the Finagle team and Finagle adopters outside of Twitter.

🌻 Spring Planning 🌻

Posted by Kevin Oliver on March 20, 2017

The team working on Finagle, Finatra, and related libraries met last week and did our planning for the next three months. These are high-level goals and as such, have varying degrees of confidence and certainty.

In the spirit of Spring cleaning:

... Read more...

Finagle 6.41 Release Notes

Posted by Jillian Crossley on December 23, 2016

As the year ends, we’ve got an exciting new release for you! Here’s a quick rundown of what we’ve been up to.

Scala 2.12 Support is Here

Finagle, Util, Ostrich, Scrooge, and Twitter-Server are all now cross-compiled for Scala 2.11 and 2.12(!)

Dynamic...

Read more...

Farewell, maven.twttr.com!

Posted by Bryce Anderson on November 29, 2016

Historically Finagle has depended on a forked org.apache.thrift libthrift version 0.5.x, which happens to not be published to the Central Repository. We have published the artifact to maven.twttr.com, but this requires users to add the maven.twttr...

Read more...

Finagle Block Party

Posted by Kevin Oliver on September 1, 2016

💔 SPOILER ALERT: you do not want to go to this party 💔

Blocking Finagle’s event loop via calls to Await.result or Await.ready will cause your application to experience unexpected slowness, a decrease in throughput, and potentially deadlocks. Find...

Read more...

Finagle 6.36 Release Notes

Posted by Vladimir Kostyukov on July 8, 2016

This is Finagle’s first release only for Java 8 and Scala 2.11. Since the previous release, the team has been focusing on the Netty 4 migration as well as eliminating some technical debt.

Towards Netty 4

The team is firing on all cylinders towards...

Read more...

Hello AsyncStream!

Posted by Moses Nakamura on February 15, 2016

tl;dr AsyncStream is replacing Spool.

Big shoutout to Neuman Vong, who designed and built AsyncStream soup to nuts ✧٩(•́⌄•́๑)

We know and love Spool, the Twitter util tool for asynchronous object streaming. The main advantages of asynchronous stream...

Read more...

Make application errors great again

Posted by Kevin Oliver on February 9, 2016

make application errors great again

Finagle’s new response classifiers improve client’s avoidance of faulty nodes thus increasing your success rate. To get this benefit, you must wire up the application’s rules into your clients and how to do so is explained below.

First, a pop...

Read more...

Retry Budgets

Posted by Kevin Oliver on February 8, 2016

Ever had your service attacked by a retry storm from your clients? Or your clients’ clients? Or has your service ever been the attacker in one of those situations?

Thought so.

To help you avoid this, in release 6.31 we’ve introduced the notion of...

Read more...

Finagle 6.33 Release Notes

Posted by Vladimir Kostyukov on February 5, 2016

In this milestone, we’ve been focusing on two major directions:

  1. Improving the user experience by providing friendly APIs and updating docs
  2. Continuing to improve Finagle’s resiliency

Discoverable Params

There is a new user-friendly API for configuring...

Read more...

Lightning talks at FinagleCon

Posted by Travis Brown on July 29, 2015

FinagleCon is just over two weeks away, and we’re looking for a few attendees who are interested in giving lightning talks to kick off the afternoon. The talks will be capped at five minutes and can be on a wide range of Finagle-related topics: how you’re using Finagle, suggested changes, far-fetched experiments, integration with other libraries or tools, etc. Read more...

SSL now supported for maven.twttr.com

Posted by Travis Brown on July 16, 2015

Most of Twitter’s open source projects for the JVM are published to Maven Central, but for various reasons a few are still published to maven.twttr.com, a Maven repository that is hosted by Twitter. While Finagle itself is in Maven Central, some of its subprojects and some Finagle-related libraries and tools require dependencies from maven.twttr.com.

We’re actively working to eliminate the need for this separate repository, but we don’t have a definite timeline for moving everything to Maven Central, and so this week we have enabled secure access to the repository, which was previously only available over unsecured HTTP. Read more...

Announcing FinagleCon 2015

Posted by Travis Brown on June 11, 2015

Yesterday we opened registration and the call for participation for FinagleCon, a new annual conference for the Finagle community. This year’s conference will be a Scala by the Bay event hosted at Twitter HQ in San Francisco, and will take place on Thursday, August 13, the day before Scala by the Bay begins.

Scala by the Bay logo

The conference program will include keynotes by Twitter’s Marius Eriksen and SoundCloud’s Phil Calçado, talks by Finagle adopters and contributors, and workshops and tutorials on a range of Finagle-related topics (including Finatra and Finch). Read more...

Finagle services made simple with Serial

Posted by Travis Brown on February 6, 2015

Most internal services at Twitter speak the Thrift protocol, which provides many benefits—once you’ve defined your data types and service interfaces, for example, it’s possible to create bindings for a wide range of programming languages, and Twitter’s Scrooge in particular makes it easy to create high-performance Finagle servers and clients for your Thrift interfaces.

In some cases, though, it would be more convenient not to have to worry about things like interface description files, the build system plugins necessary to generate bindings from them, etc. In particular, being able to define Finagle services that take arbitrary types as inputs and outputs in a Scala REPL would make writing tutorials and quickstart projects much more straightforward, and would enable easier experimentation with other parts of the Finagle API. Read more...

Purely Functional REST APIs with Finch

Posted by Vladimir Kostyukov on December 10, 2014

At Konfettin we decided to build a REST API backend using a Finagle stack. While it’s possible to do that using pure Finagle abstractions, we ended up writing the Finch library to simplify things and get more suitable building blocks. And it worked well: we shipped the product and got the customers. This library has been running in production for about six months so far and it’s pretty stable and well-tested. This post gives an overview of Finch: explains its core design principles and use cases. Read more...

New and upcoming Finagle examples

Posted by Travis Brown on October 30, 2014

Part of my role as an open source advocate for Scala projects at Twitter involves talking to developers outside of Twitter about how we can make our open source projects more widely useful and accessible, and one of the most common requests for Finagle is for more introductory tutorials and examples.

One of the steps we’re taking in this direction is a major overhaul of finagle-example, which we’ll be moving out of the main Finagle repository and into its own project under the Finagle organization on GitHub. At the same time we’ll be filling out the top-level introduction to the examples (which is currently a little bare), adding more detailed API documentation, providing better example coverage for Finagle subprojects, and creating a larger set of Java examples to show off our new work on improving Java compatibility. Read more...

Upgrading Finagle to Netty 4

Posted by Sonja Keserovic on October 20, 2014

Netty 4 was released more than a year ago and Netty 5 Alpha is already available. Finagle is still using Netty 3, which is getting outdated quickly and is preventing us from taking advantage of various performance improvements in newer versions. It’s also creating additional work for the Finagle team at Twitter as we need to port important security and performance fixes back to Netty 3. Read more...

Release notes

Posted by Moses Nakamura on August 12, 2014

We’re experimenting with a new form of release notes, so that it’s easier to get context on what’s going on in Finagle-land, especially with an eye to letting consumers see what the latest and greatest features are, and providing a little more context around what’s going on. Read more...

About Finagle

Finagle is an extensible RPC system for the JVM, used to construct high-concurrency servers. Finagle implements uniform client and server APIs for several protocols, and is designed for high performance and concurrency. Most of Finagle's code is protocol agnostic, simplifying the implementation of new protocols.

For more information, please see the project website or source code repository, or get in touch through our mailing list, Twitter account, or the #finagle IRC channel on Freenode.