My slides from the knowledge sharing lecture. I told about Apache Thrift Framework, and about Finagle.
Summary about Thrift:
-
Code generator from IDL for structures and services
-
Processor - around blocks, which wrap your business logic
-
Protocol - serialization format (binary, compact, json)
-
Transport - network layer, how to send and receive data over network
-
Server - choose by latency/throughput
-
One service for one port
Summary about Finagle:
-
Built over many protocols: Thrift, Http, Mysql, Memcache…
-
Service it’s a Function that will Return
Future
-
Future
it’s a result of any async operation -
Service - just a function
-
Filter - just a function
-
Filter separate from application logic
-
You can apply the same Filter for Client and for Server
-
Compose Filters (because it’s a Function)
-
Enjoy