Event-based architecture at Scrollback
Aravind Ravi Sulekha
Understand when event-based architectures can help to make your app easier to grok.
Learn how to apply this pattern to server-side Node.js applications and to client-side single page apps. This talk will be illustrated with a lot of examples from the 2-year evolution of Scrollback’s codebase.
Scrollback an open source multi-platform chat app composed of 24 (and counting) small, nearly independent, “apps” that talk to each other by emitting and listening to events. Each app manages its own state, database and resources. We will talk about the rationale for this and how it is implemented.
Scrollback started with a more traditional, MVC-style application and over many iterations evolved to be completely event-based. We’ll visit some of the stops on that journey, and how our current architecture is better.
We use our own tiny event dispatch library, which we prefer to both Node’s built-in EventEmitter (on the server) and to Backbone.Events (on the client). To find out why, attend the talk!
Scrollback is the fifth startup I’ve worked at, and the second that I co-founded. I went to IIT Kharagpur a long time ago, and then to IIM Ahmedabad before realizing that I’d always be the tech guy at every startup I joined.