Scala at LINE Backend by LINE, Inc.
Click here to load reader
-
Upload
scalaconfjp -
Category
Software
-
view
492 -
download
5
description
Transcript of Scala at LINE Backend by LINE, Inc.
Scala at LINE Backend
ⓒ 2014 LINE CORPORATION
LINE Backend Architecture
Please note that this picture is just concept of our architecture. Actually, There are much more services!
ErlangServiceServiceServiceServiceService
ErlangErlang
Storage
ServiceServiceServiceServiceService
ServiceServiceServiceServiceService
Storage
MQThriftoverSPDY
Thrift
Thrift
AMQP
AMQP
Thrift
Other services
Thrift
Other services
ServiceServiceServiceServiceService
Storage
Thrift
ServiceServiceServiceServiceService
AMQP
Storage
Thrift
LINE’s microservices
• Decentralized Governance – Our services may be implemented by different
languages, libraries, middlewares, …
• Decentralized Data Management – Our services may have own (huge!) storage.
– HBase, Redis, MongoDB, MySQL …
• Evolutionary Design – Service layout is incrementally changing according
to the scale of LINE userbase.
Scala at LINE Backend (1)
• Fan-out (Bulk Message Sending)
– Producers pushes messages to MQ
– Consumers written in Scala sends them to massive userbase asynchronously.
Scala at LINE Backend (2)
• Asynchronous Tasks Monitoring Tool
– Visualize asynchronous tasks running on each server of our JVM cluster.
– Allows us to answer:
• What kind of tasks are running or waiting?
• How long time does it take?
• Where is performance bottle neck?
– Powered by
• Finagle, Slick, Saddle
Scala at LINE Backend (3)
• Distributed Tracing System (line-tracer)
– Visualize a service call graph via Zipkin.
Conclusion
We’re hiring
Scala/Java
Engineer!!!!!!!!!!!!!!!!!!!
https://linecorp.com/career/