# The Unique Challenges of Data-rich UI Applications

- Speaker: [Hava Babay-Adi](/wiki/speakers/hava-babay-adi.md)
- Event: [Reversim Summit 2022](/wiki/years/2022.md)
- Video: https://www.youtube.com/watch?v=r2Sdvo4E3Do
- Transcript: [/transcripts/2022/06-r2Sdvo4E3Do.md](/transcripts/2022/06-r2Sdvo4E3Do.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Frontend](/wiki/topics/frontend.md), [Data Science](/wiki/topics/data-science.md), [Performance](/wiki/topics/performance.md), [Scalability](/wiki/topics/scalability.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores the unique architectural and engineering challenges of building data-rich user interfaces, such as dashboards that process heavy API traffic and complex filter states. The speaker examines three core challenges: managing complex UI state, rendering charts and data tables, and optimizing performance in data-heavy environments. Through practical examples, the audience learns how to evaluate state management libraries, choose appropriate UI component third-party libraries, and implement performance patterns like partial loading and client-side caching.

## Key points

- [2:26](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=146s) Data-rich UI applications display numerous data elements, involve many API calls from multiple sources, and require a large number of filters.
- [6:47](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=407s) The three main challenges in building data-rich UIs are complex UI state, rendering performance, and managing API call performance.
- [8:55](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=535s) Using component inputs and outputs for state communication becomes hard to maintain as the DOM tree grows, making state management or URL routing preferable for complex flows.
- [14:17](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=857s) State management is recommended for complex data-rich UIs because it decouples components from the DOM structure and simplifies advanced optimizations.
- [17:34](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=1054s) Choosing a third-party chart library requires careful evaluation of available features, customization capabilities, testing support, and licensing.
- [20:07](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=1207s) Partial loading improves perceived performance by rendering available data chunks immediately while showing loading indicators only for pending sections.
- [22:41](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=1361s) Client-side caching and pre-fetching leverage data freshness characteristics to drastically improve second-page loads and overall responsiveness.
- [26:10](https://www.youtube.com/watch?v=r2Sdvo4E3Do&t=1570s) A backend-for-frontend architecture helps optimize performance by handling database joins and aggregating microservice calls specifically tailored for the UI.

## Takeaways

- Adopt state management solutions early for data-rich applications to avoid messy component input and output chains.
- Implement partial loading and client-side caching to enhance perceived performance and handle heavy aggregate data efficiently.
- Carefully design wrapper components around third-party chart libraries to maintain flexibility and simplify future migrations.

## Questions this talk answers

- How should I manage component communication and state when building a dashboard with many interdependent filters and charts?
- What strategies can I use to optimize performance and handle heavy API loads in data-intensive frontend applications?
- When should I build custom chart components versus integrating a third-party visualization library?

## Technologies

Angular, TypeScript, Dart, Java

## Tags

dashboards, data visualization, frontend architecture, performance optimization, state management, ui components
