client – Code Guilds https://codeguilds.com Mon, 30 Nov 2026 21:10:48 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 Building an MCP Client in Python from Scratch https://codeguilds.com/building-an-mcp-client-in-python-from-scratch/ https://codeguilds.com/building-an-mcp-client-in-python-from-scratch/#respond Mon, 30 Nov 2026 21:10:48 +0000 https://codeguilds.com/building-an-mcp-client-in-python-from-scratch/ The Model Context Protocol (MCP) has emerged as a foundational architecture for standardizing how AI applications, such as Claude, interact with local and remote data sources and functional tools. By establishing a universal interface for AI-powered agents, the protocol aims to solve the "fragmented integration" problem, where developers previously had to build bespoke connectors for every unique AI service. This guide explores the technical implementation of an MCP client using the official Python SDK 2.0, providing a comprehensive walkthrough for engineers looking to bridge the gap between AI reasoning engines and real-world execution environments.

The Architecture of Interoperability

At the heart of the Model Context Protocol are three distinct, decoupled roles: the host, the server, and the client. The host represents the core AI application, such as an LLM-based assistant. The server serves as the provider of capabilities—exposing specific tools, resources, or prompts that the model can leverage. The client acts as the critical intermediary, residing within the host environment. Its primary responsibility is to maintain a persistent connection to the server, negotiate available capabilities, and facilitate the translation of natural language requests into structured tool-execution commands.

This architecture is significant because it shifts the burden of integration away from the model itself. Instead of the AI needing direct, hard-coded knowledge of every external API, it interacts with an abstraction layer provided by the client. This allows for modularity; developers can swap out servers or update tools without modifying the underlying AI application logic.

Prerequisites and the Shift to SDK 2.0

Modern development with the MCP requires strict adherence to the latest specifications. As of late 2026, the ecosystem has matured to the 2.0.0 release of the Python SDK, which aligns with the July 2026 protocol revision. Developers must ensure they are utilizing Python 3.10 or higher. The adoption of the uv package manager is highly recommended, as it provides a robust, high-performance alternative to traditional pip environments, ensuring dependency consistency across development and production pipelines.

The transition from the legacy v1 API—characterized by ClientSession and session.initialize()—to the v2 paradigm is not merely cosmetic. It represents a fundamental change in how transport layers and sessions are managed. Failure to migrate can lead to compatibility issues with newer server implementations. Engineers currently maintaining older MCP codebases should consult the official migration documentation to ensure their MCPServer and Client implementations conform to the current standard.

Establishing the Development Environment

To begin, one must initialize the project structure. Using uv, the process involves creating a dedicated virtual environment to encapsulate dependencies. The core components required are the mcp library (with cli extras enabled), the anthropic SDK for model communication, and python-dotenv for secure environment variable management.

uv init mcp-client
cd mcp-client
uv venv
source .venv/bin/activate
uv add "mcp[cli]" anthropic python-dotenv

Security is paramount in this setup. By utilizing a .env file and updating the .gitignore to prevent the exposure of Anthropic API keys, developers maintain best practices in credential hygiene.

Constructing the Test Server

Before the client can be realized, it requires a functional endpoint. A server, in the context of MCP, is an application that exposes specific functionality through the MCPServer class. By decorating functions with @mcp.tool(), developers can automatically generate JSON schemas that describe the tool’s name, purpose, and required inputs.

The use of the stdio transport is the standard for local client-server communication. In this model, the server communicates via standard input/output streams. It is critical to note that in a stdio-based architecture, the stdout stream is strictly reserved for the JSON-RPC protocol. Any diagnostic output—such as logging or debug statements—must be routed exclusively to stderr. Failure to observe this separation will corrupt the protocol stream, resulting in immediate communication failure.

Client-Server Handshake and Tool Discovery

The client lifecycle is managed through an asynchronous context manager. Upon initialization, the client launches the server as a subprocess using StdioServerParameters. Once connected, the client executes a list_tools request. This process retrieves the capabilities exposed by the server.

The data returned during this exchange is effectively a contract. The client parses the JSON Schema returned by the server, which defines the tool’s parameters. For instance, a weather-fetching tool might require a city string, while a temperature conversion tool might require a value float and unit strings. The client must be prepared to handle these definitions dynamically, ensuring that the AI model receives accurate information about what tools are available at any given moment.

Direct Tool Execution and Error Handling

A common misconception is that the client only acts as a pass-through for the AI. In reality, the client is capable of executing tools directly. This capability is vital for debugging and validation. When invoking a tool via call_tool, the client receives a CallToolResult.

Crucially, an error within a tool (such as an unsupported unit in a temperature conversion function) does not necessarily raise an exception in the client. Instead, the MCP specification dictates that such failures are reported as structured results with an isError flag set to true. This allows the AI model to "see" the error, understand why the request failed, and potentially attempt a correction or request further clarification from the user.

Orchestrating the Model Loop

The bridge between the MCP client and the Claude model requires a sophisticated message-handling loop. When the user submits a query, the client sends it to the Anthropic API. If the model determines that a tool is required, it returns a tool_use directive. The client intercepts this, performs the requested action on the local server, and feeds the result back to the model as a tool_result block.

This loop must be carefully managed to handle chained requests—scenarios where the model requires multiple tool calls to fulfill a single user prompt. The inclusion of a MAX_TURNS limit is a necessary safeguard against infinite execution loops, ensuring that the system remains stable even if the model enters an unexpected state.

Broader Implications and Future Outlook

The rise of the Model Context Protocol represents a significant step toward the "Agentic Web," where AI models are not limited by their training data but are instead augmented by a vast array of standardized, interoperable tools. By standardizing the communication layer, MCP reduces the cognitive load on developers and creates a more predictable ecosystem for AI-driven automation.

As the protocol evolves, we can expect to see wider adoption across enterprise environments where secure, local, and private interaction with tools is a regulatory requirement. The ability to run these servers over stdio, rather than requiring open network ports, provides a significant security advantage for sensitive applications. Furthermore, the decoupling of the host from the tool provider means that as models improve, the underlying utility infrastructure remains intact, providing a stable foundation for the next generation of intelligent systems.

Through this implementation, developers have moved from mere API consumers to architects of a flexible, protocol-driven AI ecosystem. The ability to build, connect, and route these tools from scratch is not merely an exercise in software engineering; it is an essential competency for building the resilient and capable AI systems of the future.

]]>
https://codeguilds.com/building-an-mcp-client-in-python-from-scratch/feed/ 0
How Jira Users Can Set Up Client Budget Alerts Without Native Support https://codeguilds.com/how-jira-users-can-set-up-client-budget-alerts-without-native-support/ https://codeguilds.com/how-jira-users-can-set-up-client-budget-alerts-without-native-support/#respond Sun, 01 Nov 2026 21:20:14 +0000 https://codeguilds.com/how-jira-users-can-set-up-client-budget-alerts-without-native-support/ The moment of realization in client project management often arrives far too late. A client retains an agency for a strict 120-hour allocation, yet the internal team only discovers that the threshold has been breached at hour 118. By this point, the operational runway has evaporated, leaving account managers with little recourse other than an uncomfortable conversation regarding unbilled overages, scope creep, and retroactive change requests. What project managers actually require is an automated early-warning system—typically triggered at 80 or 90 percent capacity—providing a sufficient window to evaluate scope, negotiate a change order, or gracefully pause development before resources are hemorrhaging unpaid labor.

Despite its ubiquity as an issue-tracking and project-management backbone for tens of thousands of software development and professional services teams globally, Atlassian’s Jira suffers from a fundamental architectural limitation: while it tracks time diligently, it possesses no native, out-of-the-box concept of a financial or hour-based budget. Consequently, there are no default mechanisms to alert administrators when a project approaches critical financial thresholds. This systemic gap has forced organizations to cobble together workarounds using native Jira fields, scheduled automations, external spreadsheets, or third-party marketplace applications. Examining the mechanics, limitations, and operational realities of these approaches reveals how teams attempt to solve a problem that Atlassian’s core platform leaves unaddressed.

Establishing the Financial Baseline Before Tool Configuration

Before deploying any technical workaround within Jira, project operations teams must establish a rigid and unambiguous definition of what constitutes a "budget." Industry consultants and operations directors emphasize that technical configurations invariably fail if the foundational parameters remain vague. According to operational guidelines, administrators must document three distinct metrics for every active client: the precise numeric limit (expressed in cumulative hours or gross currency), the specific boundary of what that budget covers (whether bounded by an entire project, a targeted epic, a specific software version, or a complex Jira Query Language filter), and the chronological period governing the allocation (such as a one-off project cap or a recurring monthly reset).

Failing to define these boundaries beforehand renders downstream automations and tracking filters ineffective. If a budget rule attempts to evaluate "ACME Corp" without specifying whether it tracks billable hours, non-billable meetings, or rolling monthly retainers, the resulting data will quickly become corrupted by false positives and unmonitored overruns.

Native Option 1: Time Tracking Fields and Static Filters

The most rudimentary approach available natively within Jira relies upon the platform’s built-in time-tracking architecture. Every work item or issue within Jira contains default fields designed for capacity planning: Original Estimate, Remaining Estimate, and Time Spent.

To operationalize these fields, an administrator can construct a fundamental search filter—for instance, project = ACME—and configure the view as a list displaying the "Time Spent" column. By utilizing Jira’s native subscription feature, project managers can arrange for this list to be emailed to their inbox on a recurring schedule, such as every Monday morning, delivering a static snapshot of logged work items.

However, this method encounters severe functional limits. The filter merely lists individual work items; it possesses no internal capacity to aggregate or sum the hours across those items. Furthermore, because the filter is entirely divorced from the concept of a budget, it cannot evaluate whether the accumulated total has crossed a critical threshold, such as 80 percent of an allocated cap. Finally, the subscription mechanism operates as a blunt instrument, dispatching emails on a rigid schedule regardless of whether the project is healthy or catastrophically over budget, thereby contributing to alert fatigue among busy managers.

Native Option 2: Automation with Scheduled Rules

A more sophisticated, albeit brittle, native approach involves leveraging Jira Automation through scheduled rules. This method represents the closest an organization can get to an automated alert system using strictly out-of-the-box tools without purchasing third-party add-ons from the Atlassian Marketplace.

The architecture of this workaround relies on a scheduled rule that executes periodically—daily or weekly—to query issues associated with a specific client project, execute a lookup function, and calculate the aggregate sum of time spent. Smart values within Jira Automation can read the time spent per work item and sum them across lookup results.

Despite its promise, this approach introduces significant operational friction during execution. First, time-spent data aggregated across work items often encompasses historical logs spanning multiple months, complicating the tracking of recurring monthly budgets that require clean slate resets. Second, the alert thresholds must be hardcoded directly into the automation rule itself. Consequently, scaling this approach across dozens of clients requires administrators to clone, modify, and maintain a sprawling web of nearly identical automation rules, creating a substantial administrative overhead. If a threshold changes from 80 percent to 85 percent, every individual rule must be updated manually.

Native Option 3: Manual Spreadsheet Exports

Frustrated by the limitations of native Jira automation, many operations teams retreat to a traditional, external solution: the spreadsheet. This workflow involves exporting worklogs—capturing author data, exact dates, and logged hours—into a comma-separated values file, importing that data into Microsoft Excel or Google Sheets, calculating sums per client via pivot tables, and comparing those totals against a designated budget column using conditional formatting to turn cells red when consumption exceeds 80 percent.

This method possesses the virtue of absolute honesty: it works, provided human actors diligently maintain the data pipeline. Yet, its fragility lies precisely in that human dependency. In fast-paced agency environments, the data export quickly grows stale—often lagging by a week or more—and the primary notification mechanism relies entirely on an account manager remembering to open, refresh, and inspect the spreadsheet before catastrophe strikes. By the time a human notices the red cell, the billable hours may have already been expended.

Anatomy of an Effective Budget Warning System

Industry analysts tracking enterprise project management workflows have identified several core requirements that any functional budget-warning system must satisfy to prevent operational friction.

An effective warning framework must decouple the monitoring frequency from static schedules, operating continuously in the background while remaining resilient against data anomalies such as late-arriving worklogs. Crucially, the notification must be proactive, delivering contextual data directly to the stakeholders responsible for client communication—such as account directors and project managers—before the financial buffer is exhausted. The system must also accommodate hybrid billing structures, seamlessly handling situations where some clients operate under fixed-hour contracts while others maintain complex, multi-tiered financial retainers that reset on varying calendar schedules.

The Emergence of Specialized Marketplace Solutions

Recognizing the acute pain points generated by Jira’s lack of native budget tracking, third-party developers have introduced specialized applications to bridge the gap. One notable entrant in this ecosystem is Burnrate for Jira, developed by software engineering firm Kayabyte.

Applications of this class intercept the worklogs already being recorded by development and creative teams, enrich them using dated rate cards, and contrast those valuations against customizable budgets established per project, epic, fix version, or arbitrary JQL query. These tools allow project controllers to monitor budgets expressed simultaneously in hours, gross currency, or hybrid metrics, operating across one-off, monthly, or quarterly lifecycles.

Despite offering sophisticated tracking dashboards, these marketplace solutions often exhibit their own operational trade-offs. For instance, specific applications may lack native push notifications—such as automated emails or chat messages—when a budget shifts into an "At Risk" status, nor do they always feature native dashboard gadgets for immediate executive visibility. Instead, users must actively navigate to the application interface to review current project health. To compensate for this, organizations frequently pair these applications with routine administrative habits—such as reviewing the budget register during Monday morning standups—while retaining basic Jira automation rules as a secondary safety net.

Strategic Implications for Modern Professional Services

The ongoing struggle to manage client budgets within Jira underscores a broader tension within the enterprise software market: the friction between general-purpose issue trackers and specialized financial accounting tools. While Jira excels at tracking software bugs, sprint velocities, and task lifecycles, it was never architected to function as an enterprise resource planning (ERP) or professional services automation (PSA) platform.

For organizations managing only a handful of clients with simple hour-based budgets, deploying custom Jira automation rules or maintaining static spreadsheets remains a viable, cost-effective strategy. However, as agencies scale their client rosters, introduce complex financial retainers, and mix hourly billing with fixed-fee deliverables, the cost of manual oversight and undetected budget overruns escalates rapidly.

Ultimately, transitioning from reactive, post-mortem financial discoveries to proactive, automated threshold warnings is no longer an optional luxury for modern service providers. Whether achieved through meticulous native workflow engineering or specialized marketplace integrations, achieving real-time visibility into project burn rates remains essential for preserving client trust, protecting agency margins, and eliminating the dreaded, uncomfortable conversation at hour 118.

]]>
https://codeguilds.com/how-jira-users-can-set-up-client-budget-alerts-without-native-support/feed/ 0
GeForce NOW Launches Native Linux Client Marking a Strategic Shift for Cloud Gaming Accessibility https://codeguilds.com/geforce-now-launches-native-linux-client-marking-a-strategic-shift-for-cloud-gaming-accessibility/ https://codeguilds.com/geforce-now-launches-native-linux-client-marking-a-strategic-shift-for-cloud-gaming-accessibility/#respond Wed, 16 Sep 2026 22:29:44 +0000 https://codeguilds.com/geforce-now-launches-native-linux-client-marking-a-strategic-shift-for-cloud-gaming-accessibility/ The landscape of Linux gaming has undergone a significant transformation this month as NVIDIA officially transitioned its GeForce NOW cloud gaming application from a beta environment to a full-scale, general availability release for the Linux platform. This development provides a major alternative for Linux users who have historically faced challenges regarding hardware compatibility, anti-cheat software restrictions, and the rising costs of dedicated gaming components. While the service is not open-source, its native support for Ubuntu represents a notable expansion of the ecosystem, potentially offsetting the recent loss of platform support for several high-profile titles from major publishers.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Contextualizing the Shift in Linux Gaming Support

The arrival of a native Linux client for GeForce NOW follows a turbulent period for the Linux gaming community. Recently, Ubisoft sparked widespread criticism when it revoked support for the Linux operating system and the Steam Deck for its title For Honor. The publisher cited technical limitations inherent in anti-cheat software as the primary driver for the decision, despite the fact that the underlying security software had been compatible with the Linux kernel for years.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

This move highlights the ongoing friction between the open-source community and major game publishers. For many Linux users, the ability to play AAA titles relies heavily on compatibility layers like Valve’s Proton, which translates Windows-based API calls to Linux-compatible instructions. When developers actively restrict these paths, the user experience suffers. Cloud gaming, therefore, has evolved from a niche curiosity into a vital utility. By offloading the rendering workload to remote servers, GeForce NOW bypasses the need for local anti-cheat integration or specialized driver optimization, effectively insulating the user from the "second-class citizen" status often attributed to the platform.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Chronology and Development of the Native Linux Build

NVIDIA’s journey to this point has been iterative. The service began as a browser-based experience, which provided basic functionality but often lacked the low-latency performance and deep system integration required for competitive gaming. The transition to a native Linux binary represents the culmination of a multi-year effort to refine the stream decoding process specifically for Linux-based distributions.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

The beta period allowed engineers to stress-test the application against various kernel configurations and display protocols. While the official documentation initially emphasized the use of Xorg display sessions for optimal performance, real-world testing on the latest Ubuntu 26.04 LTS release has demonstrated that the client is now robust enough to function effectively on Wayland, the modern display server protocol that has become the standard for most major Linux distributions. This expansion of compatibility suggests that while Ubuntu is the primary focus, the underlying architecture is sufficiently flexible to support other major distributions, such as Fedora or Arch Linux, with minimal modification.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Technical Performance and Infrastructure Analysis

The core value proposition of GeForce NOW lies in its server-side infrastructure. Rather than relying on the user’s local hardware to render frames, the service streams high-fidelity visuals from clusters of NVIDIA RTX-powered GPUs. This is particularly advantageous in the current market, where the cost of high-end RAM and storage continues to fluctuate, making it difficult for many enthusiasts to build or upgrade local gaming rigs.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

In practical application, the local device—regardless of whether it is a powerful workstation or a budget laptop—only requires sufficient processing power to decode the incoming high-bitrate video stream. During testing, users running the client on hardware equipped with modest GPUs (such as the RTX 3050 with 6GB of VRAM) achieved performance parity with high-end desktop setups, provided their network infrastructure met the requisite bandwidth demands.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

The service relies on an existing library model rather than a closed storefront. By integrating with platforms such as Steam, Epic Games, GOG, and PC Game Pass, users can leverage their existing purchases. This approach is instrumental in securing adoption, as it does not force users to repurchase content. However, the requirement to link individual store accounts remains a point of friction; users have noted that a more streamlined, "one-click" authentication process for all linked storefronts would significantly enhance the user experience.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Network Requirements and Latency Implications

The primary bottleneck for cloud gaming remains network latency. NVIDIA’s internal network diagnostic tools explicitly warn users against relying on standard wireless connections for competitive titles. During testing, packet loss and stuttering were observed on standard Wi-Fi configurations, while a transition to a wired Ethernet connection significantly improved stability and frame delivery.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Analysis of the streaming metrics during peak usage—such as in 100-player battle royale scenarios—shows that latency can remain within an acceptable range (45ms to 50ms) for most genres. However, for titles requiring frame-perfect reactions, the inherent overhead of network transit remains a technical hurdle. Users utilizing the "Ultimate" tier of the service, which provides access to RTX 4080-class hardware, can achieve frame rates upwards of 160 FPS, though the actual user-perceived experience is tethered to the quality of the stream.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Official Stance and Market Implications

While NVIDIA has not issued a detailed public statement regarding its long-term roadmap for the Linux ecosystem, the release of this native client serves as a tacit acknowledgment of the platform’s growing importance. The move is strategically sound: by capturing a segment of the market that is otherwise unable to run modern software due to hardware or compatibility barriers, NVIDIA expands its total addressable market without needing to convince publishers to port their games to Linux natively.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Critics of the service point to its proprietary, closed-source nature as a fundamental conflict with the values of the Free and Open Source Software (FOSS) community. Indeed, the application does not adhere to the principles of software freedom. However, from a pragmatic perspective, the existence of a high-performance, native application provides a necessary bridge for users who wish to participate in modern gaming while maintaining a Linux-based operating system.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

Future Outlook for Cloud Gaming on Linux

The success of the GeForce NOW Linux client may set a precedent for other cloud service providers. As the industry shifts toward subscription-based, remote-rendering models, the operating system of the client device becomes increasingly irrelevant. For the Linux community, this offers a dual-edged sword: it provides immediate access to top-tier gaming experiences, but it also reduces the immediate pressure on game developers to support the Linux platform natively.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

If NVIDIA continues to iterate on this client—optimizing for Wayland, expanding compatibility with more distributions, and simplifying account management—it is likely that the "second-class" label will continue to fade. The next phase for the platform will likely involve deeper integration with Linux desktop environments, including native support for controller mapping, HDR, and variable refresh rate (VRR) technologies, which are currently being refined across the Linux kernel and display server ecosystem.

I Spent Time With GeForce NOW to See If It's Gameable on Linux

As it stands, the launch of the native GeForce NOW app on Linux is a milestone. It acknowledges the technical maturity of the Linux desktop and provides a viable, professional-grade solution for gamers who refuse to switch to Windows, regardless of the software restrictions imposed by game developers. For the average user, the choice between local hardware and cloud streaming is no longer a matter of compatibility, but a matter of preference and network reliability. As connectivity infrastructure improves globally, the significance of this move will likely only grow, cementing cloud gaming as a pillar of the modern Linux desktop experience.

]]>
https://codeguilds.com/geforce-now-launches-native-linux-client-marking-a-strategic-shift-for-cloud-gaming-accessibility/feed/ 0
GitHub Revolutionizes Issues Navigation Performance with Client-Side Architecture Overhaul https://codeguilds.com/github-revolutionizes-issues-navigation-performance-with-client-side-architecture-overhaul/ https://codeguilds.com/github-revolutionizes-issues-navigation-performance-with-client-side-architecture-overhaul/#respond Wed, 22 Jul 2026 22:46:31 +0000 https://codeguilds.com/github-revolutionizes-issues-navigation-performance-with-client-side-architecture-overhaul/ GitHub has undertaken a significant architectural redesign of its Issues navigation system, fundamentally altering how developers interact with the platform. This ambitious overhaul aims to drastically reduce perceived latency by shifting a substantial portion of the computational workload to the client-side. Through the strategic implementation of client-side caching, predictive prefetching, and service worker-based request handling, the engineering team has successfully elevated the percentage of "instant" navigation experiences from a mere 4% to an impressive 22%. This transformative effort directly addresses a pervasive challenge in the realm of large-scale web applications: mitigating the frustrating delays often incurred by repetitive network requests and client-side initialization during frequently executed workflows.

The impetus for this architectural shift stemmed from a meticulous analysis of user behavior, specifically focusing on GitHub Issues users who frequently navigate between individual issues, various lists, and related views. In such high-frequency interaction scenarios, the traditional server-centric model often led to redundant data fetches, even for information that had been recently retrieved. Each click, each navigation, would typically trigger a fresh request to backend services, introducing perceptible delays that fragmented the developer’s workflow and diminished overall productivity. Recognizing this bottleneck, GitHub’s engineering team embarked on a mission to optimize these crucial user journeys.

The Impetus for Change: Addressing Developer Friction

In the fast-paced world of software development, tools that facilitate seamless workflow are paramount. GitHub, as the de facto standard for version control and collaborative development, serves millions of developers daily. For these users, any friction in their interaction with the platform, particularly within core functionalities like Issue tracking, can translate into significant lost time and cognitive load. Latency, even in milliseconds, is not merely a technical measurement; it profoundly impacts user experience and productivity. Alexander Lelidis, a senior software engineer at GitHub, articulated this sentiment succinctly, stating, "Latency isn’t just a metric. It’s a context switch." This perspective underscores the understanding that delays force users to disengage from their primary task, disrupting their concentration and forcing them to re-establish their mental state – a costly cognitive burden.

Before this overhaul, developers navigating GitHub Issues would frequently encounter delays, often experiencing a full page reload or a noticeable spinner while the application fetched data from the server. This was particularly pronounced for power users who might open, review, and close dozens of issues in a single session. The cumulative effect of these micro-latencies created a less fluid, more disjointed experience. The challenge was to transform these repetitive, delay-prone interactions into fluid, near-instantaneous transitions, allowing developers to maintain their focus and flow state.

A Deep Dive into the Client-Side Revolution

The core of GitHub’s solution lies in adopting a "local-first" approach. This paradigm prioritizes rendering available data immediately from the user’s browser, significantly reducing dependence on immediate server responses. Concurrently, background processes asynchronously retrieve and update newer information as needed, ensuring data consistency without impeding the user interface. This strategy is a cornerstone of modern web application design, often seen in progressive web apps (PWAs), where responsiveness and offline capabilities are key.

To achieve this, GitHub implemented a multi-layered client-side storage strategy:

  1. In-Memory Caching: This layer holds frequently accessed data during an active user session. It offers the fastest retrieval times as data is stored directly in the browser’s RAM. Ideal for rapid navigation within a short timeframe, it ensures that recently viewed issues or lists load almost instantaneously. However, its ephemeral nature means data is lost once the session ends or the tab is closed.

    GitHub Increased Instant Navigation from 4% to 22% by Rethinking Client Side Architecture
  2. IndexedDB for Persistent Storage: For data that needs to persist across sessions, even after the browser is closed, GitHub leverages IndexedDB. This low-level API provides a robust, client-side NoSQL database within the browser, capable of storing large amounts of structured data. This is crucial for enabling the "local-first" experience, allowing the application to render stale data quickly while background processes fetch updates. This persistent cache ensures that even on subsequent visits, the user experience remains highly responsive.

Beyond caching, two other critical components underpin the new architecture:

  • Predictive Prefetching (Preheating): This intelligent mechanism anticipates user navigation patterns to proactively fetch and store likely required data before the user explicitly requests it. By analyzing common workflows and navigation sequences within GitHub Issues, the system populates relevant cache entries in advance. For instance, if a user frequently navigates from an issue list to the details of the top issue, the system might prefetch the top issue’s data in anticipation. This "preheating" significantly enhances cache effectiveness, as the data is often already present by the time the user clicks.

  • Service Worker-Based Request Handling: Service workers act as programmable proxies between the browser and the network. They are JavaScript files that run in the background, separate from the main web page, giving developers fine-grained control over network requests. In GitHub’s implementation, service workers intercept all browser requests for GitHub Issues content.

    • Upon interception, the service worker first checks the local caches (in-memory and IndexedDB) for the requested resource.
    • If the data is available and deemed "fresh enough" (according to a predefined cache-control policy), it is immediately served from the cache, resulting in near-instantaneous display.
    • If the data is available but potentially stale, the service worker employs a "stale-while-revalidate" strategy. It serves the cached (stale) data immediately to the user, providing an instant visual, and then simultaneously initiates a background network request to the server to fetch the latest version. Once the fresh data arrives, the cache is updated, and the UI can be asynchronously refreshed if necessary, ensuring eventual consistency.
    • If the data is not found in the cache or is explicitly marked as invalid/expired, the request proceeds through the normal network path to the backend servers.

This sophisticated interplay of caching layers, predictive fetching, and service workers creates a robust, highly responsive user experience. The architectural diagram provided by GitHub illustrates this elegantly, showing how client-side components manage data flow, intercept requests, and prioritize immediate display over absolute real-time freshness in certain contexts.

Quantifying the Impact: Dramatic Performance Gains

The results of this extensive engineering effort are compelling and underscore the profound impact of optimizing for perceived performance. GitHub measured improvements across various percentiles of navigation latency distributions, offering a comprehensive view of the benefits:

  • P10 Latency: Decreased from approximately 600 milliseconds to a remarkable 70 milliseconds. This means the fastest 10% of navigations are now nearly nine times quicker.
  • P25 Latency: Improved from 800 milliseconds to 120 milliseconds, representing a seven-fold speedup for a quarter of all navigations.
  • Median Latency (P50): The most frequently observed latency dropped significantly from 1,200 milliseconds (1.2 seconds) to 700 milliseconds. This near-halving of the median response time means that for the average user, navigating Issues feels dramatically faster.
  • P75 Latency: Reduced from 1,800 milliseconds to 1,400 milliseconds.
  • P90 Latency: Improved from 2,400 milliseconds to 2,100 milliseconds.

These figures are not just abstract numbers; they translate directly into a smoother, more efficient workflow for developers. The increase from 4% to 22% instant navigation experiences is particularly impactful, indicating that a significant portion of user interactions now feel seamless and immediate. This level of responsiveness is crucial for maintaining developer "flow state," where interruptions are minimized, and cognitive focus remains on problem-solving rather than waiting for tools to respond.

Strategic Nuances and Expert Insights

The engineering community has recognized the depth and thoughtfulness behind GitHub’s approach, with several experts offering valuable distinctions and broader implications.

GitHub Increased Instant Navigation from 4% to 22% by Rethinking Client Side Architecture

BareStack, a company specializing in application architecture, highlighted a crucial nuance regarding prefetching. They noted, "Prefetching pays when the data graph is small and read-heavy like Issues. Most applications have a larger graph with read/write collisions, so prefetched views may re-fetch after landing. The reusable pattern is the shell-first render + cache-hit hydration, not prefetching itself." This comment provides essential context: while prefetching is highly effective for GitHub Issues, where data is often consumed without immediate modification and the data structure is relatively contained, its applicability in other, more complex, or write-heavy applications might be limited. The underlying, more universally applicable pattern, according to BareStack, is the "shell-first render" (displaying a basic UI skeleton quickly) combined with "cache-hit hydration" (populating that shell with cached data). This distinction is vital for other developers considering similar performance optimizations.

Oguz Guven, an industry expert, pointed out another significant lesson: "Shifting from the p99 tail to distribution quality is the real engineering maturity here." This comment applauds GitHub’s holistic approach to performance measurement. Many organizations focus solely on improving average (P50) or even P99 (the worst 1%) latency. However, focusing on "distribution quality" implies optimizing across the entire spectrum of user experiences, ensuring that not just the fastest, but also the moderately slow and even the relatively slower interactions see meaningful improvements. This reflects a mature understanding that a truly performant system benefits all users, not just the majority or a select few. The documented improvements across P10, P25, P50, P75, and P90 exemplify this commitment to broad-based enhancement.

Balancing Act: Freshness vs. Responsiveness

A critical architectural decision in this redesign involved balancing data freshness with immediate responsiveness. In a world where real-time updates are often expected, deliberately allowing some content to be displayed from a potentially stale cache requires careful consideration. GitHub’s approach is a testament to the effectiveness of eventual consistency models in user-facing applications.

Instead of waiting for every interaction to receive the absolute latest server state before rendering, the system prioritizes displaying something instantly. This "stale-while-revalidate" pattern means users see relevant data without delay, even if that data might be a few seconds or minutes old. The background synchronization processes then work diligently to update the cached information, ensuring consistency with backend data. For a collaborative platform like GitHub, this implies a calculated risk: a user might briefly see an issue status that was updated moments ago by a colleague but hasn’t yet propagated to their local cache. However, for the vast majority of navigation actions, the perceived benefit of instant loading far outweighs the minimal risk of temporary staleness. The UI can be designed to subtly indicate when data is being refreshed or has been updated, providing transparency to the user. This trade-off is a hallmark of sophisticated web performance engineering, where user experience dictates the optimal balance.

Broader Implications for Web Development and GitHub’s Ecosystem

GitHub’s successful implementation of a client-side architecture for Issues navigation sets a new benchmark for large-scale web applications. Its implications extend far beyond the platform itself:

  • For Developer Productivity: By minimizing latency and reducing context switching, GitHub directly contributes to enhanced developer productivity. Developers spend less time waiting and more time coding, reviewing, and collaborating. This can have a ripple effect across the entire software development lifecycle for teams relying heavily on GitHub Issues for project management.
  • For Web Development Trends: This initiative reinforces the growing trend towards highly interactive, client-side-rendered applications that leverage modern browser APIs like Service Workers and IndexedDB. It demonstrates that even for complex, data-rich platforms, significant performance gains are achievable through strategic client-side optimization. It encourages other platforms to explore similar "local-first" or "offline-first" strategies.
  • For GitHub’s Ecosystem: Improved performance in a core feature like Issues enhances the overall stickiness and user satisfaction with GitHub. A faster, more reliable experience can foster greater engagement and make the platform even more indispensable to its user base. It also showcases GitHub’s commitment to continuous improvement and leveraging cutting-edge web technologies.
  • Educational Value: The detailed blog post and the architectural insights shared by GitHub provide an invaluable case study for developers and architects grappling with similar performance challenges. It offers concrete examples of how to apply advanced web technologies to solve real-world problems at scale.

In conclusion, GitHub’s architectural overhaul of its Issues navigation represents a significant leap forward in web application performance. By meticulously redesigning the interaction flow and embracing a robust client-side strategy, the engineering team has not only delivered dramatic improvements in speed and responsiveness but has also provided a blueprint for how large, complex web platforms can optimize for the human experience. This move underscores the understanding that in the digital age, speed is not just a feature, but a fundamental expectation that underpins productivity and user satisfaction.

]]>
https://codeguilds.com/github-revolutionizes-issues-navigation-performance-with-client-side-architecture-overhaul/feed/ 0
Server state and client state: why React apps need two libraries https://codeguilds.com/server-state-and-client-state-why-react-apps-need-two-libraries/ https://codeguilds.com/server-state-and-client-state-why-react-apps-need-two-libraries/#respond Mon, 20 Jul 2026 10:47:45 +0000 https://codeguilds.com/server-state-and-client-state-why-react-apps-need-two-libraries/ The architectural landscape of client-side applications, especially those built with frameworks like React, has evolved significantly. Initially, state management focused primarily on data owned and controlled entirely by the application itself – the client state. Libraries like Redux emerged as powerful solutions to centralize and predict client state changes, bringing order to increasingly complex user interfaces. However, as applications became more interconnected and reliant on external APIs, the challenge of managing data originating from remote servers became a dominant concern. This remote data, which is inherently volatile and external to the client’s direct control, demanded a different approach. The current industry consensus, supported by widespread adoption of specialized tools, underscores that a "one-size-fits-all" approach to state management is inadequate for the sophisticated demands of today’s applications. This critical distinction is not merely an academic point but a practical necessity, especially as applications scale in complexity and integrate into distributed systems, such as those leveraging Module Federation.

The Genesis of State Management Challenges

The journey of state management in client-side development is marked by continuous innovation driven by evolving application needs. In the early days of single-page applications (SPAs), managing UI state across various components quickly became a labyrinthine task. React’s component-based architecture offered a declarative way to build UIs, but local component state (using setState or useState) proved insufficient for global application state. This led to the "prop drilling" problem and the need for more centralized state management patterns.

The introduction of Flux architecture by Facebook and its popular implementation, Redux, provided a robust, predictable container for application state. Redux championed a single, immutable store, with state changes occurring only through pure reducers in response to dispatched actions. This model excelled at managing client-specific data like UI themes, user preferences, form drafts, or authentication status, which are entirely controlled by the application. However, as applications started fetching more and more data from backend APIs, developers began to shoehorn server-originated data into their Redux stores. This practice, while initially functional for small applications, exposed the inherent limitations of Redux when dealing with the asynchronous, often stale, and network-dependent nature of server state. Middleware like Redux Thunk or Redux Saga were introduced to handle side effects, including API calls, but the core Redux store was not purpose-built for the complexities of data fetching and caching.

The increasing prevalence of REST APIs and later GraphQL APIs highlighted a gap. Developers found themselves repeatedly writing boilerplate code for:

  • Tracking loading states (isLoading, isError).
  • Handling errors and retries.
  • Implementing caching mechanisms to prevent redundant network requests.
  • Ensuring data freshness and invalidating stale data.
  • Deduplicating requests for the same resource.

These repetitive tasks signaled a fundamental mismatch between the requirements of server-originated data and the capabilities of client-state management libraries. This realization spurred the development of a new class of libraries specifically designed to address the challenges posed by server state.

Deconstructing Server State: The Volatile Copy

Server state represents a local, client-side copy of data that fundamentally resides on a remote server. This data is not owned by the client application; rather, the client merely holds a snapshot of it. The crucial implication is that the original data on the server can change at any moment, rendering the client’s local copy potentially stale. This inherent volatility dictates a complex set of requirements for its effective management:

  1. Caching: To optimize performance and reduce network load, server data must be cached locally. This prevents unnecessary refetches when a user navigates away from and then back to a view that requires the same data. Effective caching strategies include in-memory caches, disk caches, and often involve time-based or event-driven invalidation.
  2. Deduplication: When multiple components or parts of an application request the same piece of server data concurrently, a server-state management library must intelligently deduplicate these requests, ensuring that only a single network call is made. This prevents redundant requests that can overload the server and consume unnecessary client resources.
  3. Background Refetching: To ensure data freshness without explicit user action, server state often benefits from automatic background refetching. This can occur on window focus, network reconnection, or at predefined intervals, quietly updating the UI if the underlying server data has changed. This contributes significantly to a responsive and up-to-date user experience.
  4. Retries: Network instability is a fact of life. Robust server-state management includes automatic retry mechanisms with exponential backoff strategies to handle transient network failures gracefully, improving application resilience.
  5. Invalidation: After a write operation (e.g., creating a new user, updating a product), related cached data on the client becomes stale and must be invalidated. This triggers a refetch of the affected data, ensuring the UI reflects the most current information. Sophisticated invalidation strategies are crucial for maintaining data consistency.
  6. Garbage Collection: Over time, the client’s cache can accumulate data that is no longer needed or watched by any active component. Garbage collection mechanisms automatically prune this unused data, freeing up memory and preventing memory leaks.

These features are not "nice-to-haves"; they are fundamental necessities for any application interacting heavily with external APIs. Building these features manually for every API endpoint would be an enormous undertaking, introducing significant boilerplate and potential for errors. This is precisely where specialized server-state libraries shine, abstracting away these complexities behind simple, declarative APIs.

Understanding Client State: The Application’s Domain

In stark contrast to server state, client state is data that the application "owns outright." This data is typically created, managed, and consumed entirely within the client environment. It doesn’t rely on an external source for its truthfulness; whatever the app holds is, by definition, correct within its scope. Examples of client state include:

Server state and client state: why React apps need two libraries
  • UI-specific state: Whether a modal dialog is open or closed, the current tab selected in a navigation component, the visibility of a tooltip.
  • Form drafts: User input in forms that hasn’t yet been submitted to a server.
  • User preferences: The selected theme (dark/light mode), preferred language, layout settings.
  • Authentication tokens: While these are received from a server, their secure storage and management within the client (often in secure storage rather than a global JS state store) fall under client-side concerns, impacting UI elements like user menus.
  • Selected items: A chosen account in a dropdown, a sort order applied to a list, items added to a shopping cart before checkout.

The requirements for managing client state are considerably simpler:

  • Storage: It needs a place to be held.
  • Reactivity: Components need to be able to react to changes in this state.
  • Persistence (optional): Some client state, like user preferences or authentication tokens, might need to survive application restarts, often achieved through local storage or secure device storage.

Crucially, client state does not suffer from staleness in the same way server state does. There’s no external "original" to compare against, hence no need for caching, background refetching, deduplication, or complex invalidation logic. A library built for client state focuses on providing a performant and predictable way to update and observe data within the application’s boundaries.

The Peril of Undifferentiated State Management

The primary mistake developers make is to treat server state and client state as degrees of the same thing, attempting to manage both using a single, general-purpose state library. While a Redux store with redux-thunk might technically work for API calls, it forces developers to rebuild sophisticated server-state machinery by hand. This includes:

  • Manually tracking loading and error states for each request.
  • Implementing custom caching logic, often prone to bugs and difficult to invalidate correctly.
  • Developing bespoke deduplication strategies.
  • Writing boilerplate for retries and background refreshes.

This approach is manageable for small applications with limited data fetching. However, as an application grows, this manual effort quickly becomes a significant burden, essentially turning into a "second job" of maintaining a custom, often inferior, data-fetching layer. It diverts resources from core feature development and introduces a high risk of inconsistencies and performance issues. Conversely, attempting to manage simple client state with a heavy, feature-rich server-state library would introduce unnecessary overhead and complexity for tasks that require minimal machinery.

Specialized Tooling: The Path to Efficiency

The industry has converged on a pattern of using specialized tools for each state type, leading to more efficient development and robust applications. Two prominent pairings exemplify this approach:

1. Redux Toolkit (RTK) and RTK Query: The Integrated Ecosystem

For teams already deeply embedded in the Redux ecosystem, the combination of Redux Toolkit (RTK) and RTK Query offers a streamlined, "batteries-included" solution.

  • Redux Toolkit (RTK): This is the official opinionated solution for efficient Redux development. It simplifies Redux setup, reduces boilerplate, and provides utilities like createSlice for defining client state reducers and actions with minimal code. For instance, a createSlice for managing a user’s theme would be concise and straightforward, solely focused on holding and updating the theme value.
  • RTK Query: Built on top of Redux Toolkit, RTK Query is a powerful data-fetching and caching library specifically designed for server state. It automatically handles all the complex aspects of data fetching:
    • Declarative API: Developers define API endpoints using a simple builder pattern, specifying queries (for fetching data) and mutations (for sending data).
    • Automatic Caching and Deduplication: RTK Query manages an intelligent cache, ensuring that identical requests are deduplicated and that data is served from the cache when available.
    • Request Lifecycle Management: It automatically tracks loading, success, and error states, providing hooks like useGetProfileQuery that expose this information directly to components.
    • Invalidation and Refetching: It supports cache invalidation based on "tags," allowing developers to mark specific types of data as stale after a mutation, triggering automatic refetches where needed.
    • Optimistic Updates: Facilitates optimistic UI updates, enhancing user experience by immediately reflecting changes while the server request is in flight.

With RTK and RTK Query, developers maintain a single Redux store, but server state and client state are handled by distinct, purpose-built tools within it. Client state resides in plain createSlice slices, while server state is managed by RTK Query’s dedicated layer, leveraging its comprehensive caching and lifecycle machinery.

// RTK Query for server state
import  createApi, fetchBaseQuery  from '@reduxjs/toolkit/query/react';

export const api = createApi(
  reducerPath: 'api',
  baseQuery: fetchBaseQuery( baseUrl: '/api' ),
  endpoints: builder => (
    getProfile: builder.query<Profile, void>(
      query: () => '/users/me',
      // tagTypes for invalidation
      providesTags: ['Profile'], 
    ),
    updateProfile: builder.mutation<Profile, Partial<Profile>>(
      query: (body) => (
        url: '/users/me',
        method: 'PATCH',
        body,
      ),
      // Invalidates 'Profile' tag after successful update
      invalidatesTags: ['Profile'], 
    ),
  ),
);

export const  useGetProfileQuery, useUpdateProfileMutation  = api;

// In a component:
const  data: profile, isLoading, error  = useGetProfileQuery();

// Redux Toolkit createSlice for client state
import  createSlice  from '@reduxjs/toolkit';

const settingsSlice = createSlice(
  name: 'settings',
  initialState:  theme: 'system', notificationsEnabled: true ,
  reducers: 
    setTheme: (state, action) => 
      state.theme = action.payload;
    ,
    toggleNotifications: (state) => 
      state.notificationsEnabled = !state.notificationsEnabled;
    ,
  ,
);

export const  setTheme, toggleNotifications  = settingsSlice.actions;
export default settingsSlice.reducer;

// In a component:
const theme = useSelector((state) => state.settings.theme);
const dispatch = useDispatch();
const handleThemeChange = (newTheme) => dispatch(setTheme(newTheme));

2. TanStack Query (React Query) and Zustand: The Modular Approach

For fresh applications without an existing Redux commitment, or for developers who prefer a more decoupled and lightweight approach, the pairing of TanStack Query (formerly React Query) and Zustand offers compelling advantages.

Server state and client state: why React apps need two libraries
  • TanStack Query: This library is a powerful, framework-agnostic (though most commonly used with React) data-fetching tool that manages server state entirely outside of a traditional global store. It maintains its own sophisticated cache client, handling:

    • Automatic Refetching: Queries automatically refetch on window focus, network reconnect, and optional intervals.
    • Stale-While-Revalidate: A common caching strategy where cached data is immediately displayed while a fresh request is made in the background.
    • Query Keys: Uses a unique queryKey array to identify and manage cached data, enabling granular control over invalidation and refetching.
    • Mutations: Provides robust tools for managing data mutations, including optimistic updates and automatic query invalidation.
  • Zustand: A minimalist, fast, and scalable state management solution for client state. It’s known for its simplicity, using a small API based on React hooks. Zustand stores are created outside of React components and can be consumed directly, offering excellent performance and a low learning curve. It’s ideal for holding simple client-side values without the overhead of larger state management solutions.

This pairing splits state management across two libraries, with TanStack Query managing the server cache independently, and Zustand handling the lightweight client state. This modularity can lead to smaller bundle sizes if Redux is not otherwise required, and offers a highly flexible architecture.

// TanStack Query for server state
import  useQuery, QueryClient, QueryClientProvider  from '@tanstack/react-query';

const queryClient = new QueryClient();

async function getProfile() 
  const response = await fetch('/api/users/me');
  if (!response.ok) throw new Error('Network response was not ok');
  return response.json();


export const useProfile = () =>
  useQuery( queryKey: ['profile'], queryFn: getProfile );

// In a component:
const  data: profile, isLoading, error  = useProfile();
// To invalidate: queryClient.invalidateQueries( queryKey: ['profile'] );

// Zustand for client state
import  create  from 'zustand';

interface SettingsState  'dark') => void;
  toggleNotifications: () => void;


export const useSettings = create<SettingsState>()((set) => (
  theme: 'system',
  notificationsEnabled: true,
  setTheme: (theme) => set( theme ),
  toggleNotifications: () => set((state) => ( notificationsEnabled: !state.notificationsEnabled )),
));

// In a component:
const theme = useSettings((state) => state.theme);
const setTheme = useSettings((state) => state.setTheme);
const handleThemeChange = (newTheme) => setTheme(newTheme);

Both pairings are highly effective because they acknowledge and cater to the distinct needs of server and client state, avoiding the pitfalls of a monolithic state management approach.

Choosing the Right Split: A Strategic Decision

There is no universally "best" pairing; the optimal choice depends on several factors:

  • Existing Ecosystem: If a team is already heavily invested in Redux, leveraging RTK and RTK Query minimizes context switching and re-tooling.
  • Project Scale and Complexity: For small applications with minimal API interaction, a single Redux store with thunks might suffice initially. However, developers should be vigilant for the moment they start writing custom caching or invalidation logic – that is the clear signal to adopt a specialized server-state library.
  • Team Familiarity and Preferences: If the team is comfortable with the Redux paradigm, RTK Query provides a natural extension. If a more lightweight, hook-centric approach is preferred, TanStack Query and Zustand offer excellent modularity.
  • Performance Requirements: While both solutions are highly performant, some teams might prefer the external cache of TanStack Query for its specific optimizations or the minimal footprint of Zustand for client state.

Industry trends, as observed in developer surveys (e.g., State of JS, Stack Overflow Developer Survey data), increasingly indicate a strong preference for specialized data-fetching libraries like TanStack Query and RTK Query. This shift reflects a growing understanding that efficient server state management is a distinct and complex problem that warrants dedicated solutions, moving beyond the traditional role of client-side state containers.

Broader Implications: Micro-Frontends and Distributed Architectures

The distinction between server and client state becomes even more critical and challenging in advanced architectural patterns like Module Federation. In a micro-frontend or micro-app setup, where different parts of an application (federated modules) are developed and deployed independently but loaded at runtime into a single shell application, state coordination is a significant hurdle.

When multiple teams contribute to a larger application through federated modules, questions arise:

  • Whose cache is authoritative? If two modules independently fetch the same user profile, should they each maintain their own cache, or should there be a shared, centralized cache for server state?
  • How is data consistency maintained across modules? If one module updates a user’s status, how do other modules consuming that user’s data get updated reliably and promptly?
  • How do client states interact? While client state is typically local to a module, there might be global client preferences (e.g., language) that need to be shared.

A clear separation of server and client state, managed by their respective specialized tools, provides a robust foundation for addressing these challenges. A well-designed system might centralize server state caching in the shell application or a designated "data module," ensuring a single source of truth for remote data across all federated modules. Individual modules can then manage their specific client state (e.g., local form data, UI toggles) using lightweight solutions like Zustand, without interfering with the global server state cache. This architectural clarity minimizes coordination overhead, reduces conflicts, and enhances the overall maintainability and scalability of distributed applications. The upcoming discussion on how RTK Query’s cache tags and TanStack’s query keys handle invalidation will further highlight how these subtle API differences profoundly impact multi-team development workflows.

In conclusion, recognizing the fundamental differences between server state and client state is not merely an optimization; it is a foundational principle for modern application development. By adopting specialized libraries like RTK Query/TanStack Query for server state and Redux Toolkit/Zustand for client state, developers can significantly reduce boilerplate, improve performance, enhance user experience, and build applications that are more resilient, maintainable, and scalable, especially as they evolve into complex, distributed systems. The era of a single, monolithic state management solution for all data types is definitively over; the future lies in intelligent, purpose-built tools.

]]>
https://codeguilds.com/server-state-and-client-state-why-react-apps-need-two-libraries/feed/ 0