AI & Artificial Intelligence
Explore AI foundations, generative models, agents, developer tools, and responsible use.
LinkSpot Knowledge
Explore AI foundations, generative models, agents, developer tools, and responsible use.
Learn programming fundamentals, languages, web and mobile development, databases, testing, and architecture.
Explore cloud platforms, Linux operations, containers, DevOps, and networking.
Learn practical web and network security, identity, privacy, and security operations.
Explore data engineering, SQL, analytics, visualization, and data quality.
Explore PCs, semiconductors, mobile devices, IoT, robotics, and open web standards.
Discover developer, collaboration, and design tools plus no-code and low-code workflows.
LinkSpot Knowledge
Explore practical guides and knowledge by category.
1,879 articles
HTTP conditional requests let a client tell the server which representation it last saw and make an operation depend on whether that state is still current. For reads, ETag with If-None-Match can validate a cached representation and avoid resending its body with 304. For updates, If-Match can prevent a stale edit from overwriting another user's change. The server must support and evaluate the condition correctly.
HTTP caching stores a response in a browser or intermediary so it can be reused while fresh or revalidated when stale. First define which request variants may share a response, then express freshness and storage scope with Cache-Control. This guide follows RFC 9111 and RFC 9110; products may differ.
In Hono, register shared middleware with app.use() and path handlers with methods such as app.get(). Handlers run in registration order, and a handler that returns a response ends request processing. Put shared middleware before routes and fallback behavior after specific routes. This article follows the current Hono routing and middleware APIs to build a health endpoint and a custom 404 response.
A health check endpoint lets an application or operations platform determine whether a process responds and whether an instance should receive new traffic. Separate liveness from readiness, and decide what each result should trigger: restart, traffic routing, or an alert.
In HAProxy, a frontend accepts client connections on an address and port, while a backend defines the server pool that handles requests. For a small HTTP service, configure a distribution method and health checks, validate the configuration, then verify real responses. This guide follows the HAProxy 3.2 LTS docs and shows a basic Linux HTTP backend.
HAL (Hypertext Application Language) is a convention for adding links and related resources to JSON resource representations. An application/hal+json document combines ordinary data fields with links and embedded. However, the HAL document is an expired individual Internet-Draft, not an RFC or an IETF standard. Use it to understand existing HAL APIs, but do not present it as a current consensus standard or the default format for every API.
Gunicorn is a process manager and application server for Python WSGI applications. In production, place it behind a front proxy such as Nginx and keep Gunicorn on a local or private interface. A synchronous worker handles one request at a time, so the proxy must buffer slow clients; and when Gunicorn reads the original HTTPS scheme from forwarded headers, limit which proxy IPs it trusts. This procedure follows the current Gunicorn docs for a Linux WSGI app such as Django or Flask behind one Nginx proxy. It does not cover ASGI, issuing TLS certificates, or complete service files for a particular system.
gRPC is a remote procedure call (RPC) framework that lets one program call functionality implemented by another program across a network. Teams define a service and its messages as a contract, then generate client and server code from it, making communication between services written in different languages more consistent. It is especially useful for service-to-service calls and continuous data flows, but browser access and public APIs centered on readable JSON can require extra components and operational work.
gRPC-Web provides a browser client API and a browser-oriented transport protocol for web code to call a gRPC backend. Browsers do not expose all native gRPC HTTP/2 framing and trailer behavior directly, so a compatible proxy such as Envoy commonly forwards gRPC-Web requests to the native gRPC backend. The current gRPC-Web JavaScript implementation supports unary and some server-streaming calls, but not client-streaming or bidirectional streaming. Check the current capabilities of the specific client and transport mode before adopting it.
A gRPC unary RPC is a call in which the client sends one request message and the server returns one response message. It fits a bounded lookup or command, and a .proto declaration such as rpc Method(Request) returns (Response); expresses that shape. One response does not make a network call behave like an immediate local function or make automatic retries safe. Design a realistic deadline, gRPC status handling, and possible duplicate execution together.
gRPC server reflection is an optional feature that lets clients query a server for the Protocol Buffers services and message types it exposes through a standard RPC. Tools such as grpcurl can use this information to inspect methods and message shapes, then encode human-readable JSON requests as Protobuf. Reflection is not enabled by default; the service owner configures whether and where it is exposed.
A gRPC deadline is the latest point at which a client is willing to wait for a response. When it expires, the RPC can finish with DEADLINEEXCEEDED, but work already performed by the server is not automatically undone. For a request that crosses multiple services, propagate the remaining time and cancellation to downstream calls to avoid wasting resources.
A gRPC bidirectional streaming RPC lets the client and server each send and receive multiple messages during one call. The two flows proceed independently: messages need not alternate, and each request is not automatically paired with a response. The application must define message meaning and correlation, flow control, and termination.
GraphQL can be a better fit than REST when several clients often need different combinations of fields from connected data and you want to manage those selections through one typed schema. REST may be simpler when resource-level HTTP behavior, explicit cache boundaries, and straightforward client contracts matter most. Neither style is automatically faster or easier to maintain.
A GraphQL subscription is a long-running operation that emits results with the same GraphQL selection whenever a server-side event occurs. The server first connects to a source event stream, then executes the operation for each event to produce a response event. The GraphQL specification defines this event-processing model, but not transport, resend, buffering, or delivery guarantees, so design event delivery and connection lifecycle separately.
Designing a GraphQL schema means defining what values fields promise and how failures affect responses, not merely declaring types. A non-null marker (!) lets clients rely on a value, but an execution error can propagate null to a parent response position. Plan schema changes so new capabilities can be added without breaking existing operations, and retire old fields gradually.
A resolver is a server function that provides a value for a particular field in a GraphQL schema. A top-level Query resolver can return an object, after which nested field resolvers provide its selected values and GraphQL assembles the response shape. Keep resolvers focused, and design data access, authorization, and errors explicitly so field behavior and cost remain traceable.
A GraphQL persisted query links an operation document to an identifier in server storage, so requests can send the identifier instead of the full query text. Automatic persisted queries (APQ) are primarily a cache technique that reduces request size. Trusted documents or a safelist are policies that restrict execution to operations approved in advance. Sending a hash alone does not restrict an API to an allowlist.
The GraphQL N+1 problem occurs when a list is fetched once and a nested resolver fetches related data separately for each item, increasing backend calls to 1+N. Batching keys into a multi-item lookup and deduplicating within a request can reduce those calls. A batch loader does not guarantee better performance by itself: verify key-to-result ordering, authorization scope, and actual backend cost.
GraphQL introspection lets a client ask an API for schema information such as types, fields, arguments, and descriptions. schema and type explore the schema; typename identifies the concrete type of an object in a response. Schema discovery helps development tools and documentation, but whether to enable it in production depends on the API’s audience and tooling needs. Disabling it reduces discoverability; it does not replace data authorization.