Scalability in a Reactive World

| by Jan Stenberg Follow 34 Followers on Apr 28, 2014. Estimated reading time: 1 minute |

To make systems really scalable we have to maximize locality of reference and minimize contention Jonas Bonér stated in a recent presentation about scalability at the first React Conference.

Jonas, creator of the Akka project and CTO of Typesafe, believes that by using a share nothing architecture and building on an event-driven foundation we can write really scalable systems.

Jonas defines performance as the capability of a system to provide a certain response time and is essentially about three things: latency, throughput and scalability. Scalability he defines as the capability of a system to maintain that response time.

Scale up means we need in an efficient way utilize multi-core architecture and for Jonas clean code and good practices matters to accomplish this, using small methods doing one thing and simple logic. Two things really matters: Maximising locality reference making sure data stays local to its processing context is extremely important. Contention is the second scalability killer e.g. overuse of synchronous locks.

A general rule is to never block. By going asynchronous, fully embracing asynchronous messaging passing, you will get a system that is concurrent by design. Instead of dealing with low level threads and locks you can raise the abstraction level to work with events flowing through the system.

Jonas thinks that starting with asynchronous programming has a higher initial hit of essential complexity to get started, but then it usually stays fairly constant with a very low accidental complexity. In a synchronous system it feels familiar from the beginning with a low essential complexity, but as the system grows it can easily get out of hand, you may get drowned in accidental complexity of using shared mutual state and tightly coupled systems.

To truly scale we also need a way of adding resources to our system, scale out is about managing elasticity, adding nodes or resources.
Scale on demand is an important factor, efficient utilization of cluster cloud computing architecture, being able to add resources on the fly, thus enabling our applications react to increasing as well as decreasing load.

Jonas’ conclusion is that by adhering to core principles that have been proven to work for ages we can write really scalable systems.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you