feat(deploy): add internal Kafka KRaft broker and Go broker settings
This commit is contained in:
1 parent
565ca94bbb
commit
197661145e
16 files changed
+289
-17
No files matched your search
@@ -8,10 +8,12 @@ The core frontend container serves static assets with Nginx and proxies /api to
|
||||
|
||||
The ML Compose file binds to 127.0.0.1:8000 by default. A remote ML host needs an explicit private bind address, restricted firewall rules, and a deliberate scrape target. Leave ML_METRICS_TARGET empty when Prometheus must not scrape a remote ML host.
|
||||
|
||||
Start the core project before monitoring because monitoring joins its Docker network. The monitoring Compose project collects only the explicitly configured core services. Do not expose PostgreSQL, Redis, SeaweedFS, backend metrics, Prometheus, Loki, exporters, or the Docker socket proxy publicly.
|
||||
Start the core project before monitoring because monitoring joins its Docker network. The monitoring Compose project collects only the explicitly configured core services. Do not expose PostgreSQL, Redis, SeaweedFS, Kafka, backend metrics, Prometheus, Loki, exporters, or the Docker socket proxy publicly.
|
||||
|
||||
Redis runs in the core project with password authentication, bounded memory, allkeys-lru eviction, and persistence disabled. Keep it private to the Compose network. The separate monitoring project supplies redis-exporter; ML does not use Redis in the current scaffold.
|
||||
|
||||
Kafka runs in the core project as one internal KRaft broker and controller with a bounded JVM heap, a memory limit, and a named volume. Keep its listener private to the Compose network and create topics explicitly; it carries events only through the transactional outbox.
|
||||
|
||||
SeaweedFS runs as a single-node S3-compatible server in the core project. Persist both data and metadata in its named volume. Keep every storage port private; require credentials for S3 access. Nginx does not proxy private objects directly. Ordinary shutdown preserves the volume; this local setup does not provide HA or off-host backups.
|
||||
|
||||
Use the repository's Compose and observability Make targets to render and validate configuration. Keep secrets in a local .env or deployment secret store, not in committed examples. Do not claim TLS, public availability, multi-node reliability, or a successful deploy based on Compose syntax checks.
|
||||
|
||||
@@ -13,6 +13,12 @@ SEAWEEDFS_ACCESS_KEY=lincodex-local
|
||||
SEAWEEDFS_SECRET_KEY=replace-this-storage-secret
|
||||
SEAWEEDFS_BUCKET=lincodex
|
||||
|
||||
# Kafka KRaft cluster identifier. It is not a secret and grants no access; it
|
||||
# ties the formatted log directory to one cluster. Generate your own value with
|
||||
# `docker run --rm apache/kafka:latest /opt/kafka/bin/kafka-storage.sh random-uuid`
|
||||
# before the first start; changing it later stops Kafka from using the existing volume.
|
||||
KAFKA_CLUSTER_ID=SJv4PXUUSJGbK3eSPC57qA
|
||||
|
||||
# Optional PostgreSQL metrics login, created when the database volume is initialized.
|
||||
POSTGRES_EXPORTER_USER=metrics_reader
|
||||
POSTGRES_EXPORTER_PASSWORD=replace-this-metrics-password
|
||||
|
||||
@@ -35,6 +35,7 @@ type Config struct {
|
||||
SeaweedFSBucket string
|
||||
SeaweedFSRegion string
|
||||
SeaweedFSTimeout time.Duration
|
||||
KafkaBrokers []string
|
||||
LogLevel string
|
||||
ReadinessTimeout time.Duration
|
||||
ShutdownTimeout time.Duration
|
||||
@@ -60,6 +61,7 @@ func LoadFromEnv(lookup LookupEnv) (Config, error) {
|
||||
SeaweedFSBucket: strings.TrimSpace(valueOrDefault(lookup, "SEAWEEDFS_BUCKET", defaultSeaweedFSBucket)),
|
||||
SeaweedFSRegion: strings.TrimSpace(valueOrDefault(lookup, "SEAWEEDFS_REGION", defaultSeaweedFSRegion)),
|
||||
SeaweedFSTimeout: defaultSeaweedFSTimeout,
|
||||
KafkaBrokers: parseKafkaBrokers(valueOrDefault(lookup, "KAFKA_BROKERS", defaultKafkaBrokers)),
|
||||
LogLevel: strings.ToLower(strings.TrimSpace(valueOrDefault(lookup, "LOG_LEVEL", defaultLogLevel))),
|
||||
ReadinessTimeout: defaultReadinessTimeout,
|
||||
ShutdownTimeout: defaultShutdownTimeout,
|
||||
@@ -98,6 +100,9 @@ func (config Config) Validate() error {
|
||||
if err := config.ValidateRedis(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := config.ValidateKafka(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := validateAddress("HTTP_ADDR", config.HTTPAddr); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"slices"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -26,6 +27,9 @@ func TestLoadFromEnvUsesOperationalDefaults(t *testing.T) {
|
||||
if config.LogLevel != "info" {
|
||||
t.Fatalf("LogLevel = %q, want info", config.LogLevel)
|
||||
}
|
||||
if !slices.Equal(config.KafkaBrokers, []string{"localhost:9092"}) {
|
||||
t.Fatalf("KafkaBrokers = %q, want the localhost default", config.KafkaBrokers)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadFromEnvReadsAddressesAndTimeouts(t *testing.T) {
|
||||
@@ -169,3 +173,59 @@ func TestLoadFromEnvRejectsSeaweedFSSettings(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadFromEnvKafkaBrokers(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
value string
|
||||
want []string
|
||||
}{
|
||||
{name: "single Compose broker", value: "kafka:9092", want: []string{"kafka:9092"}},
|
||||
{name: "trimmed list", value: " kafka-1:9092 , 10.0.0.2:9093,[::1]:9094 ", want: []string{"kafka-1:9092", "10.0.0.2:9093", "[::1]:9094"}},
|
||||
{name: "fully qualified name", value: "broker_1.internal.example:9092", want: []string{"broker_1.internal.example:9092"}},
|
||||
}
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
settings, err := LoadFromEnv(testEnvironment(map[string]string{"KAFKA_BROKERS": test.value}))
|
||||
if err != nil {
|
||||
t.Fatalf("LoadFromEnv() error = %v", err)
|
||||
}
|
||||
if !slices.Equal(settings.KafkaBrokers, test.want) {
|
||||
t.Fatalf("KafkaBrokers = %q, want %q", settings.KafkaBrokers, test.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadFromEnvRejectsKafkaBrokers(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
value string
|
||||
want string
|
||||
}{
|
||||
{name: "explicitly empty", value: "", want: "Config.ValidateKafka - KAFKA_BROKERS must not be empty"},
|
||||
{name: "only spaces", value: " ", want: "Config.ValidateKafka - KAFKA_BROKERS must not be empty"},
|
||||
{name: "missing port", value: "kafka", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "empty host", value: ":9092", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "zero port", value: "kafka:0", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "port out of range", value: "kafka:70000", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "named port", value: "kafka:broker", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "empty middle entry", value: "kafka-1:9092,,kafka-2:9092", want: "Config.ValidateKafka - KAFKA_BROKERS entry 2"},
|
||||
{name: "trailing separator", value: "kafka:9092,", want: "Config.ValidateKafka - KAFKA_BROKERS entry 2"},
|
||||
{name: "URL scheme", value: "PLAINTEXT://kafka:9092", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "user info", value: "user:secret@kafka:9092", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "path", value: "kafka/events:9092", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
{name: "label with leading hyphen", value: "-kafka:9092", want: "Config.ValidateKafka - KAFKA_BROKERS entry 1"},
|
||||
}
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
_, err := LoadFromEnv(testEnvironment(map[string]string{"KAFKA_BROKERS": test.value}))
|
||||
if err == nil || !strings.HasPrefix(err.Error(), test.want) {
|
||||
t.Fatalf("LoadFromEnv() error = %v, want an error starting with %q", err, test.want)
|
||||
}
|
||||
if strings.Contains(err.Error(), "secret") {
|
||||
t.Fatal("configuration error disclosed the broker value")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
defaultKafkaBrokers = "localhost:9092"
|
||||
kafkaBrokersSeparator = ","
|
||||
)
|
||||
|
||||
// parseKafkaBrokers splits a comma-separated broker list. Empty entries are
|
||||
// kept so that validation can reject values such as "a:9092,,b:9092".
|
||||
func parseKafkaBrokers(raw string) []string {
|
||||
if strings.TrimSpace(raw) == "" {
|
||||
return nil
|
||||
}
|
||||
entries := strings.Split(raw, kafkaBrokersSeparator)
|
||||
brokers := make([]string, 0, len(entries))
|
||||
for _, entry := range entries {
|
||||
brokers = append(brokers, strings.TrimSpace(entry))
|
||||
}
|
||||
return brokers
|
||||
}
|
||||
|
||||
func (config Config) ValidateKafka() error {
|
||||
if len(config.KafkaBrokers) == 0 {
|
||||
return errors.New("Config.ValidateKafka - KAFKA_BROKERS must not be empty")
|
||||
}
|
||||
for index, broker := range config.KafkaBrokers {
|
||||
// Report the position instead of the value so a mistyped entry with
|
||||
// embedded credentials does not reach logs.
|
||||
if !validKafkaBroker(broker) {
|
||||
return fmt.Errorf("Config.ValidateKafka - KAFKA_BROKERS entry %d must be a host:port address with a nonzero port", index+1)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// validKafkaBroker accepts a hostname or IP address with a port in 1-65535.
|
||||
// URL schemes, user info, and paths are rejected because Kafka clients expect
|
||||
// plain bootstrap addresses.
|
||||
func validKafkaBroker(broker string) bool {
|
||||
host, port, err := net.SplitHostPort(broker)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
number, err := strconv.Atoi(port)
|
||||
if err != nil || number < 1 || number > maxPortNumber {
|
||||
return false
|
||||
}
|
||||
return net.ParseIP(host) != nil || validHostname(host)
|
||||
}
|
||||
|
||||
func validHostname(host string) bool {
|
||||
if host == "" {
|
||||
return false
|
||||
}
|
||||
for _, label := range strings.Split(host, ".") {
|
||||
if !validHostnameLabel(label) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func validHostnameLabel(label string) bool {
|
||||
if label == "" || strings.HasPrefix(label, "-") || strings.HasSuffix(label, "-") {
|
||||
return false
|
||||
}
|
||||
for _, character := range label {
|
||||
isLetter := (character >= 'a' && character <= 'z') || (character >= 'A' && character <= 'Z')
|
||||
isDigit := character >= '0' && character <= '9'
|
||||
if !isLetter && !isDigit && character != '-' && character != '_' {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
+1
-1
@@ -28,7 +28,7 @@ config: ## Render all Compose files with safe example values
|
||||
build: ## Build local frontend and backend images
|
||||
APP_PROJECT="$(APP_PROJECT)" $(DOCKER) compose --env-file "$(CHECK_ENV_FILE)" -p "$(APP_PROJECT)" -f "$(CORE_FILE)" build
|
||||
|
||||
up: ## Start the core app, PostgreSQL, Redis, and SeaweedFS without monitoring
|
||||
up: ## Start the core app, PostgreSQL, Redis, SeaweedFS, and Kafka without monitoring
|
||||
@test -f "$(ENV_FILE)" || { printf 'Missing %s. Copy .env.example to .env and replace the placeholder passwords.\n' "$(ENV_FILE)" >&2; exit 2; }
|
||||
APP_PROJECT="$(APP_PROJECT)" APP_NETWORK="$(APP_NETWORK)" $(DOCKER) compose --env-file "$(ENV_FILE)" -p "$(APP_PROJECT)" -f "$(CORE_FILE)" up -d
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
Configuration for running the application with Docker Compose and Nginx.
|
||||
|
||||
- `docker/docker-compose.yml` starts the core stack with PostgreSQL, Redis, and SeaweedFS.
|
||||
- `docker/docker-compose.yml` starts the core stack with PostgreSQL, Redis, SeaweedFS, and Kafka.
|
||||
- `docker/docker-compose.ml.yml` and `docker/docker-compose.monitoring.yml` run ML and monitoring as separate projects.
|
||||
- `nginx/` configures frontend serving and API proxying.
|
||||
- `scripts/` contains the isolated stack smoke check.
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
Конфигурация запуска через Docker Compose и Nginx.
|
||||
|
||||
- `docker/docker-compose.yml` поднимает основной стек с PostgreSQL, Redis и SeaweedFS.
|
||||
- `docker/docker-compose.yml` поднимает основной стек с PostgreSQL, Redis, SeaweedFS и Kafka.
|
||||
- `docker/docker-compose.ml.yml` и `docker/docker-compose.monitoring.yml` запускают ML и мониторинг отдельными проектами.
|
||||
- `nginx/` содержит конфигурацию раздачи frontend и проксирования API.
|
||||
- `scripts/` содержит smoke-проверку изолированного стека.
|
||||
|
||||
@@ -103,6 +103,73 @@ services:
|
||||
cpus: "1.0"
|
||||
memory: 1G
|
||||
|
||||
kafka:
|
||||
image: apache/kafka:latest
|
||||
environment:
|
||||
# Setting any KAFKA_* property disables the image's default
|
||||
# server.properties, so every required broker setting is listed here.
|
||||
CLUSTER_ID: ${KAFKA_CLUSTER_ID:?Set KAFKA_CLUSTER_ID in the root .env file}
|
||||
KAFKA_NODE_ID: "1"
|
||||
KAFKA_PROCESS_ROLES: broker,controller
|
||||
# The controller listener stays on container loopback; only the
|
||||
# client listener is reachable on the Compose network.
|
||||
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,CONTROLLER://127.0.0.1:9093
|
||||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
|
||||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
|
||||
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
|
||||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
||||
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@127.0.0.1:9093
|
||||
KAFKA_LOG_DIRS: /var/lib/kafka/data
|
||||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
|
||||
KAFKA_NUM_PARTITIONS: "1"
|
||||
KAFKA_DEFAULT_REPLICATION_FACTOR: "1"
|
||||
KAFKA_MIN_INSYNC_REPLICAS: "1"
|
||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
|
||||
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: "1"
|
||||
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: "1"
|
||||
KAFKA_SHARE_COORDINATOR_STATE_TOPIC_REPLICATION_FACTOR: "1"
|
||||
KAFKA_SHARE_COORDINATOR_STATE_TOPIC_MIN_ISR: "1"
|
||||
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: "0"
|
||||
KAFKA_LOG_RETENTION_HOURS: "168"
|
||||
KAFKA_LOG_RETENTION_BYTES: "1073741824"
|
||||
KAFKA_LOG_SEGMENT_BYTES: "134217728"
|
||||
KAFKA_HEAP_OPTS: -Xms256m -Xmx512m
|
||||
# An empty value lets the image enable an unauthenticated JMX agent with
|
||||
# an RMI port on all container interfaces. This non-empty value opens no
|
||||
# JMX port; metrics export is not configured yet.
|
||||
KAFKA_JMX_OPTS: -Djava.rmi.server.hostname=127.0.0.1
|
||||
volumes:
|
||||
- kafka_data:/var/lib/kafka/data
|
||||
# The image declares these paths as volumes for TLS material and config
|
||||
# overrides. Neither is used here; tmpfs avoids an anonymous volume per
|
||||
# container recreation.
|
||||
tmpfs:
|
||||
- /etc/kafka/secrets:size=1m,mode=0755
|
||||
- /mnt/shared/config:size=1m,mode=0755
|
||||
expose:
|
||||
- "9092"
|
||||
healthcheck:
|
||||
# CLI tools inherit KAFKA_HEAP_OPTS, so the probe gets its own small heap
|
||||
# to stay inside the container memory limit next to the broker.
|
||||
test: ["CMD-SHELL", "KAFKA_HEAP_OPTS='-Xms32m -Xmx64m' /opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 >/dev/null 2>&1"]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
# Allow a controlled shutdown so the next start skips log recovery.
|
||||
stop_grace_period: 30s
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 1G
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ../../backend
|
||||
@@ -119,6 +186,7 @@ services:
|
||||
SEAWEEDFS_BUCKET: ${SEAWEEDFS_BUCKET:?Set SEAWEEDFS_BUCKET in the root .env file}
|
||||
SEAWEEDFS_REGION: us-east-1
|
||||
SEAWEEDFS_TIMEOUT: 10s
|
||||
KAFKA_BROKERS: kafka:9092
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -173,6 +241,8 @@ volumes:
|
||||
name: ${APP_PROJECT:-app}_postgres_data
|
||||
seaweedfs_data:
|
||||
name: ${APP_PROJECT:-app}_seaweedfs_data
|
||||
kafka_data:
|
||||
name: ${APP_PROJECT:-app}_kafka_data
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
||||
@@ -18,7 +18,7 @@ compose() {
|
||||
"$@"
|
||||
}
|
||||
|
||||
for volume in "${project}_postgres_data" "${project}_seaweedfs_data"; do
|
||||
for volume in "${project}_postgres_data" "${project}_seaweedfs_data" "${project}_kafka_data"; do
|
||||
if docker volume inspect "$volume" >/dev/null 2>&1; then
|
||||
printf 'Refusing to use existing smoke volume %s.\n' "$volume" >&2
|
||||
exit 2
|
||||
|
||||
@@ -50,7 +50,7 @@ Redis is part of the core Compose project and connects through `backend/internal
|
||||
|
||||
SeaweedFS runs as a separate server in the core Compose project. `backend/internal/adapter/secondary/seaweedfs/` implements the outbound `ObjectStorage` port through AWS SDK for Go v2: streaming Put/Get and object deletion. SDK and S3 types remain inside the adapter. Bootstrap creates the client; readiness checks the bucket through HeadBucket. Storage stays private to the Docker network; Nginx does not serve its files directly. Resume uploads, authorization, content limits, and PDF delivery remain future product workflows. The single-node Compose setup persists data and metadata in a volume but provides no HA or off-host backup.
|
||||
|
||||
The MVP does not add a separate vector database, a broker, Kubernetes, or a search microservice. Initial search uses PostgreSQL filters and full-text search over an allowed projection. Consider pgvector only if evaluation shows embeddings help.
|
||||
The MVP does not add a separate vector database, Kubernetes, or a search microservice. Apache Kafka in KRaft mode with a transactional outbox is the selected event broker; the core Compose project runs one internal Kafka node, while the Go client, outbox, and relay are not implemented yet. Redis is not used as a queue. Initial search uses PostgreSQL filters and full-text search over an allowed projection. Consider pgvector only if evaluation shows embeddings help.
|
||||
|
||||
## Repository map and package purpose
|
||||
|
||||
@@ -210,7 +210,7 @@ The target screen stack is React Router, TanStack Query, React Hook Form, and Zo
|
||||
|
||||
## Future extensions
|
||||
|
||||
PostgreSQL jobs are enough for the MVP. A broker needs an outbox, idempotency, ordering, retries, and deduplication. RabbitMQ/NATS fit independent consumers and routing. Kafka needs a durable stream with multiple consumers and a measured volume. Extract search, assessment, or notification only for an independent scale or lifecycle need. gRPC is useful when several internal services benefit from protobuf or streaming; it does not replace browser-facing OpenAPI.
|
||||
Apache Kafka in KRaft mode is the selected event bus for domain events, mail, ATS webhooks, recomputation, and FSP sync. PostgreSQL remains the source of truth: it keeps product facts and durable job and scheduling state. Events reach Kafka only through a transactional outbox written in the same PostgreSQL transaction as the fact; a relay publishes outbox rows, and consumers are idempotent and tolerate redelivery, reordering across partitions, and retries with deduplication. Redis is not a queue. The core Compose project already runs one internal Kafka node; the outbox, relay, topics, and consumers are planned and not implemented. Extract search, assessment, or notification only for an independent scale or lifecycle need. gRPC is useful when several internal services benefit from protobuf or streaming; it does not replace browser-facing OpenAPI.
|
||||
|
||||
k3s is outside the critical path. Consider it only with an operated cluster or measured multi-node need. A single-node cluster does not provide HA. A transition needs probes and resource limits, secrets, storage backup, ingress, and verified NetworkPolicy.
|
||||
|
||||
|
||||
+24
-2
@@ -9,7 +9,7 @@ Install Docker Engine and the Docker Compose plugin. At the repository root, cop
|
||||
make -C deploy config
|
||||
make -C deploy up
|
||||
|
||||
deploy/docker/docker-compose.yml starts PostgreSQL, Redis, SeaweedFS, the Go backend, and the frontend container. Nginx in the frontend container serves static assets and proxies /api to Go. PostgreSQL, Redis, SeaweedFS, Go, and Nginx communicate on the Compose network.
|
||||
deploy/docker/docker-compose.yml starts PostgreSQL, Redis, SeaweedFS, Kafka, the Go backend, and the frontend container. Nginx in the frontend container serves static assets and proxies /api to Go. PostgreSQL, Redis, SeaweedFS, Kafka, Go, and Nginx communicate on the Compose network.
|
||||
|
||||
The backend build context is `backend/`, so Docker applies `backend/.dockerignore`. Local tools, caches, environment files, and build outputs are excluded from that context.
|
||||
|
||||
@@ -39,6 +39,27 @@ Backend settings are `SEAWEEDFS_ENDPOINT`, `SEAWEEDFS_ACCESS_KEY`, `SEAWEEDFS_SE
|
||||
|
||||
Ordinary `down` preserves the SeaweedFS volume. Losing the volume loses both objects and metadata; prepare a verified backup before changing the image or deleting the volume. This is one node without HA, cross-node replication, or configured off-host backups.
|
||||
|
||||
Kafka uses the official `apache/kafka:latest` image as one KRaft node that combines the broker and controller roles; there is no ZooKeeper. Clients use the PLAINTEXT listener at `kafka:9092`, which is reachable only inside the Compose network and publishes no host port. The controller listener binds to `127.0.0.1:9093` inside the container, so other containers cannot reach it. The client listener has no TLS, authentication, or ACLs: any container attached to the Compose network, including monitoring services that join it, can produce and consume. Keep the network private and do not publish the port.
|
||||
|
||||
The named `kafka_data` volume mounts at `/var/lib/kafka/data` and stores topic logs, consumer offsets, and KRaft metadata, so events survive container restarts and an ordinary `down`. `KAFKA_HEAP_OPTS` bounds the JVM heap to `-Xms256m -Xmx512m`, and the container memory limit is 1 GB. The image's default JMX agent is disabled, so no JMX port is open. Topic data is kept for 7 days or up to 1 GiB per partition, whichever limit is reached first, in 128 MiB segments. Replication factors and the minimum in-sync replica count are 1 because there is one node. This node provides no HA or replication; losing the volume loses all events and consumer offsets.
|
||||
|
||||
`KAFKA_CLUSTER_ID` in `.env` is required. It identifies the KRaft cluster that formatted the volume. It is not a credential and grants no access, so `.env.example` contains a sample value. Generate your own value once before the first start:
|
||||
|
||||
docker run --rm apache/kafka:latest /opt/kafka/bin/kafka-storage.sh random-uuid
|
||||
|
||||
Changing the value after the volume is formatted stops Kafka from starting with that volume.
|
||||
|
||||
Automatic topic creation is disabled: writing to a missing topic fails instead of creating it. Create each topic explicitly; provisioning topics for product events belongs to later work. Kafka CLI tools inherit the broker's `KAFKA_HEAP_OPTS`, so give them a small heap when running them in the container. For example, a manual technical check with the default `app` project:
|
||||
|
||||
docker compose --env-file .env -p app -f deploy/docker/docker-compose.yml \
|
||||
exec -e KAFKA_HEAP_OPTS=-Xmx128m kafka /opt/kafka/bin/kafka-topics.sh \
|
||||
--bootstrap-server localhost:9092 --create --topic lincodex.technical.probe \
|
||||
--partitions 1 --replication-factor 1
|
||||
|
||||
The Compose health check runs `kafka-broker-api-versions.sh` against `localhost:9092`, so Kafka is healthy only after the broker answers API requests. `make -C deploy smoke` waits for that health check together with the other core services; it does not publish or read events.
|
||||
|
||||
The backend receives `KAFKA_BROKERS`, a comma-separated list of `host:port` bootstrap addresses. Compose supplies `kafka:9092`; a directly launched Go process defaults to `localhost:9092`. An explicitly empty value, an empty list entry, a missing or zero port, or a URL scheme fails configuration. The backend has no Kafka client yet: it does not wait for Kafka at startup, and `/readyz` does not check Kafka. The advertised address `kafka:9092` resolves only inside the Compose network, so direct execution needs a separately reachable broker. Redis stays a cache and is not used as a queue.
|
||||
|
||||
down stops containers and keeps named volumes. Do not delete database or file volumes during an ordinary stop.
|
||||
|
||||
## Separate ML Compose project
|
||||
@@ -65,7 +86,7 @@ Start the core project first. Monitoring joins its Docker network. Monitoring st
|
||||
|
||||
Grafana is available at http://127.0.0.1:3000. Credentials come from GRAFANA_ADMIN_USER and GRAFANA_ADMIN_PASSWORD in .env. Prometheus, Loki, exporters, and backend metrics publish no host ports.
|
||||
|
||||
Prometheus retains metrics for 14 days with a 4 GB size limit. Loki retains logs for 7 days. Alloy discovery filters by Compose project and collects logs only from backend, frontend, postgres, redis, and seaweedfs. Loki labels are limited to service and environment; do not add user IDs, addresses, resume text, request bodies, or full URLs.
|
||||
Prometheus retains metrics for 14 days with a 4 GB size limit. Loki retains logs for 7 days. Alloy discovery filters by Compose project and collects logs only from backend, frontend, postgres, redis, and seaweedfs. Kafka logs and metrics are not collected yet; read the logs with `make -C deploy logs`. Loki labels are limited to service and environment; do not add user IDs, addresses, resume text, request bodies, or full URLs.
|
||||
|
||||
Frontend telemetry is not connected in the React app yet. Nginx and Alloy provide a restricted /telemetry receiver and Faro configuration, but the UI SDK and end-to-end event check are absent.
|
||||
|
||||
@@ -83,6 +104,7 @@ Container images use moving `latest` or `alpine` tags where the upstream publish
|
||||
| --- | --- | --- |
|
||||
| PostgreSQL | Docker Official Image, docker-library/postgres | PostgreSQL License for the server; packaging repository is MIT |
|
||||
| SeaweedFS | chrislusf/seaweedfs | [Apache-2.0](https://github.com/seaweedfs/seaweedfs/blob/master/LICENSE) |
|
||||
| Apache Kafka | apache/kafka, the Apache Kafka project's image | [Apache-2.0](https://github.com/apache/kafka/blob/trunk/LICENSE) |
|
||||
| Prometheus | prom/prometheus | Apache-2.0 |
|
||||
| Loki | grafana/loki | AGPL-3.0-only by default; see LICENSING.md exceptions |
|
||||
| Grafana Alloy | grafana/alloy | Apache-2.0 by default |
|
||||
|
||||
@@ -50,11 +50,12 @@ What exists now:
|
||||
- Health and readiness routes. Nginx answers `GET /healthz` itself and proxies only `/api/` to Go (deploy/nginx/conf.d/app.conf). Go serves `GET /healthz` (`ok`) and `GET /readyz` (`ready` or 503 `not_ready` after checking PostgreSQL, Redis, and SeaweedFS) on its internal port 8080 outside the OpenAPI contract, plus `GET /api/v1/healthz` from api/core/routes/healthz.yml through the ogen handler (backend/internal/adapter/primary/http). The Go metrics listener uses port 9090 (`METRICS_ADDR`) and Prometheus scrapes `/metrics`. ML serves `GET /healthz`, `GET /readyz` (always 503 `not_ready` because no model is connected), and `/metrics` (ml/src/lincodex_ml, api/ml/routes). deploy/scripts/smoke.sh checks Nginx `/healthz`, `/api/v1/healthz`, Go `/readyz` from inside the Compose network, and a 404 for an unknown API route; it does not start ML.
|
||||
- Adapters: PostgreSQL through pgxpool with a generated `SELECT 1` query, Redis through go-cachekit, and SeaweedFS through the S3 API. A generated Go client for the ML contract exists but is not wired into bootstrap.
|
||||
- OpenAPI contracts api/core/ and api/ml/ with schema merge, bundles, lint, and generation for Go (ogen), TypeScript (Orval), and Python (datamodel-code-generator). The SPA has a home page, a generated API client, and MSW handlers.
|
||||
- Compose projects: core (`deploy/docker/docker-compose.yml`: PostgreSQL, Redis, SeaweedFS, backend, frontend), ML (`docker-compose.ml.yml`), and monitoring (`docker-compose.monitoring.yml`).
|
||||
- Compose projects: core (`deploy/docker/docker-compose.yml`: PostgreSQL, Redis, SeaweedFS, Kafka, backend, frontend), ML (`docker-compose.ml.yml`), and monitoring (`docker-compose.monitoring.yml`).
|
||||
- Kafka: one KRaft node in the core Compose project with an internal-only listener, a named volume, a health check, and a memory limit. backend/config parses and validates `KAFKA_BROKERS`, but the backend has no Go Kafka client, topics, or readiness check for Kafka.
|
||||
- CI jobs in .github/workflows/ci.yml: `api`, `backend`, `integration` (matrix of two shards), `frontend`, `ml`, `codegen`, `infrastructure`, `security`, `security-images`, `smoke`, and the required `aggregate` result. See [TESTING.md](TESTING.md) for sharding.
|
||||
- Observability: Prometheus, Loki, Alloy, Grafana with provisioned datasources and dashboards, and PostgreSQL, Redis, and node exporters. The React app does not send telemetry yet.
|
||||
|
||||
Not implemented yet: registration and login, consents, profiles, the questionnaire and assessment, the company cabinet, needs and matching, invitations and contacts, mail delivery, Kafka/outbox, notifications, support, and an end-to-end business suite. backend/db/migrations/ has no business schema, product usecase and adapter directories contain only placeholders, and `make -C deploy test-e2e` is a deferred placeholder that exits with an error. The target design is in [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||
Not implemented yet: registration and login, consents, profiles, the questionnaire and assessment, the company cabinet, needs and matching, invitations and contacts, mail delivery, the Go Kafka client, the transactional outbox and its relay, notifications, support, and an end-to-end business suite. backend/db/migrations/ has no business schema, product usecase and adapter directories contain only placeholders, and `make -C deploy test-e2e` is a deferred placeholder that exits with an error. The target design is in [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||
|
||||
## Install and work loop
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Redis входит в основной Compose и подключен через
|
||||
|
||||
SeaweedFS работает отдельным сервером в основном Compose. `backend/internal/adapter/secondary/seaweedfs/` реализует outbound-порт `ObjectStorage` через AWS SDK for Go v2: потоковые Put/Get и удаление объекта. SDK и S3-типы не выходят за границу адаптера. Bootstrap создает клиент, readiness проверяет bucket через HeadBucket. Хранилище закрыто внутри Docker-сети; Nginx не раздает его файлы напрямую. Загрузка резюме, проверка прав, ограничения содержимого и выдача PDF остаются будущими продуктовыми сценариями. Одноузловой Compose сохраняет данные и метаданные в volume, но не обеспечивает HA или внешнее резервное копирование.
|
||||
|
||||
Для MVP не вводятся отдельная vector DB, брокер, Kubernetes или микросервисы поиска. Начальный поиск использует PostgreSQL фильтры/full-text по разрешенной проекции. pgvector можно рассмотреть после eval, если embeddings дают подтвержденную пользу.
|
||||
Для MVP не вводятся отдельная vector DB, Kubernetes или микросервисы поиска. Брокером событий выбран Apache Kafka в режиме KRaft с transactional outbox; core Compose проект запускает один внутренний узел Kafka, а Go клиент, outbox и relay пока не реализованы. Redis не используется как очередь. Начальный поиск использует PostgreSQL фильтры/full-text по разрешенной проекции. pgvector можно рассмотреть после eval, если embeddings дают подтвержденную пользу.
|
||||
|
||||
## Структура репозитория и назначение пакетов
|
||||
|
||||
@@ -210,7 +210,7 @@ contact_grant относится к паре кандидат-компания
|
||||
|
||||
## Будущее расширение
|
||||
|
||||
PostgreSQL jobs остаются достаточными на MVP. При необходимости брокера сначала проектируются outbox, идемпотентность, порядок, retry и дедупликация. RabbitMQ/NATS требуют независимых consumers/маршрутизации; Kafka - долговечного потока с несколькими потребителями и измеримым объемом. Отдельный search, assessment или notification сервис выделяется только при собственном масштабе или lifecycle. gRPC нужен при нескольких внутренних сервисах и конкретной пользе protobuf/streaming; он не заменяет OpenAPI для браузера.
|
||||
Шиной событий выбран Apache Kafka в режиме KRaft: доменные события, почта, вебхуки ATS, пересчеты и синхронизация с ФСП. PostgreSQL остается источником истины: в нем хранятся продуктовые факты и долговечное состояние заданий и расписаний. События попадают в Kafka только через transactional outbox, который записывается в той же транзакции PostgreSQL, что и факт; relay публикует строки outbox, а потребители идемпотентны и выдерживают повторную доставку, нарушение порядка между партициями и retry с дедупликацией. Redis не используется как очередь. Core Compose проект уже запускает один внутренний узел Kafka; outbox, relay, топики и потребители запланированы и не реализованы. Отдельный search, assessment или notification сервис выделяется только при собственном масштабе или lifecycle. gRPC нужен при нескольких внутренних сервисах и конкретной пользе protobuf/streaming; он не заменяет OpenAPI для браузера.
|
||||
|
||||
k3s не входит в критический путь. Его можно рассмотреть при готовом обслуживаемом кластере или измеренной потребности в нескольких узлах. Один узел k3s не дает HA. Переход требует probes/resources, секретов, storage backup, ingress и проверенных NetworkPolicy.
|
||||
|
||||
|
||||
+24
-2
@@ -11,7 +11,7 @@
|
||||
|
||||
В текущем Compose `POSTGRES_PASSWORD` без URL-кодирования подставляется в `DATABASE_URL`. Используйте пароль из URL-safe символов, например случайную hex-строку. Символы `@`, `/`, `:`, `?`, `#` и `%` пока нельзя вводить в значение без доработки кодирования URI.
|
||||
|
||||
Основной файл deploy/docker/docker-compose.yml запускает PostgreSQL, Redis, SeaweedFS, Go backend и frontend контейнер. Frontend контейнер раздает статические файлы через Nginx и проксирует /api в backend. PostgreSQL, Redis, SeaweedFS, backend и Nginx общаются по выделенной Compose сети.
|
||||
Основной файл deploy/docker/docker-compose.yml запускает PostgreSQL, Redis, SeaweedFS, Kafka, Go backend и frontend контейнер. Frontend контейнер раздает статические файлы через Nginx и проксирует /api в backend. PostgreSQL, Redis, SeaweedFS, Kafka, backend и Nginx общаются по выделенной Compose сети.
|
||||
|
||||
Контекст сборки backend - каталог `backend/`, поэтому Docker применяет `backend/.dockerignore`. Локальные инструменты, кеши, файлы окружения и результаты сборки не отправляются в этот build context.
|
||||
|
||||
@@ -41,6 +41,27 @@ Backend использует `SEAWEEDFS_ENDPOINT`, `SEAWEEDFS_ACCESS_KEY`, `SEAW
|
||||
|
||||
Обычный `down` сохраняет volume SeaweedFS. Потеря volume означает потерю объектов и метаданных; перед изменением образа или удалением volume нужен проверенный backup. Это один узел без HA, репликации между узлами или настроенного внешнего резервного копирования.
|
||||
|
||||
Kafka использует официальный образ `apache/kafka:latest` в виде одного узла KRaft, совмещающего роли broker и controller; ZooKeeper не используется. Клиенты подключаются к PLAINTEXT listener `kafka:9092`, который доступен только внутри Compose сети; порт на хосте не публикуется. Controller listener слушает `127.0.0.1:9093` внутри контейнера, поэтому другие контейнеры к нему не подключаются. У клиентского listener нет TLS, аутентификации и ACL: любой контейнер в Compose сети, включая сервисы мониторинга, которые к ней подключаются, может писать и читать события. Держите сеть закрытой и не публикуйте порт.
|
||||
|
||||
Именованный volume `kafka_data` смонтирован в `/var/lib/kafka/data` и хранит логи топиков, offsets потребителей и метаданные KRaft, поэтому события сохраняются при перезапуске контейнера и обычном `down`. `KAFKA_HEAP_OPTS` ограничивает heap JVM значениями `-Xms256m -Xmx512m`, лимит памяти контейнера - 1 GB. JMX agent образа по умолчанию отключен, JMX порт не открывается. Данные топиков хранятся 7 дней или до 1 GiB на партицию, в зависимости от того, какой лимит достигнут раньше, сегментами по 128 MiB. Факторы репликации и минимальное число in-sync реплик равны 1, потому что узел один. Этот узел не дает HA и репликации; потеря volume означает потерю всех событий и offsets потребителей.
|
||||
|
||||
`KAFKA_CLUSTER_ID` в `.env` обязателен. Он идентифицирует KRaft кластер, который отформатировал volume. Это не учетные данные и не дает доступа, поэтому `.env.example` содержит пример значения. Сгенерируйте собственное значение один раз до первого запуска:
|
||||
|
||||
docker run --rm apache/kafka:latest /opt/kafka/bin/kafka-storage.sh random-uuid
|
||||
|
||||
После форматирования volume смена значения не даст Kafka запуститься с этим volume.
|
||||
|
||||
Автоматическое создание топиков отключено: запись в отсутствующий топик завершается ошибкой, а не создает его. Создавайте каждый топик явно; создание топиков для продуктовых событий относится к следующим задачам. CLI-утилиты Kafka наследуют `KAFKA_HEAP_OPTS` брокера, поэтому при запуске в контейнере задавайте им небольшой heap. Пример ручной технической проверки для проекта по умолчанию `app`:
|
||||
|
||||
docker compose --env-file .env -p app -f deploy/docker/docker-compose.yml \
|
||||
exec -e KAFKA_HEAP_OPTS=-Xmx128m kafka /opt/kafka/bin/kafka-topics.sh \
|
||||
--bootstrap-server localhost:9092 --create --topic lincodex.technical.probe \
|
||||
--partitions 1 --replication-factor 1
|
||||
|
||||
Compose healthcheck запускает `kafka-broker-api-versions.sh` против `localhost:9092`, поэтому Kafka считается healthy только после того, как брокер отвечает на API-запросы. `make -C deploy smoke` ждет этот healthcheck вместе с остальными core сервисами, но не публикует и не читает события.
|
||||
|
||||
Backend получает `KAFKA_BROKERS` - список адресов bootstrap в формате `host:port` через запятую. Compose задает `kafka:9092`; прямой запуск Go по умолчанию использует `localhost:9092`. Явно пустое значение, пустой элемент списка, отсутствующий или нулевой порт либо схема URL приводят к ошибке конфигурации. Kafka клиента в backend пока нет: backend не ждет Kafka при старте, а `/readyz` ее не проверяет. Объявленный адрес `kafka:9092` разрешается только внутри Compose сети, поэтому для прямого запуска нужен отдельно доступный брокер. Redis остается кешем и не используется как очередь.
|
||||
|
||||
down останавливает контейнеры, сохраняя именованные volumes. Не удаляйте volume с базой или файлами в рамках обычного останова.
|
||||
|
||||
## Отдельный ML Compose
|
||||
@@ -67,7 +88,7 @@ GET /healthz проверяет процесс. GET /readyz проверяет
|
||||
|
||||
Grafana доступна на http://127.0.0.1:3000. Учетные данные берутся из GRAFANA_ADMIN_USER и GRAFANA_ADMIN_PASSWORD в .env. Prometheus, Loki, exporters и backend metrics не публикуют host ports.
|
||||
|
||||
Prometheus хранит метрики 14 дней с лимитом 4 GB. Loki хранит логи 7 дней. Alloy discovery отфильтровывает Compose project и принимает логи только backend, frontend, postgres, redis и seaweedfs. Разрешенные Loki labels ограничены service и environment; не добавляйте user ID, адреса, resume content, request body или полный URL в labels.
|
||||
Prometheus хранит метрики 14 дней с лимитом 4 GB. Loki хранит логи 7 дней. Alloy discovery отфильтровывает Compose project и принимает логи только backend, frontend, postgres, redis и seaweedfs. Логи и метрики Kafka пока не собираются; читайте логи через `make -C deploy logs`. Разрешенные Loki labels ограничены service и environment; не добавляйте user ID, адреса, resume content, request body или полный URL в labels.
|
||||
|
||||
Frontend телеметрия пока не подключена в React-приложении. Nginx и Alloy имеют ограниченный /telemetry приемник и конфигурацию Faro, однако UI SDK и сквозная проверка событий отсутствуют.
|
||||
|
||||
@@ -85,6 +106,7 @@ Frontend телеметрия пока не подключена в React-при
|
||||
| --- | --- | --- |
|
||||
| PostgreSQL | Docker Official Image, docker-library/postgres | PostgreSQL License для сервера; packaging repo MIT |
|
||||
| SeaweedFS | chrislusf/seaweedfs | [Apache-2.0](https://github.com/seaweedfs/seaweedfs/blob/master/LICENSE) |
|
||||
| Apache Kafka | apache/kafka, образ проекта Apache Kafka | [Apache-2.0](https://github.com/apache/kafka/blob/trunk/LICENSE) |
|
||||
| Prometheus | prom/prometheus | Apache-2.0 |
|
||||
| Loki | grafana/loki | AGPL-3.0-only по умолчанию; см. LICENSING.md исключения |
|
||||
| Grafana Alloy | grafana/alloy | Apache-2.0 по умолчанию |
|
||||
|
||||
@@ -50,11 +50,12 @@ Frontend зависимости выбираются из актуальных s
|
||||
- Маршруты health и readiness. Nginx сам отвечает на `GET /healthz` и проксирует в Go только `/api/` (deploy/nginx/conf.d/app.conf). Go обслуживает `GET /healthz` (`ok`) и `GET /readyz` (`ready` или 503 `not_ready` после проверки PostgreSQL, Redis и SeaweedFS) на внутреннем порту 8080 вне OpenAPI контракта, а также `GET /api/v1/healthz` из api/core/routes/healthz.yml через ogen handler (backend/internal/adapter/primary/http). Метрики Go отдаются на порту 9090 (`METRICS_ADDR`), Prometheus читает `/metrics`. ML обслуживает `GET /healthz`, `GET /readyz` (всегда 503 `not_ready`, потому что модель не подключена) и `/metrics` (ml/src/lincodex_ml, api/ml/routes). deploy/scripts/smoke.sh проверяет `/healthz` Nginx, `/api/v1/healthz`, `/readyz` Go изнутри сети Compose и 404 для неизвестного API маршрута; ML он не запускает.
|
||||
- Адаптеры: PostgreSQL через pgxpool и generated запрос `SELECT 1`, Redis через go-cachekit, SeaweedFS через S3 API. Generated Go client для ML контракта есть, но в bootstrap не подключен.
|
||||
- OpenAPI контракты api/core/ и api/ml/ с объединением схем, bundles, lint и генерацией для Go (ogen), TypeScript (Orval) и Python (datamodel-code-generator). В SPA есть домашняя страница, generated API client и MSW handlers.
|
||||
- Compose проекты: core (`deploy/docker/docker-compose.yml`: PostgreSQL, Redis, SeaweedFS, backend, frontend), ML (`docker-compose.ml.yml`) и monitoring (`docker-compose.monitoring.yml`).
|
||||
- Compose проекты: core (`deploy/docker/docker-compose.yml`: PostgreSQL, Redis, SeaweedFS, Kafka, backend, frontend), ML (`docker-compose.ml.yml`) и monitoring (`docker-compose.monitoring.yml`).
|
||||
- Kafka: один узел KRaft в core Compose проекте с listener только во внутренней сети, именованным volume, healthcheck и лимитом памяти. backend/config разбирает и проверяет `KAFKA_BROKERS`, но в backend нет Go клиента Kafka, топиков и проверки Kafka в readiness.
|
||||
- CI jobs в .github/workflows/ci.yml: `api`, `backend`, `integration` (matrix из двух шардов), `frontend`, `ml`, `codegen`, `infrastructure`, `security`, `security-images`, `smoke` и обязательный итог `aggregate`. Шардирование описано в [TESTING.md](TESTING.md).
|
||||
- Observability: Prometheus, Loki, Alloy, Grafana с provisioned datasources и dashboards, exporters для PostgreSQL, Redis и node. React-приложение пока не отправляет телеметрию.
|
||||
|
||||
Еще не реализованы: регистрация и вход, согласия, профили, анкета и тестирование, кабинет компании, потребности и подбор, приглашения и контакты, отправка почты, Kafka/outbox, уведомления, поддержка и бизнес-E2E suite. В backend/db/migrations/ нет бизнес-схемы, каталоги продуктовых usecase и адаптеров содержат только заглушки, а `make -C deploy test-e2e` остается отложенной заглушкой и завершается ошибкой. Целевая архитектура описана в [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||
Еще не реализованы: регистрация и вход, согласия, профили, анкета и тестирование, кабинет компании, потребности и подбор, приглашения и контакты, отправка почты, Go клиент Kafka, transactional outbox и его relay, уведомления, поддержка и бизнес-E2E suite. В backend/db/migrations/ нет бизнес-схемы, каталоги продуктовых usecase и адаптеров содержат только заглушки, а `make -C deploy test-e2e` остается отложенной заглушкой и завершается ошибкой. Целевая архитектура описана в [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||
|
||||
## Установка и цикл работы
|
||||
|
||||
|
||||
Reference in new issue
Block a user