Software Engineer with over 25 years of experience building systems and leading teams to deliver products in different domains and technologies. Active open source contributor focusing on Elixir and the Phoenix Framework. Creator of Surface, Broadway, ElixirSense and more. Currently working at Simplebet, Inc.
Phoenix LiveView has a well-deserved reputation for being highly efficient regarding server/client payload exchange and resource consumption. Most of that efficiency relies on keeping track of templates’ diffs and components’ assigns changes. For most common applications, developers usually don’t need to worry about such implementation details. However, when working with real-time applications that demand highly frequent updates, a deeper knowledge on the subject may be the key to avoid performance issues in production. In this talk, we’ll discuss the basic concepts behind Liveview’s diff tracking and component change tracking, as well as present several techniques that explore those concepts to improve the overall performance of your live views.