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
GraphQL Federation combines GraphQL schemas owned by multiple services into one coherent API for clients. Each service contributes a subgraph; composition combines the subgraph schemas into a supergraph schema. A router uses its metadata to send work to the relevant subgraphs and combine their results. Federation is not automatically worthwhile just because services are split up: first compare independent team deployment with the costs of composition, routing, and schema operations.
Graceful shutdown is the process of stopping a service from accepting new work when it receives a termination signal, giving work already started a bounded time to finish, and then closing resources. Go’s http.Server.Shutdown closes listeners and idle connections and waits for active requests to finish, but it does not clean up hijacked connections such as WebSockets or other application work automatically. The application must finish before the container runtime force-stops it.
For work that takes too long for an ordinary API response, Google AIP-151 represents the job with a google.longrunning.Operation. The client keeps its name, checks status, and receives progress metadata plus either the typed result or an error. This is a Google API design pattern, not a requirement for every REST API.
et/http routing: use method and path patterns with PathValue
Gin's ShouldBindJSON reads a request body into a Go struct, checks its binding tag rules, and returns any error to the caller. Use it instead of BindJSON when you want to control the client error response. This guide follows the current Gin binding APIs to validate JSON shape and required fields without exposing raw implementation details.
An API gateway should handle routing and shared network-boundary policies, while each service should make the final decisions about business rules and access to its data. Even when the gateway authenticates callers or limits requests, services should check access to their own resources across bypass and internal-call paths.
A Flask application factory is a function that configures a Flask instance, its settings, extensions, and blueprints, then returns the app. Organizing feature routes as blueprints and registering them in the factory makes it easier to create app instances with different development and test settings, and reduces circular imports caused by a global app. A blueprint is a set of operations to register, not a standalone application.
FastCGI is a record-based protocol for exchanging requests and responses between a web server and an application process. Unlike the traditional Unix CGI pattern, where a program is started for a request and then exits, FastCGI is designed for long-lived processes that can handle multiple requests. Using FastCGI alone does not guarantee concurrency or better performance; check the server, application, and process-manager configuration together.
FastAPI lets you declare where request data comes from and what shape it has using Python type hints and Pydantic models. Path parameters come from the URL, simple types default to query parameters, and Pydantic models are read from the request body. Set a response_model to validate returned data, filter which fields are public, and include the same contract in OpenAPI documentation.
Express processes a request through an ordered stack of routes and middleware. Each middleware must either end the response or pass control onward. This guide follows the current Express 5 documentation and shows how to organize the pipeline so asynchronous errors reach a handler.
Exponential backoff increases the wait between retries after a transient failure according to the attempt number. It gives a service time to recover and reduces load from rapid repeated failures. Retry only errors that could recover; also cap the delay, total attempts, and overall request deadline.
Event-driven architecture publishes facts about changes and lets subscribers respond asynchronously. It helps independent consumers and high event throughput, but consistency, duplicates, ordering, and failure tracing need deliberate design.
Envoy accepts a request at a listener, the HTTP connection manager selects a route, and the route forwards it to a named cluster. This guide covers one HTTP listener and a static cluster with two upstreams, using the v3 API. The source versions checked on 2026-11-19 differ: static configuration v1.37.7, runtime and health checks v1.38.9, and current route matching. Validate against the binary you deploy. xDS, TLS termination, and Kubernetes Gateway are out of scope.
Django’s URLconf maps URL paths to views. Django checks patterns in order and calls the first match, so explicit path converters and named URLs make request routing easier to read and safer to change. Keep the responsibilities clear: URLconfs connect paths to views, while views handle the response or application work.
Distributed tracing connects the path of one user request across services, processes, and networks. It records each operation as a span and propagates trace identifiers and parent relationships so teams can inspect the end-to-end flow and locate delays. Logs show event details, metrics show aggregate trends, and traces show causal relationships among calls.
A distributed rate limiter shares decision state so multiple servers enforce one user or tenant limit. Independent per-process counters can let a client obtain the allowance again when load balancing sends it to another server. A shared store or dedicated rate-limit service reduces that duplication, but adds a dependency to the request path; define its latency cost and failure behavior too.
Dependency Injection (DI) is a design approach in which an external assembler or container supplies the collaborators a class needs, instead of the class constructing them or looking them up globally. This article shows how to configure constructor injection in NestJS 11, why a TypeScript interface cannot serve as a runtime injection token, and how to choose provider scope.
Deno denies filesystem, network, environment-variable, and subprocess access by default. Grant only what a program needs and narrow it to paths, hosts, or variable names. Code and dependencies running with the same privilege share that access, so flags alone do not isolate untrusted code. This guide follows official Deno runtime docs checked 2026-11-20.
A dead-letter queue (DLQ) is a queue or topic that holds messages that cannot be processed on the normal consumer path or that policy says to isolate. Moving a message there does not fix the problem. Classify the cause, set ownership and retention, repair the data or consumer, then replay with duplicate effects controlled.
DataLoader is a JavaScript library that combines multiple .load(key) calls into one batch function and, by default, memoizes repeated keys within a request. Use it safely by returning one result per input key in the same order and by creating loaders per request. Cache-off mode, custom dispatch timing, and per-key errors change the defaults; adjust them deliberately.