Article

October 27, 2026

Server-Side State Management in Single Page Applications: an approach on Performance and User Experience

Leonardo Roberto Rodrigues Alves; Enderson Luiz Pereira Júnior

DOI: 10.22167/2675-6528-202601098

Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.

Summary

Server-side state management in Single Page Applications (SPAs) has become crucial for optimizing performance and user experience, given the increasing complexity of *front-end* interfaces. The impact of client-side structured caching on the interactivity and visual stability of SPAs was investigated. To this end, a comparative experimental approach was adopted, developing two versions of a restaurant catalog in React: one with manual *data-fetching* without caching and another using the TanStack Query library, which implements automatic caching and revalidation. The evaluation involved a usability survey with thirty users and automated collection of performance metrics via Lighthouse and Puppeteer. The results demonstrated that the version with TanStack Query provided a 17% gain in perceived response time and 16.4% in navigation fluidity. Technically, the optimization eliminated critical interface blocking, reducing Total Blocking Time (TBT) to zero and mitigating Cumulative Layout Shift (CLS) by 38.4%, although it presented a slight increase in Interaction to Next Paint (INP) due to local processing. It was concluded that the adoption of advanced server-side state management strategies significantly optimizes navigation and the final experience, converting architectural efficiency into perceptible and quantifiable usability gains.

Keywords: Structured caching; Core Web Vitals; Front-end optimization; React; Usability.

1. Introduction

The landscape of web development has been profoundly transformed by the rise of Single Page Applications (SPAs), an architectural paradigm that offers a more fluid and dynamic user experience compared to traditional multi-page models (Tavares et al., 2025). In these applications, a single HTML page is initially loaded, and subsequent interactions result in asynchronous content updates, typically via REST APIs, eliminating the need for full page reloads. This approach not only improves perceived speed and responsiveness but also optimizes data traffic and client-side processing time (Crispiniano, 2022). However, this inherent flexibility of SPAs introduces considerable complexity to the *front-end* layer, which assumes expanded responsibilities. Beyond component rendering, the client layer now manages application state, orchestrates requests to remote servers, and implements various performance optimization strategies (Vuorimaa et al., 2024). Inadequate management of these aspects can lead to issues such as unnecessary renderings, excessive memory resource consumption, and a noticeable degradation of the user experience, negatively impacting satisfaction and retention (Samant and Yadav, 2025).

In this scenario, server state management emerges as a critical component for the performance and usability of SPAs. It involves managing data obtained from remote sources, such as REST APIs, applying techniques of caching, revalidation, and automatic deduplication of requests on the client. The concept of *caching*, widely studied in computer science, is fundamental to reducing latency, avoiding redundant requests, and optimizing the use of computational resources, both on the client and the server (Wang, 1999). In SPAs, the *front-end* needs to coordinate the local interface state with the server state, requiring sophisticated mechanisms for data storage, updating, and synchronization to ensure a consistent and efficient user experience. Modern server state management libraries, such as TanStack Query, offer structured implementations of cache and revalidation that integrate with the component lifecycle, allowing developers to apply these optimizations declaratively. The effectiveness of these approaches is corroborated by empirical studies, such as Södermark (2023), which demonstrates a latency reduction of up to seventy-four percent on the client and a decrease of ninety-eight percent in server resource utilization in specific scenarios, highlighting the transformative potential of these strategies. The Software Engineering perspective considers server state management as a crucial architectural decision, with direct implications for non-functional quality attributes, such as runtime performance and user experience (Flovén, 2020).

Specialized literature has explored various facets of performance optimization in SPAs. Kothapalli (2022) investigates metrics such as First Contentful Paint (FCP), Largest Contentful Paint (LCP), and Time to Interactive (TTI), which are crucial indicators of an application’s perceived loading speed and initial interactivity. The author explores how techniques like *code splitting*, *lazy loading*, and *caching* can mitigate initial loading costs, making the application more responsive. Complementarily, Li (2024) highlights that interventions such as resource compression and strategic JavaScript package organization can generate significant reductions in average loading time, as demonstrated in controlled experiments. The methodological relevance of comparative studies evaluating isolated *front-end* interventions is reinforced by Nunes (2024), who adopts an experimental design to compare functionally equivalent versions of a web application. These works collectively underscore that SPA performance is not merely a function of *backend* infrastructure but is profoundly influenced by the choices and strategies implemented at the client layer. *Front-end* optimization is, therefore, an active field of research and development, aiming to enhance the user experience in an increasingly interactive and demanding web environment.

Despite significant advances in SPA optimization, most studies focus on techniques such as *code splitting*, resource compression, and *server-side rendering*, neglecting server-side state management as an isolated analysis variable and its direct impact on user experience. There is, therefore, a gap in the literature regarding the in-depth understanding of how client-side structured caching, revalidation, and request deduplication strategies, inherent to server-side state management, quantitatively influence performance and qualitatively impact usability in SPAs. This work seeks to fill this gap by experimentally analyzing the impact of client-side structured caching on the interactivity and visual stability of Single Page Applications, with the aim of converting architectural efficiency into perceptible and quantifiable usability gains.

2. Material and Methods

The present study adopted a comparative experimental approach, in which two functionally equivalent versions of the same Single Page Application (SPA) built with the React library were developed. Version A implemented data-fetching manually, using Javascript’s native fetch interfaces, without client-side structured cache, automatic background revalidation, or deduplication of simultaneous requests. Version B, in turn, employed the TanStack Query library for server state management, with client-side configured cache, automatic revalidation according to the stale-while-revalidate strategy, and native deduplication of concurrent requests. This design aimed to isolate the independent variable, ensuring the internal validity of the experiment.

The application developed for the experiment consisted of a restaurant catalog, composed of listing and detail screens, designed to simulate navigation patterns that activate the differentiating mechanisms between the evaluated approaches. The application structure included multiple simultaneous requests, data reuse between screens, and navigation between already visited pages, conditions that favor the cache’s operation and allow its impact on performance metrics to be highlighted. The two versions of the SPA constituted the unit of analysis, allowing for a direct comparison of their performance and usability characteristics.

The user experience research involved thirty participants, recruited by convenience from the researcher’s network of contacts. This non-probabilistic sampling method was adopted due to the time and resource limitations inherent in a final course project, as recognized practice in exploratory usability studies (Tullis and Albert, 2013). As an inclusion criterion, participants were required to use a smartphone daily and be familiar with navigating mobile web applications, ensuring that technological difficulties would not interfere with their responses. The participants were divided into two groups of fifteen people, each interacting with one of the application versions.

The choice of React as the library for building the SPA application was motivated by its wide market adoption and its component-based architecture, which facilitated the creation of identical versions, differing only in the data-fetching layer (Silva Junior, 2022). TanStack Query was selected for natively implementing structured client-side caching, automatic revalidation, and deduplication of concurrent requests (Södermark, 2023), essential characteristics for the study’s objectives. The backend was implemented with Supabase, a Backend as a Service (BaaS) solution that automatically generates a REST API from PostgreSQL tables, eliminating the need for custom development. The restaurant table data was generated with generative artificial intelligence (ChatGPT-5.4), simulating a realistic set of information.

For the user experience research data collection, electronic forms developed on the Google Forms platform were used. These forms were configured not to collect personally identifiable information, preserving participant anonymity and dispensing with the processing of sensitive data, in accordance with the institutional guidelines of USP/Esalq. The questionnaire was designed with five questions on the Likert Scale (Likert, 1932), evaluating dimensions such as navigation fluidity, perceived response time, visual stability of the interface, and overall satisfaction with the user experience.

Before answering the questionnaire, all participants performed a standardized set of four predefined tasks. The first task (T1) consisted of freely navigating the restaurant listing without filters. The second (T2) involved using the name filter to locate a specific restaurant and access its detail page. The third (T3) required advancing the listing to the third page and returning to the first. The fourth task (T4) consisted of accessing the detail page of a restaurant chosen by the participant and returning to the listing. This standardization ensured that both groups were exposed to the same navigation flows, ensuring the comparability of the results.

Performance metrics were collected through the Lighthouse programmatic API, integrated directly into the Puppeteer browser automation library, using the startFlow module from the lighthouse package (Google, 2024). This approach allowed for the definition of User Flows and the capture of metrics in three distinct modes: Navigation, for full page load; Timespan, for user interaction intervals; and Snapshot, for specific states. The execution of the flows was orchestrated by a Node.js script, which instantiated the Google Chrome browser in headless mode, faithfully simulating user tasks.

The programmatic integration of Lighthouse with Puppeteer was preferred over the Google Chrome extension or isolated execution via Lighthouse CLI. This choice was made due to the need to control uncontrollable execution environment variables, such as residual extensions and cache, and the ability to capture metrics during continuous user interactions within the same session context. This approach enabled the precise measurement of metrics like Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS) in dynamic navigation flows, ensuring greater rigor and reproducibility of the collected data.

For each of the two application versions, a complete and continuous user flow was executed, covering the four predefined tasks in sequence, without browser restarts between steps. This methodology allowed measuring the impact of the TanStack Query cache on tasks subsequent to the first one, where the differences between versions would be more pronounced. The disableStorageReset parameter was configured as false, ensuring that the browser cache state was reset exclusively on initial page load, preserving the native TanStack Query cache for subsequent steps. The parameters adopted in the data collection protocol configuration are detailed in Table 1.

Table 1. Configuration parameters adopted in the data collection protocol with Lighthouse CI

Parameter

Adopted Value

NodeJS Version

v24.14.0

Environment’s OS

MacOS Sequoia v15.7.4

Lighthouse Library

13.1.0

Puppeteer Library

24.40.0

Execution environment

Local server (localhost)

CPU Throttling

4x Multiplier

Network Throttling

1,638.4 Kbps (download) / 675 Kbps (upload)

Cache reset between rounds

Enabled (disableStorageReset: false)

Simulated device

Mobile – viewport 412 × 915 px

Source: Original research results

The CPU and network throttling parameters adopted corresponded to the emulation of a mobile device and reference values established by Google for simulating representative conditions of intermediate-level devices and connections, as specified in the official documentation of the DevTools throttling method (Google, 2024). The script containing the complete implementation of the collection protocol is available in the project repository on the GitHub platform, accessible via the link https://github.com/leo-pro/eatmap-web/tree/main/scripts.

The user flow steps instrumented for metric collection were executed for both application versions, covering the four predefined tasks in sequence. The first task (T1) included the cold load of the listing (Navigation) and scrolling through the page (Timespan). The second task (T2) comprised searching for a specific restaurant, opening its details, returning to the listing, and clearing filters (Timespan). The third task (T3) involved sequential navigation between pages one, two, and three of the listing, with subsequent returns (Timespan). Finally, the fourth task (T4) consisted of opening a restaurant’s details, reading the information, and returning to the listing (Timespan). This continuous flow allowed for metric capture at each interaction.

The treatment and analysis of the collected data were performed distinctly for each type of information. For the user experience research, the arithmetic means of the responses of each group and the difference between these means for each evaluated dimension were calculated. The performance test results were exported in HTML format for qualitative visual inspection and in structured JSON format for processing the Core Web Vitals metrics, including Largest Contentful Paint (LCP), First Contentful Paint (FCP), Time to Interactive (TTI), Total Blocking Time (TBT), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS). A consolidated CSV file was generated with the values obtained for each stage in each version of the application.

Ethical procedures were rigorously followed to ensure research integrity and participant protection. User experience research data collection was conducted anonymously, without recording any personally identifiable information. Electronic forms were configured not to collect sensitive data, in accordance with the guidelines of the USP/Esalq Manual of Instructions and Norms for Course Conclusion Works, ensuring the privacy and anonymity of those involved in the study.

3. Results and Discussion

The results and discussions presented in this study provide an in-depth analysis of the impact of server-side state management, specifically through the implementation of TanStack Query, on the performance and user experience in Single Page Applications (SPAs). The comparative experimental approach, which involved two versions of a restaurant catalog application, allowed for the isolation of the independent variable and the measurement of its implications on both objective performance metrics and users’ subjective perception. The findings corroborate the formulated research hypotheses, revealing significant gains in various dimensions of usability and performance, although they also point to inherent trade-offs in redistributing the computational load.

The analysis of the user experience survey, detailed in Table 2, demonstrated a consistent superiority of version B (with TanStack Query) over version A (manual data-fetching) in crucial aspects of interaction. Notably, perceived response time (Q1) and navigation fluidity (Q2) showed gains of approximately 17.0% and 16.4%, respectively, for version B. These results are of utmost importance, as the perception of speed and fluidity is one of the pillars of user experience in modern web applications (Fellinger & Fronimaki, 2024). The reduction in perceived latency, facilitated by client-side structured caching, aligns directly with performance optimization principles aimed at minimizing user waiting time, as discussed by Wang (1999) and Södermark (2023). The ability to serve data instantly from the cache, even if “stale”, and revalidate it in the background, creates a sense of responsiveness similar to that of native applications, enhancing the quality of interaction.

Table 2. Experience assessment by dimension (Versions A and B)

Assessed dimension

Version A

Version B

Difference (B – A)

Difference (%)

Response time (Q1)

3,53

4,13

+0,60

+17,0%

Navigation fluidity (Q2)

3,67

4,27

+0,60

+16,4%

Absence of failures (Q3)

4,00

4,33

+0,33

+8,3%

Information Consistency (Q4)

4,33

4,13

-0,20

-4,6%

Overall satisfaction (Q5)

3,73

4,07

+0,34

+9,1%

Overall average

3,85

4,19

+0,34

+8,8%

Source: Original research results

Navigation fluidity, in particular, is an attribute that greatly benefits from TanStack Query’s ability to intelligently manage server state. In scenarios involving navigation between already visited pages or data reuse, version B avoided redundant server requests, which translated into smoother, uninterrupted transitions. This behavior is a direct reflection of the experimental design, which included tasks such as T2 (search and details), T3 (pagination), and T4 (details and return to list), all designed to activate caching mechanisms. Literature on front-end optimization, such as Kothapalli (2022), frequently highlights caching as a fundamental strategy for mitigating loading costs and improving interactivity, and the results obtained here provide robust empirical evidence for this claim in the context of server state management. The practical implication for developers is clear: adopting libraries like TanStack Query can transform the user’s perception of application agility, converting a potentially frustrating experience, marked by waits and loading, into a continuous and pleasant interaction.

However, the information consistency dimension (Q4) showed a slight superiority for version A, with a difference of -4.6% compared to version B. Although small, this difference suggests that, in some contexts, the `stale-while-revalidate` strategy of TanStack Query, which serves old data while fetching the latest in the background, may generate a perception of inconsistency or temporary outdatedness for the user. This is a known trade-off in cache systems, where performance is prioritized over the immediate guarantee of fresh data (Mertz & Nunes, 2010). Visual stability, on the other hand, showed no significant differences in user perception regarding the absence of failures (Q3), indicating that, subjectively, both versions maintained an acceptable level of visual integrity. Overall satisfaction (Q5) with the user experience, a holistic indicator of application quality, was also superior in version B, with a gain of 9.1%. This reinforces that, despite small trade-offs in specific aspects, the overall improvement in performance and fluidity contributes to a more positive experience, validating Hypothesis 1 (H1) that there are statistically significant differences in user satisfaction ratings between the versions.

The automated performance tests, conducted with Lighthouse and Puppeteer, provided the quantitative basis for the differences perceived by users, allowing for a detailed analysis of Core Web Vitals metrics. In the application’s first render, corresponding to the cold load of the listing (Step 1, Navigation mode), the Largest Contentful Paint (LCP) and First Contentful Paint (FCP) metrics showed minimal or null differences between versions, as shown in Table 3. The LCP for version B was only 0.9% lower, and the FCP was identical. This result is expected, as, during initial load, both versions make a complete request to the server to obtain data, without the TanStack Query cache being populated. This corroborates the literature which indicates that, for initial loading, optimizations such as code splitting, resource compression, and server-side rendering are more impactful than client-side caching strategies (Kothapalli, 2022; Li, 2024; Clapton et al., 2025). The implication is that, although server-side state management is crucial for subsequent interactions, optimizing the initial load still depends on a broader set of front-end engineering techniques.

Table 3. Performance metrics in Navigation mode (Task 1)

Metric

Version A

Version B

Δ (B – A)

Δ (%)

LCP (ms)

2.490

2.467

-23 ms

-0,9%

FCP (ms)

2.103

2.103

0 ms

0,0%

TTI (ms)

3.532

3.161

-371 ms

-10,5%

TBT (ms)

59

6

-53 ms

-89,8%

Class

0,000

0,000

0

Source: Original research results

However, Table 3 reveals that, even under cold load, version B demonstrated significant improvements in interactivity metrics. Version B’s Time to Interactive (TTI) was 10.5% lower (3,161 ms versus 3,532 ms for version A), and Total Blocking Time (TBT) was drastically reduced by 89.8% (6 ms versus 59 ms for version A). This reduction in TBT is particularly noteworthy, as it indicates that the browser’s main thread was blocked for a significantly shorter time in version B. This suggests that TanStack Query’s internal hydration and data structuring mechanism is more efficient at avoiding long tasks that impede page interactivity, even before the benefits of data caching are fully exploited. An application’s ability to become interactive more quickly is a critical factor for user experience, as it allows users to start interacting with the interface without noticeable delays, which is one of the main objectives of Core Web Vitals (Google, 2023). Choosing a server-side state management library that optimizes these architectural aspects, such as TanStack Query, demonstrates a direct impact on the application’s initial responsiveness, as highlighted by Flovén (2020) regarding the impact of architectural decisions on runtime performance.

The analysis of interactivity metrics in Timespan mode, Interaction to Next Paint (INP), and Total Blocking Time (TBT), for tasks subsequent to cold load, revealed a more complex scenario and important nuances regarding the computational cost of server state management. According to Table 4, version B showed a reduction in INP in some steps, such as “Back to list” (E5, -45.3%) and “Open details (T4)” (E11, -28.8%), which is consistent with the expectation that caching reduces interaction latency. However, in other steps, especially in pagination tasks (T3), version B registered higher INP values. For example, in the transition from “Page 2 to 3” (E8), version B’s INP was 200 ms compared to version A’s 76 ms, an increase of 163.2%. This finding is crucial, as it indicates that, although TanStack Query optimizes server communication, it may introduce an additional computational cost on the client for cache maintenance, revalidation, and background synchronization. This local processing, if not optimized, can lead to blocking the browser’s main thread, impacting the interface’s responsiveness to user interactions.

Table 4. INP by stage of the flow (Timespan mode)

Stage

Share

Task

INP A (ms)

INP B (ms)

Δ (ms)

Δ (%)

EAC

Restaurant search

T2

234

234

0

0,0%

EAC

Open detail page

T2

54

53

-1

-1,9%

EAC

Back to listing

T2

95

52

-43

-45,3%

EAC

Clear filters

T2

50

78

+28

+56,0%

E7

Page 1 of 2

T3

46

55

+9

+19,6%

E8

Page 2 of 3

T3

76

200

+124

+163,2%

E9

Page 3 of 2

T3

38

54

+16

+42,1%

E10

Page 2 of 1

T3

36

54

+18

+50,0%

E11

Open details (T4)

T4

73

52

-21

-28,8%

E13

Return to listing (T4)

T4

89

59

-30

-33,7%

Source: Original research results

This trade-off between network optimization and client-side processing is a central point of discussion. While version B minimizes server dependency for already accessed data, the work of managing this data on the client (such as hydrating components with cached data, `stale-while-revalidate` revalidation logic, and request deduplication) can consume the browser’s CPU resources. For developers, this implies that choosing a server-side state management library is not a magic bullet for all performance issues, but an architectural decision that requires a deep understanding of how computational load is redistributed. Optimizing INP in scenarios with high client-side processing may require additional techniques, such as optimizing React components to avoid unnecessary re-renders, using `useMemo` and `useCallback`, and implementing `lazy loading` for components that are not immediately visible. The literature on front-end optimization (Vepsäläinen et al., 2024) often addresses the need to balance the load between the network and the client, and this study provides empirical evidence of how this balance can tip in favor of client-side processing with certain state management approaches.

In contrast to the mixed results of INP, the Total Blocking Time (TBT) metric demonstrated the overwhelming superiority of version B in several stages, as shown in Table 5. In scenarios of returning to the listing, such as “Back to listing” (E5, -100.0%) and “Back to listing (T4)” (E13, -100.0%), version B registered 0 ms of TBT, completely eliminating interface blocking. This is a notable gain, especially when compared to the 11 ms and 7 ms of version A in these same stages. The elimination of TBT means that the browser’s main thread was free to respond to user interactions, resulting in a significantly smoother and more responsive browsing experience. The most expressive case was observed in Task 3 (pagination), specifically in the return from “Page 3 to 2” (E9), where version A presented a TBT of 315 ms, while version B registered 0 ms. This 315 ms blocking in version A represents a noticeable delay for the user, which is completely mitigated by version B by serving the content instantly from the cache.

Table 5. TBT by flow stage (stages with non-null values)

Stage

Share

Task

TBT A (ms)

TBT B (ms)

Δ (ms)

Δ (%)

E1

Cold load (Navigation)

T1

59

6

-53

-89,8%

EAC

Restaurant search

T2

56

34

-22

-39,3%

EAC

Back to listing

T2

11

0

-11

-100,0%

EAC

Clear filters

T2

0

33

+33

E8

Page 2 of 3

T3

0

65

+65

E9

Page 3 of 2

T3

315

0

-315

-100,0%

E10

Page 2 of 1

T3

0

333

+333

E13

Return to listing (T4)

T4

7

0

-7

-100,0%

Source: Original research results

However, Table 5 also reveals a point of concern for version B in the “Page 2 to 1” (E10) step, where version A registered 0 ms of TBT, while version B presented 333 ms. This is a counterintuitive result and deserves a more in-depth analysis. It may indicate that, in certain pagination transitions, the TanStack Query cache revalidation or update logic can paradoxically introduce significant blocking on the main thread. This reinforces the idea that server-side state management, while powerful, is not without its complexities and may require specific optimizations to avoid bottlenecks in particular scenarios. The practical implication is that, although TanStack Query is excellent for reducing network latency and TBT in most cases, developers should be aware that the complexity of cache and revalidation logic can, in specific situations, generate a high computational cost on the client, negatively impacting TBT and, consequently, INP. Continuous monitoring and performance profiling are essential to identify and mitigate these friction points.

The visual stability of the interface, measured by Cumulative Layout Shift (CLS), also showed significant improvements in version B, as shown in Table 6. Version B’s total CLS (0.170) was 38.4% lower than version A’s (0.276). Most of this reduction was concentrated in Task 3 (pagination), where version B registered a CLS of 0.139 compared to 0.238 in version A, a reduction of 41.6%. Unexpected layout shifts are extremely detrimental to the user experience, causing frustration and hindering interaction (Google, 2023). TanStack Query’s ability to serve data from previously visited pages directly from the cache, without the need for a new server request, eliminates the partial rendering and data update cycle that typically generates layout shifts. This behavior directly corroborates the perception of fluidity (Q2) expressed by users in the experience survey, where version B obtained a score of 4.27 against 3.67 for version A.

Table 6. Accumulated CLS by task

Task

CLS Version A

CLS Version B

Δ

Reduction (%)

T1 (Initial load)

0,000

0,000

0,000

T2 (Search and details)

0,038

0,031

-0,007

-18,4%

T3 (Pagination)

0,238

0,139

-0,099

-41,6%

T4 (Free details)

0,000

0,000

0,000

Sum

0,276

0,170

-0,106

-38,4%

Source: Original research results

The reduction of CLS is one of the most tangible benefits of server-side state management with caching, as it directly contributes to a more predictable and enjoyable interface. In applications with dynamic content, such as paginated restaurant catalogs, preventing layout shifts is crucial for maintaining user trust and ensuring seamless navigation. The implication for SPA design and development is that adopting client-side caching strategies not only speeds up data loading but also stabilizes visual presentation, resulting in a superior user experience. This finding reinforces Hypothesis 2 (H2), demonstrating that the server-side state management approach with TanStack Query presents superior performance metrics compared to a manual approach without caching, especially regarding visual stability and interactivity in continuous navigation scenarios.

In summary, the results of this study confirm that server-side state management in Single Page Applications, through libraries like TanStack Query, significantly optimizes navigation and user experience. Hypothesis 1 was confirmed by the superiority of version B in perceived response time, navigation fluidity, and overall satisfaction evaluations. Hypothesis 2 was corroborated by improvements in Core Web Vitals metrics, such as TTI, TBT, and CLS, which indicate gains in responsiveness and visual stability. However, the occasional increase in INP at some stages of version B reveals an important trade-off: optimizing network communication can introduce an additional computational cost on the client for cache maintenance and background revalidation.

This study contributes to the understanding that server state management is a critical architectural decision in SPA development, with a direct impact on non-functional quality attributes and user experience. Practical implications include the need to consider not only network latency but also client-side processing when optimizing performance. For future work, it is suggested to investigate INP optimization in scenarios with high client-side processing, explore different cache configuration and revalidation strategies, and compare TanStack Query with other server state management libraries and approaches across a wider range of application profiles and data volumes.

4. Conclusion

It is concluded that the objective was achieved, confirming the positive impact of structured client-side caching on the interactivity and visual stability of Single Page Applications, converting architectural efficiency into perceptible and quantifiable usability gains. The research demonstrated that the server-state management version, implemented with TanStack Query, provided significant improvements in user perception, with greater navigation fluidity, perceived response time, and overall satisfaction. Performance metrics corroborated these findings, evidencing substantial gains in Time to Interactive (TTI), Total Blocking Time (TBT), and Cumulative Layout Shift (CLS), which indicate greater responsiveness and notable visual stability of the interface, especially in scenarios of continuous navigation and data reuse.

However, an inherent limitation to the approach was identified: a punctual increase in Interaction to Next Paint (INP) in some stages of the flow, suggesting an additional computational cost on the client for cache maintenance and background data revalidation. This trade-off highlights that network communication optimization can redistribute processing load to the client-side, requiring additional optimization considerations. For future studies, it is suggested to investigate INP optimization in high client-side processing scenarios, explore different cache configuration and revalidation strategies, and compare TanStack Query with other server-side state management libraries and approaches across a wider range of application profiles and data volumes, deepening the understanding of these trade-offs.

Bibliographic References

Clapton, Joey; Bastos, Hugo; Batisteli, João Pedro Oliveira; Seufitelli, Danilo Boechat; Tavares, Cleiton. 2025. Client-Side vs Server-Side Rendering: Impacts on Performance and User Experience in Web Applications. In: Simpósio Brasileiro de Qualidade de Software, 24., 2025, São José dos Campos. Anais […]. Porto Alegre: Sociedade Brasileira de Computação, 2025. p. 165-172.

Crispiniano, Almir Gonçalves. 2022. Estudo comparativo entre frameworks frontend. Trabalho de Conclusão de Curso (Bacharelado em Ciência da Computação) – Universidade Federal de Campina Grande, Campina Grande, Brasil.

Dalfovo, O. et al. 2023. Análise comparativa entre as tecnologias de front-end React, VueJS e Angular. Revista de Engenharia e Inovação em Sistemas.

Fellinger, Lisa; Fronimaki, Despina. 2024. Enhancing user experience: Unveiling the impact of website speed optimisation on user engagement. Journal of Digital & Social Media Marketing 11(4): 324-338.

Flovén, Karl Fredrik. 2020. State management models impact on run-time performance in Single Page Applications. Dissertação (Master in Computer Science) – KTH Royal Institute of Technology, Stockholm, Suécia.

Google. 2023. User-centric performance metrics. web.dev. Disponível em: https://web.dev/articles/user-centric-performance-metrics. Acesso em: 15 mar. 2026.

Kothapalli, Mounika. 2022. Performance Analysis of Single Page Applications. International Journal of Science and Research 11(1): 1631-1635.

Li, Yijia. 2024. Practice and Research on Optimization Strategies for Front-End Page Loading Speed in Complex Single-Page Applications (SPAs). Modern Electronic Technology 8(1): 1-10.

Likert, R. 1932. A technique for the measurement of attitudes. Archives of Psychology 22(140): 1-55.

Mertz, Jhonny; Nunes, Ingrid. 2010. Understanding Application-Level Caching in Web Applications: A Comprehensive Introduction and Survey of State-of-the-Art Approaches. arXiv. Disponível em: https://arxiv.org/abs/2011.00477. Acesso em: 13 fev. 2026.

Nunes, Angélica. 2024. Avaliação experimental de técnicas de otimização de desempenho em aplicações web. Trabalho de Conclusão de Curso (Bacharelado em Sistemas de Informação) – Universidade de São Paulo, São Paulo, Brasil.

Samant, Aditya; Yadav, Vinod. 2025. Methods of Performance Enhancement for Single-Page Applications. International Research Journal of Modernization in Engineering Technology and Science 7(12): 3801-3804. DOI: 10.56726/IRJMETS87598.

Silva Junior, A. C. M. da. 2022. Comparação entre os principais Frameworks Javascript de Front-end. Trabalho de Conclusão de Curso (Bacharelado em Ciência da Computação) Universidade Federal do Ceará, Fortaleza, Brasil.

Södermark, Oskar. 2023. Client-Side Caching: Reducing Server Load and Latency in a Network Traffic Analysis Tool (Kalix). Dissertação (Bachelor’s thesis em Computing Science) Umeå University, Umeå, Suécia.

Tavares et al., 2025 [Referência completa não encontrada no documento original]

Tullis, T.; Albert, B. 2013. Measuring the user experience: collecting, analyzing, and presenting usability metrics. 2. ed. Waltham: Morgan Kaufmann.

Vepsäläinen, Juho; Hellas, Arto; Vuorimaa, Petri. 2024. Overview of Web Application Performance Optimization Techniques. Lecture Notes in Business Information Processing. Pré-print disponível em: https://arxiv.org/html/2412.07892v1.

Vuorimaa et al., 2024 [Referência completa não encontrada no documento original]

Wang, J. 1999. A survey of web caching schemes for the internet. SIGCOMM Computer Communication Review 29: 36-46.

Article originating from the Final Course Project of the Specialization in Software Engineering of the MBA USP/Esalq

To learn more about the course, click here and access the MBX Academy platform

You may also like

Executive Mba In Leadership And Management

November 23, 2026

Improvements in the efficiency of a secondary biological sludge drying plant

The management of industrial solid waste, especially secondary biological sludge, represented an operational and strategic challenge for a company in the pulp and paper sector. A secondary biological sludge drying plant, installed to meet environmental requirements and reduce costs, operated with low efficiency and high unavailability. The objective of this study was to evaluate and propose a set of actions to increase the operational availability of the plant, ensure the integral processing of the generated sludge, and reduce treatment and transportation costs, in addition to mitigating environmental risks. To this end, an analysis of the root causes of low efficiency was carried out, using tools such as the cause-and-effect diagram (Ishikawa) and the “5 whys” analysis, and hypotheses were tested to identify the most impactful factors. Three main root causes were identified: addition of low-load effluent to the process, absence of a dedicated maintenance team, and lower consistency of dewatered sludge. The proposed countermeasures, which included stopping the addition of effluent, hiring a maintenance team, and testing polymers, had a monthly implementation cost of R$ 35,000.00. An annual reduction in operating expenses of up to R$ 1,800,000.00 and maintenance costs of R$ 600,000.00 was estimated, in addition to a 25% reduction in operational unavailability. It was concluded that the proposed measures are viable, quick to implement, and capable of ensuring the integral processing of secondary biological sludge, strengthening the company’s ESG strategy and ensuring environmental compliance.

Keywords: Operational costs; Operational efficiency; ESG; Biological sludge; Sludge drying.

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Project Management

November 19, 2026

Integrated Software for Operational Communication and Control: Practical Evidence in a Medium-Sized Company

The study analyzed the impacts of the lack of integration between commercial and operational modules of an integrated management software (ERP/CRM) in a medium-sized company in the mechanical engineering sector. The main objective was to evaluate practical evidence of communication and operational control optimization, identify bottlenecks, and formulate improvement proposals. A qualitative-quantitative approach was adopted through a single case study with documentary research, based on the extraction and filtering of historical task records from the Bitrix24 software and statistical correlation analysis between workload and allocated team. Based on the diagnosis, an action plan structured in the 5W2H tool was developed. The results revealed that 54.4% of the registered tasks consisted of duplicate, test, or practically useless records, generated by manual insertion during the scope transition between commercial CRM and engineering. It was also demonstrated that the increase in the commercial team linearly accompanied the growth of inefficient tasks, polluting the database and masking the organization’s real productive capacity. It was concluded that the automation of workflows and native integration between modules are essential to mitigate operational and financial risks, providing replicable guidelines for data governance in small and medium-sized enterprises.

Keywords: System Customization; Enterprise Resource Planning (ERP); Task Management; Management Software.

Project Management

November 19, 2026

Supervised learning in voltammetric quantification with electrochemical sensors

The application of supervised learning in the voltammetric quantification of paraquat in artificial urine was evaluated. The study aimed to quantitatively assess the predictive performance of supervised learning models compared to a univariate “baseline”, preserving independence between devices in the training and testing sets. The research was conducted as an applied case study, processing data from four physical devices, each evaluated under a blank condition and six paraquat concentration levels, totaling 28 square wave voltammetry (SWV) curves. A computational “pipeline” integrated automated file reading, organization of curves into current-potential matrices, generation of potential maps, and device-specific blank correction. Five approaches were considered: conventional univariate calibration, predictive univariate “baseline”, partial least squares (PLS) regression, support vector regression (SVR), and random forest (RF). Predictive evaluation was performed using device-grouped cross-validation. PLS showed the best predictive performance for curves from a device not used in training, with an R² of 0.7981. RF exhibited intermediate performance, while SVR and the predictive univariate “baseline” showed inferior and similar performance between themselves. It was concluded that a compact multivariate representation of the voltammetric profile was more favorable for inter-device prediction than increasing model flexibility under the studied conditions. Grouped validation preserved independence, but the limited number of devices restricts the generalization of results.

Keywords: Supervised learning; Paraquat; PLS; Electrochemical sensors; Square wave voltammetry.

Project Management

November 19, 2026

Improvement of Inventory Management via Lean Six Sigma: Study in the Paper Industry

Organizations seek methodologies to reduce waste, increase efficiency, and become more competitive, promoting sustainable improvements in their processes. In this context, the study aimed to apply the Lean Six Sigma methodology, through the DMAIC cycle, to improve inventory management in a company in the paper industry manufacturing pneumatic hoses, aiming to increase the accuracy between physical and systemic inventories and improve the visual management of parts storage. The research was developed from the collection and analysis of data extracted from the company’s ERP system. Tools such as SIPOC, Ishikawa Diagram, and 5 Whys were used to define and identify the root cause of the problem. As improvement proposals, a Digital Kanban system and an adaptation of the Two-Bin system, called the Three-Bin System, were implemented, in addition to the development of standardized operating procedures and the establishment of control mechanisms. The results demonstrated a significant improvement in inventory accuracy, raising the lowest identified index from 28% to 80%, and detected discrepancies between systemic and physical records equivalent to R$ 134,335.53. It was concluded that the application of Lean Six Sigma, combined with Project Management, represented an effective approach for conducting operational improvement projects, contributed to increased reliability of inventory information, to the improvement of material control processes, and to the strengthening of the organization’s operational management.

Keywords: Inventory accuracy; DMAIC; Visual management.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.