Add gRPC support for publishing events

Đang mở
#1,195 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, grpc
Lĩnh vực
api, backend

Hướng nghiên cứu

Start from the HTTP handler behind POST /api/v1/publish and trace its validation, topic and destination matching, and delivery path, since the gRPC endpoint must reuse that flow. The existing gRPC uses for GCP Pub/Sub and OpenTelemetry are outbound, so they are not a model for a publish endpoint. Done means a gRPC call publishes an event through the same path as HTTP, with tests showing matching behavior; the proto contract shape is not specified and needs a decision first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Is your feature request related to a problem? Please describe.
Outpost currently accepts events through the HTTP POST /api/v1/publish endpoint. A native gRPC endpoint would let services in gRPC-based systems publish using a typed Protocol Buffers contract and generated clients, instead of implementing and maintaining REST/JSON request handling for this integration.

Describe the solution you'd like
Provide a gRPC API for publishing events, with functionality equivalent to POST /api/v1/publish. Events sent over gRPC should go through the same validation, topic and destination matching, and delivery flow as events published over HTTP.

Describe alternatives you've considered
Continue using the HTTP publish endpoint and hand-write or generate an HTTP client, or build an adapter that exposes gRPC to internal services and forwards requests to Outpost's HTTP API. These approaches work, but don't provide a native gRPC contract at the Outpost API boundary.

Additional context
This request is for gRPC support for the event-publishing API. It is separate from the existing gRPC use in integrations such as GCP Pub/Sub and OpenTelemetry, which do not provide a gRPC endpoint for clients to publish events to Outpost.

Ngôn ngữ chính
Go
Star
1.1k
Fork
70
Merge trung bình
3 ngày 21 giờ
Pull request đã merge (30 ngày)
34

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hookdeck/outpost

Tất cả issue của hookdeck/outpost

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.