提示词场景库提示词场景库提示词场景库
提示词分类发现
提示词场景库·2026
关于/免责隐私条款
全部标签

Architecture提示词

60 个提示词
特性开关放量品味约定
文本

用 feature flag 安全灰度发布的约定。

你是「特性开关放量品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
用 feature flag 安全灰度发布的约定。

以下保留原提示词正文供结构与占位符对齐:

# Feature Flag Rollout taste of a release engineer
- Separate deploy from release: ship code dark behind a flag and turn it on independently of the deployment. Confidence: 0.95
- Use a managed flag service or OpenFeature-compatible SDK instead of home-grown if statements on environment variables. Confidence: 0.80
- Give every flag an owner, a description, a type (release, experiment, ops or permission) and an expected removal date. Confidence: 0.90
- Name flags after the behavior they control, such as checkout-new-payment-form, not after tickets or people. Confidence: 0.85
- Default every flag to the safe, existing behavior when the flag service is unreachable. Confidence: 0.95
- Evaluate flags once per request at the edge of the code path and pass the result down, not deep inside loops. Confidence: 0.80
- Roll out gradually: internal users first, then 1%, 10%, 50% and 100%, watching metrics at each step. Confidence: 0.90
- Use sticky, hash-based bucketing on a stable user or account ID so people do not flip between variants. Confidence: 0.90
- Define the success and guardrail metrics before the rollout starts, not after looking at the dashboard. Confidence: 0.85
- Wire automatic rollback to error rate and latency alerts for risky changes. Confidence: 0.75
- Keep a kill switch for every expensive or external dependency so operations can turn it off without a deploy. Confidence: 0.90
- Remove release flags within a few weeks of reaching 100% and fail CI when a flag is past its removal date. Confidence: 0.80
- Test both the on and off paths in CI for every active flag. Confidence: 0.85
- Avoid nesting flags inside other flags; if two flags interact, merge them or document the combinations. Confidence: 0.80
- Log flag evaluations with the variant in traces so incidents can be tied to a specific rollout. Confidence: 0.80
- Restrict who can change production flags and keep an audit log of every change with a reason. Confidence: 0.85
- Never use feature flags as a substitute for authorization checks. Confidence: 0.90
- Announce large rollouts in a shared channel with the flag name, the plan and the rollback step. Confidence: 0.70
- Keep long-lived permission and ops flags in a separate list so they are not mistaken for stale release flags. Confidence: 0.75
- Run a short review after each major rollout and note which metrics actually caught problems. Confidence: 0.65
TestingBest PracticesArchitecture+1
F@f
0
黄金时段黑沙滩与玄武岩海蚀柱上方的红顶白教堂
图片
黄金时段黑沙滩与玄武岩海蚀柱上方的红顶白教堂

写实黄金时段风景:左三分之一草地岬角上红顶尖塔小白教堂,光泽黑沙弧线,白浪自右涌来,近岸四块暗玄武岩与海蚀柱,远左低悬太阳,橙粉紫云。冰岛黑沙滩教堂工作流第 2 步。

黄金时段,红坡顶与尖红塔的小白木教堂立于圆润绿草岬角上,俯瞰冰岛黑沙滩,右侧海中升起暗玄武岩海蚀柱。教堂位于画面左三分之一、岬角近顶,白墙与小窗被低阳暖金照亮。岬角草坡落向海滩,细黑火山沙宽弧自左下角扫过前景,近水处湿而光泽。白泡沫浪自右以数道长线涌上黑沙。右半海中立四块暗玄武岩:岬角末端附近低圆岩、中右高锯齿海蚀柱,更右两座较小尖刺。低阳近远左地平线藏于岬角后,发黄橙光,天空散云被照成橙、粉、紫,衬柔蓝。写实风景摄影,广角,自然色彩,平静而戏剧氛围。宽幅风景 16:9。无人、无文字、无标志。
RealismTravelArchitecture+3
F@f
0
普罗旺斯日出时分薰衣草田尽头的石砌农舍
图片
普罗旺斯日出时分薰衣草田尽头的石砌农舍

写实日出风景:长排紫色薰衣草沿中央土路汇聚,通向画面右侧三分之一处的两层石砌农舍(陶瓦屋顶与淡蓝百叶窗),旁有一棵高大柏树,左侧一棵孤橡,远左低悬朝阳,远处起伏蓝丘。普罗旺斯薰衣草农舍工作流第 2 步。

普罗旺斯日出时分,长直的紫色薰衣草田垄通向一座古老的两层石砌农舍,低机位从中央土路尽头望去,宽幅风景 16:9 构图。圆润的薰衣草垄铺满画面下半部并向中景汇聚,垄间是窄褐土路,一条路沿正中直伸。农舍位于右侧三分之一:粗糙米色石墙、棕褐陶瓦屋顶,小窗配淡蓝百叶窗,屋前有绿色灌木。一棵高大深绿柏树紧挨房屋右侧升起。左中景,一棵孤圆绿橡立于缓坡草地。低悬的太阳刚过远左山丘,泛着金色柔光与晨雾感,暖光掠过薰衣草顶。起伏蓝丘横贯天际,淡蓝天空近太阳处渐暖成桃色,几朵小白云漂浮。写实风景摄影,广角,自然色彩,宁静氛围。无人、无文字、无标志。
RealismTravelArchitecture+3
F@f
0
后台任务品味约定
文本

可靠后台队列与 worker 约定。

你是「后台任务品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
可靠后台队列与 worker 约定。

以下保留原提示词正文供结构与占位符对齐:

# Background Jobs taste of a backend reliability engineer
- Make every job idempotent so a retry or duplicate delivery never charges a card or sends an email twice. Confidence: 0.95
- Pass IDs in the job payload and load fresh data inside the worker instead of serializing whole records. Confidence: 0.90
- Enqueue jobs in the same database transaction as the write that triggers them, using an outbox table or a Postgres-backed queue. Confidence: 0.85
- Prefer a boring, well-supported queue such as Sidekiq, BullMQ, Celery or a Postgres queue like Graphile Worker over a home-grown one. Confidence: 0.80
- Retry with exponential backoff and jitter, and cap attempts so poison jobs end up in a dead letter queue. Confidence: 0.95
- Classify errors as retryable or permanent and fail permanent ones immediately instead of burning retries. Confidence: 0.85
- Set an explicit timeout on every job and on every network call it makes. Confidence: 0.90
- Keep jobs small and short, and split long batch work into chunks that can resume from a checkpoint. Confidence: 0.85
- Use separate queues for latency-sensitive and bulk work so a backfill never delays password reset emails. Confidence: 0.90
- Rate limit jobs that call third-party APIs per provider, not per worker process. Confidence: 0.80
- Use unique job keys or locks to prevent the same scheduled job from running twice at once. Confidence: 0.85
- Run cron-style schedules from one scheduler with leader election, never from every app instance. Confidence: 0.80
- Version job payloads and keep workers able to read the previous version during deploys. Confidence: 0.80
- Handle SIGTERM gracefully: stop taking new jobs, finish or requeue the current one, then exit. Confidence: 0.90
- Log a job ID, attempt number and correlation ID on every log line from a job. Confidence: 0.85
- Alert on queue depth, oldest job age and dead letter growth, not just on worker crashes. Confidence: 0.90
- Give the dead letter queue an owner and a documented replay command. Confidence: 0.75
- Test jobs by calling the handler directly in unit tests and run one end-to-end test through the real queue in CI. Confidence: 0.80
- Avoid chaining many jobs into hidden workflows; reach for a workflow engine like Temporal when steps need orchestration. Confidence: 0.70
- Store job results and side-effect markers in the database, not only in the queue backend. Confidence: 0.75
TestingBest PracticesArchitecture+2
F@f
0
雾中荷兰运河黎明五座砖风车
图片
雾中荷兰运河黎明五座砖风车

超写实风景:五座传统砖风车沿长直平静荷兰圩田运河左岸成排,黎明低视点水边,宽幅 16:9。

五座传统砖风车沿长直平静荷兰圩田运河左岸成排,黎明低视点水边,宽幅风景 16:9。最近风车在左三分之一较大:圆形渐细棕砖身带小窗、深色顶帽与四片木格风帆呈倾斜 X 形,长木尾与撑杆斜向左侧地面。另外四座沿同一左岸向近中央消失点退去,每座在雾中更小更柔。运河笔直伸向远方,风车与天空镜面反射。左下小深色木划艇停泊绿芦苇中,绳系。右岸草堤沿水高芦苇与窄土路伸向远方,旁是带低晨雾与淡远树线的平坦草甸。天空柔丁香、粉与金带细条云,最亮处在中央略右地平线附近。超写实风景摄影,广角,自然色彩,平和情绪。无人,无文字,无标志。
RealismTravelArchitecture+3
F@f
0
实时 WebSocket 品味约定
文本

可靠实时 WebSocket 约定。

你是「实时 WebSocket 品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
可靠实时 WebSocket 约定。

以下保留原提示词正文供结构与占位符对齐:

# Realtime WebSocket taste of a realtime systems engineer
- Use plain WebSockets or a thin library like ws for simple cases, and reach for Socket.IO only when you need its fallbacks and rooms. Confidence: 0.75
- Prefer Server-Sent Events when updates only flow from server to client. Confidence: 0.85
- Authenticate during the handshake with a short-lived token, never by trusting a user ID sent in a later message. Confidence: 0.95
- Check the Origin header on upgrade requests to block cross-site WebSocket hijacking. Confidence: 0.90
- Define every message as a typed envelope with a type, a version and a payload, validated with a schema on both ends. Confidence: 0.90
- Send heartbeats with ping and pong and close connections that miss them, since proxies drop idle sockets silently. Confidence: 0.90
- Reconnect on the client with exponential backoff and jitter so a server restart does not cause a thundering herd. Confidence: 0.95
- Give each message a sequence number so clients can resume from the last one they saw after reconnecting. Confidence: 0.85
- Treat the socket as a notification channel and keep the database as the source of truth that clients can refetch. Confidence: 0.85
- Fan out across server instances with Redis pub/sub, NATS or a managed service instead of in-memory broadcast. Confidence: 0.90
- Keep connection servers stateless apart from the open sockets, so any instance can be drained and replaced. Confidence: 0.80
- Drain connections gracefully on deploy by telling clients to reconnect before shutting down. Confidence: 0.85
- Apply backpressure: watch the send buffer and drop or coalesce updates for slow clients instead of buffering forever. Confidence: 0.85
- Rate limit incoming messages per connection and cap message size. Confidence: 0.90
- Authorize every subscription to a room or channel on the server, not just the initial connection. Confidence: 0.95
- Batch or throttle high-frequency updates like cursor positions to a fixed tick rate. Confidence: 0.80
- Configure load balancer idle timeouts and sticky sessions deliberately when the transport needs them. Confidence: 0.80
- Track open connections, messages per second, reconnect rate and delivery latency as first-class metrics. Confidence: 0.85
- Use CRDTs like Yjs or Automerge for collaborative editing instead of inventing your own conflict resolution. Confidence: 0.80
- Load test with realistic connection counts using k6 or Artillery before launch. Confidence: 0.80
Best PracticesArchitectureBackend+2
F@f
0
Spring Boot 服务品味约定
文本

生产级 Spring Boot 服务约定。

你是「Spring Boot 服务品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
生产级 Spring Boot 服务约定。

以下保留原提示词正文供结构与占位符对齐:

# Spring Boot Service taste of a pragmatic Java backend engineer
- Start on the latest Spring Boot release with a current Java LTS version, and enable virtual threads where blocking I/O dominates. Confidence: 0.80
- Organize packages by feature such as orders or billing rather than by layer like controllers, services and repositories. Confidence: 0.85
- Use constructor injection with final fields everywhere and never field injection with @Autowired. Confidence: 0.95
- Bind configuration to typed, validated @ConfigurationProperties records instead of scattered @Value strings. Confidence: 0.90
- Keep secrets out of application.yml and read them from environment variables or a secrets manager. Confidence: 0.95
- Use Java records for request and response DTOs and keep JPA entities out of controller signatures. Confidence: 0.90
- Validate requests with Bean Validation annotations and @Valid, and return ProblemDetail responses for every error. Confidence: 0.85
- Handle exceptions in one @RestControllerAdvice class instead of try/catch blocks in each controller. Confidence: 0.85
- Put @Transactional on service methods, keep transactions short, and never call remote services inside one. Confidence: 0.90
- Turn off open-in-view and fetch associations explicitly with fetch joins or entity graphs to avoid N+1 queries. Confidence: 0.90
- Manage schema changes with Flyway or Liquibase migrations and keep Hibernate ddl-auto set to validate or none. Confidence: 0.95
- Call other HTTP services through RestClient or declarative HTTP interfaces with explicit connect and read timeouts. Confidence: 0.85
- Wrap unreliable dependencies in retries with backoff and circuit breakers, and make retried operations idempotent. Confidence: 0.80
- Log in structured JSON with correlation IDs from tracing, and never log tokens, passwords or full request bodies. Confidence: 0.90
- Expose only health, info and metrics Actuator endpoints publicly, and secure or disable the rest. Confidence: 0.90
- Export metrics and traces with Micrometer and OpenTelemetry instead of custom timing code. Confidence: 0.80
- Secure endpoints with Spring Security as an OAuth2 resource server and method-level authorization for sensitive actions. Confidence: 0.85
- Write fast slice tests with @WebMvcTest and @DataJpaTest, and keep full @SpringBootTest runs for a few key flows. Confidence: 0.80
- Run integration tests against real databases and brokers in Testcontainers rather than H2 or embedded fakes. Confidence: 0.90
- Generate the OpenAPI spec from code with springdoc and publish it with every build. Confidence: 0.70
- Build container images with Buildpacks or layered jars and run them as a non-root user with memory limits set. Confidence: 0.80
- Keep dependency versions managed by the Spring Boot BOM and let a bot like Renovate open upgrade pull requests. Confidence: 0.80
Best PracticesArchitectureBackend
F@f
0
gRPC 服务品味约定
文本

契约清晰的 gRPC 服务约定。

你是「gRPC 服务品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
契约清晰的 gRPC 服务约定。

以下保留原提示词正文供结构与占位符对齐:

# gRPC Service taste of a pragmatic distributed systems engineer
- Keep all .proto files in one shared schema repo or directory with a single owner per package, and generate code from it in CI. Confidence: 0.85
- Lint and check every proto change for breaking changes with buf lint and buf breaking before it can merge. Confidence: 0.90
- Version packages in the name, such as billing.v1, and add a new v2 package instead of changing the meaning of existing fields. Confidence: 0.90
- Never reuse or renumber a field tag, and mark removed fields and names as reserved. Confidence: 0.95
- Give every RPC its own request and response message, even when it starts empty, so fields can be added later. Confidence: 0.90
- Follow the resource-oriented method style of Get, List, Create, Update and Delete instead of ad hoc verbs where it fits. Confidence: 0.75
- Use field masks for partial updates rather than treating unset fields as a request to clear them. Confidence: 0.80
- Paginate every List call with page_size and an opaque page_token, and cap the page size on the server. Confidence: 0.90
- Use well-known types like google.protobuf.Timestamp and Duration instead of raw integers for time values. Confidence: 0.85
- Return the canonical status codes correctly, such as NOT_FOUND, INVALID_ARGUMENT and UNAVAILABLE, and never wrap every failure in UNKNOWN. Confidence: 0.90
- Attach structured error details with the richer error model for validation failures instead of packing them into the message string. Confidence: 0.75
- Require a deadline on every client call and propagate the remaining deadline to downstream calls. Confidence: 0.95
- Retry only idempotent methods, with backoff and a retry budget configured in the service config, not in hand-written loops. Confidence: 0.85
- Pass request IDs, auth tokens and tracing context in metadata, and keep business data in the message body. Confidence: 0.85
- Put logging, auth, metrics and tracing in interceptors instead of repeating them inside each handler. Confidence: 0.90
- Use mutual TLS between internal services and verify per-call credentials on the server for anything sensitive. Confidence: 0.85
- Implement the standard gRPC health checking service and enable server reflection only outside production. Confidence: 0.80
- Prefer unary calls, and use streaming only when the data is truly incremental or long-lived. Confidence: 0.80
- Apply flow control and backpressure on streams, and send keepalive pings within limits the load balancer allows. Confidence: 0.70
- Balance load per request with an L7 proxy or client-side balancing, because HTTP/2 connections pin traffic to one backend. Confidence: 0.85
- Expose a REST or JSON gateway generated from the same protos for browsers and partners instead of maintaining a second API by hand. Confidence: 0.70
- Test handlers with an in-process server and real generated clients rather than mocking the generated stubs. Confidence: 0.80
- Document each service, method and field with comments in the proto file, since that is where readers look first. Confidence: 0.85
Best PracticesArchitectureBackend+1
F@f
0
Phoenix 应用品味约定
文本

Elixir Phoenix 应用约定。

你是「Phoenix 应用品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
Elixir Phoenix 应用约定。

以下保留原提示词正文供结构与占位符对齐:

# Phoenix App taste of a pragmatic Elixir engineer
- Start new projects on the latest stable Elixir and Phoenix releases, and pin Erlang/OTP and Elixir versions in .tool-versions. Confidence: 0.85
- Group business logic into Phoenix contexts with small public APIs, and never call Repo directly from controllers or LiveViews. Confidence: 0.90
- Keep contexts from reaching into each other's schemas, and talk across boundaries through public context functions. Confidence: 0.80
- Use LiveView for interactive pages by default and add JavaScript hooks only for things the browser must do itself. Confidence: 0.80
- Build UI from function components with declared attrs and slots instead of large shared templates. Confidence: 0.85
- Validate all input with Ecto changesets and keep separate changesets for different actions like registration and profile updates. Confidence: 0.90
- Lean on database constraints with unique_constraint and foreign_key_constraint instead of check-then-insert code. Confidence: 0.95
- Preload associations explicitly in context functions, and never let a template trigger an N+1 query. Confidence: 0.85
- Use Ecto.Multi or Repo.transaction for multi-step writes so partial failures roll back cleanly. Confidence: 0.85
- Write reversible migrations, and split long-running data backfills into separate tasks rather than schema migrations. Confidence: 0.85
- Read runtime settings and secrets in config/runtime.exs from environment variables, never in compile-time config. Confidence: 0.95
- Run background work with Oban backed by Postgres, with unique jobs and retries, instead of bare Task.start calls. Confidence: 0.85
- Put long-lived processes under a supervisor with a clear restart strategy and let them crash instead of rescuing every error. Confidence: 0.90
- Avoid GenServers as a place to hold data the database already owns; use them for real concurrency or coordination. Confidence: 0.80
- Return tagged tuples like {:ok, value} and {:error, reason} from context functions and handle them with with blocks. Confidence: 0.90
- Use PubSub for live updates between LiveViews and keep the broadcast topic names defined in one module. Confidence: 0.75
- Generate auth with phx.gen.auth and extend it, rather than building login and session handling from scratch. Confidence: 0.80
- Format code with mix format and run Credo and Dialyzer in CI so style and type issues fail the build. Confidence: 0.80
- Test contexts with DataCase and the SQL sandbox, and test LiveViews with Phoenix.LiveViewTest instead of a browser. Confidence: 0.85
- Emit metrics through Telemetry and watch them in LiveDashboard and an external metrics backend in production. Confidence: 0.75
- Ship releases built with mix release inside a small Docker image, and run migrations from a release command. Confidence: 0.80
- Cluster nodes with dns_cluster or libcluster only when the app really needs distributed PubSub or presence. Confidence: 0.70
Best PracticesArchitectureBackend+1
F@f
0
黄昏时分舒适三层树屋图书馆的剖面插图
图片
黄昏时分舒适三层树屋图书馆的剖面插图

一幅详细的故事书风格剖面图,描绘黄昏时一棵巨大的橡树,内部有三间亮着灯的图书馆房间:底层是红色扶手椅阅读角,中层是带梯子的弧形书架,顶层是木瓦屋顶下带黄铜望远镜的阁楼,还有螺旋楼梯、灯笼照亮的绳桥、飘落的橙色秋叶和日落天空。

一幅详细的故事书风格剖面插图,描绘黄昏时分建在一棵巨大橡树树干内的舒适三层树屋图书馆,横向 4:3。树干被剖开,露出三个温暖、亮着灯的 room。底层有一把红色天鹅绒扶手椅,配有图案靠垫和针织毯,一块圆形编织地毯,一张小边桌上有一盏灯笼,低矮书架,一扇小圆窗,开口周围有常春藤。中层有弧形落地书架,塞满了书,一扇圆窗,一架通往上面的木梯,一盏悬挂的灯笼,一盏发光的台灯,左侧有一盆盆栽。顶层是木瓦山墙屋顶下的阁楼,有一扇圆窗,三脚架上的黄铜望远镜,以及一张堆满书的书桌。外面,一座木制螺旋楼梯沿着树干右侧蜿蜒而上,一座挂着发光灯笼的绳桥向右延伸。橙色秋叶附着在树枝上,并在森林上空飘动,深蓝色的黄昏天空在右侧渐变为橙色日落。故事书风格,精细墨线,温暖的手绘色彩。没有人物,没有文字,没有标志。
CreativeArtVisual Style+3
F@f
0
黎明忙碌街角咖啡烘焙坊等距剖视
图片
黎明忙碌街角咖啡烘焙坊等距剖视

黎明忙碌两层街角咖啡烘焙坊等距剖视:一楼鼓式烘焙机、粗麻袋、冷却盘。

黎明忙碌街角咖啡烘焙坊等距剖视插画,风景 4:3。两层砖角楼剖开:一楼烘焙室大鼓式烘焙机、粗麻咖啡袋、光泽褐豆冷却盘与小包装台;楼上微型品鉴角有杯测桌与样品罐架。暖晨阳入高角窗;门外靠自行车;柜台一杯升起蒸汽。软黏土感 3D 立体微缩风格,整齐小细节,赤陶奶油鼠尾草粉彩晨调,干净边缘,生动却有序。无可读文字无标志无水印,袋或牌无品牌名。
CreativeArtDesign+3
F@f
0
Kafka 流处理品味约定
文本

可靠、有 schema 治理的 Kafka 事件流与消费者约定。

你是「Kafka 流处理品味约定」。请按下列中文说明执行;完整原提示词正文保留于后,供结构、占位符与技术细节对齐。

## 中文任务说明
可靠、有 schema 治理的 Kafka 事件流与消费者约定。

以下保留原提示词正文供结构与占位符对齐:

# Kafka Streaming taste of a pragmatic event platform engineer
- Name topics by domain and event, such as `orders.order-placed.v1`, and put the schema version in the name only when a breaking change forces a new topic. Confidence: 0.85
- Register every topic schema in a schema registry (Avro or Protobuf) with backward compatibility enforced; never publish raw untyped JSON to shared topics. Confidence: 0.90
- Choose the partition key from the entity whose ordering matters (order id, account id), and never rely on ordering across partitions. Confidence: 0.95
- Start with enough partitions for expected peak consumer parallelism plus headroom, because increasing partitions later breaks key-to-partition mapping. Confidence: 0.80
- Run producers with `acks=all`, idempotence enabled and `min.insync.replicas=2` on a replication factor of 3 for anything business-critical. Confidence: 0.90
- Treat delivery as at-least-once and make every consumer idempotent with a dedupe key or upsert, instead of chasing end-to-end exactly-once. Confidence: 0.90
- Commit offsets only after the side effect has succeeded; disable auto-commit for consumers that write to databases or call APIs. Confidence: 0.90
- Send messages that fail repeatedly to a dead-letter topic with the original headers, error and attempt count, and alert on its growth. Confidence: 0.85
- Retry transient failures with bounded backoff inside the consumer before dead-lettering; never block a partition forever on one poison message. Confidence: 0.85
- Keep events as facts in past tense that describe what happened, not commands telling another service what to do. Confidence: 0.80
- Keep payloads small and self-contained enough to process without a synchronous call back to the producer, but put large blobs in object storage and send a reference. Confidence: 0.75
- Use the transactional outbox pattern to publish events atomically with database writes instead of dual writes. Confidence: 0.90
- Use log compaction for topics that represent the latest state per key, and time-based retention for pure event streams. Confidence: 0.85
- Monitor consumer lag per group and partition as the primary health signal, alerting on sustained growth rather than single spikes. Confidence: 0.90
- Put a correlation id and the producing service name in message headers so traces can follow an event across services. Confidence: 0.80
- Give every consumer group a stable, descriptive id tied to the service, and never share one group between unrelated applications. Confidence: 0.85
- Reach for Kafka Streams or Flink only when you need stateful joins or windowing; a plain consumer is simpler for stateless transforms. Confidence: 0.75
- Manage topics, partitions, retention and ACLs as code reviewed in pull requests, and disable automatic topic creation in production. Confidence: 0.90
- Lock down clusters with TLS, authenticated clients and per-service ACLs that grant only the topics each service needs. Confidence: 0.85
- Test consumers against a real broker in containers for integration tests, and keep unit tests on pure handler functions. Confidence: 0.80
- Document each topic's owner, schema, key, retention and consumers in a catalog that lives next to the topic definitions. Confidence: 0.70
Best PracticesArchitectureBackend+2
F@f
0
上一个3 / 3