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
NATS is a distributed messaging system that routes messages by subject. Core NATS delivers a message at most once to clients currently connected and subscribed to that subject; it does not store or replay messages. If subscribers must receive messages while disconnected, use JetStream to store them in a stream and design consumer acknowledgements, redelivery, and read positions.
multipart/form-data carries text fields and files as separate parts in one HTTP request body. For a file-upload API, the client must generate a valid body with its boundary, while the server parses each part as a stream and enforces total and per-file limits and file checks. The format itself does not provide resumable transfer, integrity verification, or malware detection.
A monolithic architecture puts an application’s core behavior in one process and deployment unit. It is often simpler to start, release, and scale by cloning whole instances, but independent feature releases and selective scaling are harder. A modular monolith can preserve internal boundaries while keeping one deployment.
Middleware is a component that inspects or changes a request or response during web request processing, passes control to the next step, or ends the response. In Express, middleware runs in registration order. Put functions such as JSON parsing or authentication before the routes that need them, and put error-handling middleware after them. The code and behavior in this article are scoped to Express 5.
Microservices are not merely small services; they are a distributed architecture in which teams can independently deploy and operate business capabilities with clear data ownership. Without sound boundaries and operational readiness, network, data, and observability costs can outweigh deployment benefits.
Use Micronaut's @Controller and @Get to map GET /hello, then declare text/plain with @Produces(MediaType.TEXTPLAIN). A test annotated with @MicronautTest starts the application context and embedded server, so an HTTP client can verify the response body. This procedure follows the official Java/Gradle guide checked on 2026-11-20; generated project details can vary with the current CLI.
MessagePack is a binary serialization format for values such as maps, arrays, strings, numbers, booleans, null, and binary data. It resembles JSON's value model but encodes values as typed bytes. It does not define your application's schema or field meanings, so producers and consumers need a separate contract.
A message queue stores work between producers and consumers. Producers enqueue work and consumers process it at their own pace, buffering bursts and decoupling execution. This adds trade-offs: response delay, duplicate delivery, changed ordering, and backlog. This guide covers cloud backend work queues, not broker-specific configuration.
A message broker receives and delivers messages between producers and consumers, reducing temporal coupling between systems. The label “broker” does not make a work queue, pub/sub distribution, and a retained event stream behave the same way. Use a queue model when consumer instances share work and each task is completed once; use pub/sub when independent subscribers need their own copy of an event; consider a retained log when consumers must reread history or process a stream.
A message acknowledgement (ACK) is a signal that a consumer has finished processing a message or reached a particular progress point. ACK too early and the message may disappear before its result is stored; ACK too late and a failure can cause redelivery and duplicate work. A sound default is to acknowledge after the business effect is durably recoverable, but the exact boundary depends on the broker model.
Long polling is a technique where a client sends an HTTP request and the server holds its response until new data is available or a waiting period ends. After receiving the response, the client typically sends another request promptly to keep a poll pending. It can reduce empty responses compared with frequent short polling, but each event is delivered in a separate HTTP response and each pending request consumes server and proxy capacity. Consider it for low-latency, one-way updates such as notifications when SSE or WebSocket is not readily available.
SSE and WebSocket streams depend on every hop between client and application. Proxies, CDNs, and load balancers can impose idle timeouts; buffering can delay data. HTTP/1.1 persistence reuses a connection after completed exchanges, while SSE/WebSocket keep a stream or session open. HTTP/2 multiplexes streams, so do not copy HTTP/1.1 settings blindly.
Load shedding deliberately rejects or skips some new work when a service exceeds its capacity, preventing a local overload from bringing down the whole system. The goal is not to discard every request equally: protect the constrained resource and preserve essential work where possible.
A load balancer distributes incoming requests or connections across multiple backend instances. It can spread traffic to improve throughput and resilience, but it does not automatically add servers or fix application state and capacity problems. Choose a distribution method for the request pattern and instance differences, and make health checks reflect whether an instance can accept new traffic.
Leaky-bucket shaping queues incoming traffic and releases it at a configured rate to smooth the output. A burst is delayed when the queue has room; when the queue is full, excess packets are dropped. Choose not only the output rate but also queue capacity and acceptable delay.
To validate Laravel API requests consistently, put rules in a Form Request and pass only validated data to persistence. When a request expects JSON, Laravel returns a 422 status with field errors by default. Browser forms and APIs can receive different failure responses, so define what each client expects.
When request-value validation fails, RequestValidation throws RequestValidationException. StatusPages can map it to HTTP 400 with a consistent JSON error body. This guide uses Ktor 3.6.1, Kotlin serialization and POST /customers; docs checked 2026-11-20.
A Service defines the upstream connection; a Route matches client requests and selects the Service. In DB-less mode, one declarative YAML/JSON file describes the full entity state, and loading it replaces that state. This guide uses an HTTP path route and the v3 format. Current docs say Routes default to HTTPS starting in v3.14, so both HTTP and HTTPS are explicit below. Database mode, Kubernetes Ingress Controller, Konnect, and authentication plugins are excluded.
Koa is a middleware framework for Node.js. For each request, it connects asynchronous middleware through a ctx object to build an HTTP response. The key is that await next() passes control downstream, then resumes the current function after downstream work finishes. This article follows the current Koa 3.x documentation to build a small server and inspect execution order and error handling.
Keyset pagination fetches the next page using rows after the previous page's final sort key instead of skipping preceding rows. This avoids repeatedly calculating a large offset when moving forward sequentially. It requires a unique, consistent ordering and is not suited to arbitrary jumps to a numbered page.