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.
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.