Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Archiving streams

Đang mở
#64 15 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 7 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
backend, databases

Hướng nghiên cứu

The issue proposes a separate stream archive class depending on IEventStore and an archive interface. Start by reading the event store and serialization APIs to understand how streams and event types are represented; the issue does not name files or tests. Done would include agreed archive and restore behavior, including event type metadata and whether archiving changes the source stream, followed by implementation and tests.

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

Mô tả

enhancement

In order to keep the database size in an event store upper bound, it would be useful to bake the archiving function.

The archive storage could be anything, so it needs an abstraction. The functionality would be limited to a stream archive function in a separate class that needs a dependency on IEventStore and the archive interface.

Proposed functions:

  • ArchiveStream would take a given stream, read all the events from there, serialize to an array of object and push everything as a single object to the archive
  • RestoreStream would do the opposite, given that we know the types of all the archived events

Consider:

  • Store event type for each event in the archive envelope
  • Should the archived stream be deleted or truncated after writing an activation event? It can be left outside for the user to decide, or it can be a built-in feature.
Ngôn ngữ chính
C#
Star
512
Fork
99
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
5

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

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 Eventuous/eventuous

Tất cả issue của Eventuous/eventuous

Issue tương tự

Thêm issue về C#

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.