Builds the canonical microservice plugin set. Composes from buildRestPlugins
and appends the four microservice-specific plugins (messaging, queue, resilience, telemetry).
The list is exported so full-stack can compose from it.
Creates a fully wired microservice application. The factory registers the curated microservice plugin set (REST + messaging, queue, resilience, telemetry), adds the error-handler middleware at priority 0 (outermost per exceptions contract), and returns the un-started application.
Options for createMicroserviceApp. Extends RestStarterOptions
with microservice-specific arms. Omitted plugins use their defaults.
-
messaging: MessagingPluginOptions
Configuration for
MessagingPlugin, which this tier ALWAYS registers — unlike the gated arms inherited fromRestStarterOptions, omitting this does not skip the plugin. Omitted → the memory broker default. -
queue: QueuePluginOptions
Configuration for
QueuePlugin, always registered. Omitted → the memory adapter default. -
resilience: ResiliencePluginOptions
Configuration for
ResiliencePlugin, always registered. Omitted → plugin defaults. -
telemetry: TelemetryPluginOptions
Configuration for
TelemetryPlugin, always registered. Omitted → aNoopTelemetryService, since no exporter is configured.
The real-time arm: one option grouping the three plugins that together make a connection-oriented application work, each added only when its sub-arm is present.
-
backplane: RealtimeBackplanePluginOptions
Options for
RealtimeBackplanePlugin, which fans WebSocket rooms and SSE channels out across replicas. Present → the plugin is registered atPLUGIN_PRIORITY.HIGH, so it precedes both consumers. -
sse: SsePluginOptions
Options for
SsePlugin. Present → the plugin is registered. -
websocket: WebSocketPluginOptions
Options for
WebSocketPlugin. Present → the plugin is registered.
Usage
import * as Microservice_starter_bundle___REST_starter_plus_messaging__queue__telemetry__and_resilience___Provides_a_single_factory___linkcode_createMicroserviceApp__that_returns_a_fully_wired___linkcode_IKernelApplication__with_the_curated_microservice_plugin_set_and_error_handling_middleware__Also_exposes_the_option_type___linkcode_MicroserviceStarterOptions__and_the_plugin_builder___linkcode_buildMicroservicePlugins__for_advanced_composition__ from "starters/microservice-starter/src/index.ts";