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
Kestrel is the default web server for ASP.NET Core apps. When an edge proxy terminates TLS and forwards HTTP to Kestrel, the app sees the proxy's address and may not know the original request used HTTPS or came from which client. Bind Kestrel to an internal address and trust forwarded headers only from the actual proxy so redirects, authentication, and logs use the right request context. This guide follows .NET 10 docs for one proxy and an HTTP backend; direct-edge Kestrel TLS is out of scope.
Kafka guarantees order within a partition, not across an entire topic. With the default producer partitioner, records that share a key are assigned by key hash, so updates for one entity can share a partition and retain that partition’s order. Choose an ordering key that represents the business entity whose changes must stay ordered, not an arbitrary convenient ID.
JSON serialization converts structured values into JSON text for transfer or storage. Cross-language clients need more than valid RFC 8259 syntax: escaping, numeric precision, duplicate object names, and UTF-8 affect whether the same data has the same meaning. JSON Schema checks data structure; it does not guarantee correct serialization or transport encoding.
JSON-RPC 2.0 represents remote method calls as JSON objects. Match responses to requests by `id`; a notification omits `id` and must not receive a response. The specification defines message shapes, not transport, authentication, or retry policy, so check the service's separate contract.
JSON Patch describes changes to a JSON document as an ordered array of operations. It is commonly sent as the body of an HTTP PATCH request with media type application/json-patch+json. Each operation states what to do at a path; this is not the same as merging an object containing selected fields.
JSON Merge Patch describes changes with a document shaped like the target JSON. In an HTTP PATCH request, use media type application/merge-patch+json. Object members are added or replaced recursively; null removes an existing member. This can be a poor fit when explicit null values must be preserved or only part of an array should change.
A jittered retry adds randomness to a retry delay so clients that experience the same failure do not all send again at the same moment. Exponential backoff alone can leave retry calls clustered; jitter spreads them across a bounded window. Still limit retryable errors, attempts, deadlines, and duplicate effects separately.
Jakarta Servlet is the server API that connects HTTP requests and responses to Java web application code. The container selects a mapped resource, runs the applicable filter chain, and invokes an HttpServlet, which reads the request and builds the response. This guide uses Jakarta Servlet 6.1 (Java SE 17 or later) to explain that flow, servlet lifecycle, concurrent requests, and the boundary of asynchronous processing.
Jakarta RESTful Web Services (Jakarta REST, formerly JAX-RS) is an API for exposing HTTP resource endpoints by annotating Java classes and methods. @ApplicationPath sets the application base path, @Path identifies resource paths, and @GET/@POST plus @Consumes/@Produces select methods and representation types. This guide uses Jakarta REST 4.0 and Java SE 17 or later to build a minimal mapping and diagnose media-type mismatches and response statuses.
The Inbox pattern records a message’s processing ID together with the consumer’s business change so broker redelivery does not apply the same side effect twice. Checking an ID and then doing the work in a separate step leaves a failure window that can repeat the work; put the duplicate marker and local data change in the same transaction. Side effects outside that transaction, such as a third-party payment or email, need a separate idempotency key or follow-up outbox.
An idempotent operation produces the same final state when the same logical request is processed more than once. In distributed systems, a timeout can leave the caller unsure whether the server handled a request, so it may retry. The goal is not to eliminate every duplicate delivery; it is to prevent duplicate side effects with a stable operation key and atomic persistence.
The HTTP Upgrade header proposes switching an HTTP/1.1 connection to a different application protocol. The client proposes it with Connection: Upgrade; a switch occurs only if the server agrees with 101 Switching Protocols. A server can ignore the proposal, so sending Upgrade alone does not change the connection. HTTP/2 and HTTP/3 do not use this header to switch protocols.
An HTTP trailer is a field delivered after the message content. It can carry values that are only available while sending the body, such as a digest or post-processing status. Intermediaries may discard trailers, so do not put essential control information or required results only there. Send a field as a trailer only when its definition permits it, and do not treat delayed validation as complete before the trailer arrives.
An HTTP Range request asks a server for selected byte positions of a representation with GET instead of the whole resource. If supported, the server can return 206 Partial Content with Content-Range; otherwise it may return the entire body with 200. Range requests help resume downloads or retrieve media segments, but clients must verify what they actually received.
An HTTP proxy that requires access authorization challenges a request with 407 Proxy Authentication Required and a Proxy-Authenticate challenge. The client can retry with credentials in Proxy-Authorization, using a scheme accepted by that proxy. These credentials are separate from Authorization for the origin server; in a proxy chain, the next proxy that requested them consumes them.
PATCH asks a server to apply a change document to the current resource; PUT supplies a representation to replace it. PATCH body semantics depend on the media type and API contract, so sending only some fields does not imply the same merge behavior everywhere. RFC 5789 requires the server to apply a patch atomically: all changes succeed or none do.
Method override is an application compatibility convention: a client sends POST plus a header or parameter, and server middleware interprets the request as PUT, PATCH, or DELETE. It is not a behavior guaranteed by HTTP intermediaries. Prefer sending the actual HTTP method when the client supports it.
HTTP keep-alive reuses a network connection for multiple HTTP requests. HTTP/1.1 connections persist by default; HTTP/2 and HTTP/3 multiplex streams on one connection. Adding Connection: keep-alive is usually unnecessary, and a connection does not preserve an application login session.
Retrying a timed-out POST or PATCH is ambiguous: the server may have completed the work even though the client never received the response. When the API supports Idempotency-Key, create one key per logical operation and reuse it with the same request body for every retry. This reduces duplicate side effects only when the server explicitly implements the contract and its retention policy.
HTTP CONNECT asks a proxy to create a tunnel to a host:port destination. In HTTP/1.1, after a 2xx response, the connection switches to bidirectional byte forwarding immediately after the response headers. A client can then start TLS to the destination inside the tunnel. CONNECT alone does not encrypt the request or verify the destination.